Users' Mathboxes Mathbox for Thierry Arnoux < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  ofoprabco Structured version   Visualization version   GIF version

Theorem ofoprabco 28847
Description: Function operation as a composition with an operation. (Contributed by Thierry Arnoux, 4-Jun-2017.)
Hypotheses
Ref Expression
ofoprabco.1 𝑎𝑀
ofoprabco.2 (𝜑𝐹:𝐴𝐵)
ofoprabco.3 (𝜑𝐺:𝐴𝐶)
ofoprabco.4 (𝜑𝐴𝑉)
ofoprabco.5 (𝜑𝑀 = (𝑎𝐴 ↦ ⟨(𝐹𝑎), (𝐺𝑎)⟩))
ofoprabco.6 (𝜑𝑁 = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)))
Assertion
Ref Expression
ofoprabco (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑁𝑀))
Distinct variable groups:   𝑥,𝑎,𝑦,𝐴   𝐵,𝑎,𝑥,𝑦   𝐶,𝑎,𝑥,𝑦   𝐹,𝑎,𝑥,𝑦   𝐺,𝑎,𝑥,𝑦   𝑁,𝑎   𝑅,𝑎,𝑥,𝑦   𝜑,𝑎,𝑥,𝑦
Allowed substitution hints:   𝑀(𝑥,𝑦,𝑎)   𝑁(𝑥,𝑦)   𝑉(𝑥,𝑦,𝑎)

Proof of Theorem ofoprabco
StepHypRef Expression
1 ofoprabco.5 . . . . . 6 (𝜑𝑀 = (𝑎𝐴 ↦ ⟨(𝐹𝑎), (𝐺𝑎)⟩))
2 ofoprabco.2 . . . . . . . 8 (𝜑𝐹:𝐴𝐵)
32ffvelrnda 6267 . . . . . . 7 ((𝜑𝑎𝐴) → (𝐹𝑎) ∈ 𝐵)
4 ofoprabco.3 . . . . . . . 8 (𝜑𝐺:𝐴𝐶)
54ffvelrnda 6267 . . . . . . 7 ((𝜑𝑎𝐴) → (𝐺𝑎) ∈ 𝐶)
6 opelxpi 5072 . . . . . . 7 (((𝐹𝑎) ∈ 𝐵 ∧ (𝐺𝑎) ∈ 𝐶) → ⟨(𝐹𝑎), (𝐺𝑎)⟩ ∈ (𝐵 × 𝐶))
73, 5, 6syl2anc 691 . . . . . 6 ((𝜑𝑎𝐴) → ⟨(𝐹𝑎), (𝐺𝑎)⟩ ∈ (𝐵 × 𝐶))
81, 7fvmpt2d 6202 . . . . 5 ((𝜑𝑎𝐴) → (𝑀𝑎) = ⟨(𝐹𝑎), (𝐺𝑎)⟩)
98fveq2d 6107 . . . 4 ((𝜑𝑎𝐴) → (𝑁‘(𝑀𝑎)) = (𝑁‘⟨(𝐹𝑎), (𝐺𝑎)⟩))
10 df-ov 6552 . . . . 5 ((𝐹𝑎)𝑁(𝐺𝑎)) = (𝑁‘⟨(𝐹𝑎), (𝐺𝑎)⟩)
1110a1i 11 . . . 4 ((𝜑𝑎𝐴) → ((𝐹𝑎)𝑁(𝐺𝑎)) = (𝑁‘⟨(𝐹𝑎), (𝐺𝑎)⟩))
12 ofoprabco.6 . . . . . 6 (𝜑𝑁 = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)))
1312adantr 480 . . . . 5 ((𝜑𝑎𝐴) → 𝑁 = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)))
14 simprl 790 . . . . . 6 (((𝜑𝑎𝐴) ∧ (𝑥 = (𝐹𝑎) ∧ 𝑦 = (𝐺𝑎))) → 𝑥 = (𝐹𝑎))
15 simprr 792 . . . . . 6 (((𝜑𝑎𝐴) ∧ (𝑥 = (𝐹𝑎) ∧ 𝑦 = (𝐺𝑎))) → 𝑦 = (𝐺𝑎))
1614, 15oveq12d 6567 . . . . 5 (((𝜑𝑎𝐴) ∧ (𝑥 = (𝐹𝑎) ∧ 𝑦 = (𝐺𝑎))) → (𝑥𝑅𝑦) = ((𝐹𝑎)𝑅(𝐺𝑎)))
17 ovex 6577 . . . . . 6 ((𝐹𝑎)𝑅(𝐺𝑎)) ∈ V
1817a1i 11 . . . . 5 ((𝜑𝑎𝐴) → ((𝐹𝑎)𝑅(𝐺𝑎)) ∈ V)
1913, 16, 3, 5, 18ovmpt2d 6686 . . . 4 ((𝜑𝑎𝐴) → ((𝐹𝑎)𝑁(𝐺𝑎)) = ((𝐹𝑎)𝑅(𝐺𝑎)))
209, 11, 193eqtr2d 2650 . . 3 ((𝜑𝑎𝐴) → (𝑁‘(𝑀𝑎)) = ((𝐹𝑎)𝑅(𝐺𝑎)))
2120mpteq2dva 4672 . 2 (𝜑 → (𝑎𝐴 ↦ (𝑁‘(𝑀𝑎))) = (𝑎𝐴 ↦ ((𝐹𝑎)𝑅(𝐺𝑎))))
22 ovex 6577 . . . . . 6 (𝑥𝑅𝑦) ∈ V
2322rgen2w 2909 . . . . 5 𝑥𝐵𝑦𝐶 (𝑥𝑅𝑦) ∈ V
24 eqid 2610 . . . . . 6 (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)) = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦))
2524fmpt2 7126 . . . . 5 (∀𝑥𝐵𝑦𝐶 (𝑥𝑅𝑦) ∈ V ↔ (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)):(𝐵 × 𝐶)⟶V)
2623, 25mpbi 219 . . . 4 (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)):(𝐵 × 𝐶)⟶V
2712feq1d 5943 . . . 4 (𝜑 → (𝑁:(𝐵 × 𝐶)⟶V ↔ (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)):(𝐵 × 𝐶)⟶V))
2826, 27mpbiri 247 . . 3 (𝜑𝑁:(𝐵 × 𝐶)⟶V)
291, 7fmpt3d 6293 . . 3 (𝜑𝑀:𝐴⟶(𝐵 × 𝐶))
30 ofoprabco.1 . . . 4 𝑎𝑀
3130fcomptf 28840 . . 3 ((𝑁:(𝐵 × 𝐶)⟶V ∧ 𝑀:𝐴⟶(𝐵 × 𝐶)) → (𝑁𝑀) = (𝑎𝐴 ↦ (𝑁‘(𝑀𝑎))))
3228, 29, 31syl2anc 691 . 2 (𝜑 → (𝑁𝑀) = (𝑎𝐴 ↦ (𝑁‘(𝑀𝑎))))
33 ofoprabco.4 . . 3 (𝜑𝐴𝑉)
342feqmptd 6159 . . 3 (𝜑𝐹 = (𝑎𝐴 ↦ (𝐹𝑎)))
354feqmptd 6159 . . 3 (𝜑𝐺 = (𝑎𝐴 ↦ (𝐺𝑎)))
3633, 3, 5, 34, 35offval2 6812 . 2 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑎𝐴 ↦ ((𝐹𝑎)𝑅(𝐺𝑎))))
3721, 32, 363eqtr4rd 2655 1 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑁𝑀))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1475  wcel 1977  wnfc 2738  wral 2896  Vcvv 3173  cop 4131  cmpt 4643   × cxp 5036  ccom 5042  wf 5800  cfv 5804  (class class class)co 6549  cmpt2 6551  𝑓 cof 6793
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-8 1979  ax-9 1986  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590  ax-rep 4699  ax-sep 4709  ax-nul 4717  ax-pow 4769  ax-pr 4833  ax-un 6847
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-eu 2462  df-mo 2463  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ne 2782  df-ral 2901  df-rex 2902  df-reu 2903  df-rab 2905  df-v 3175  df-sbc 3403  df-csb 3500  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-uni 4373  df-iun 4457  df-br 4584  df-opab 4644  df-mpt 4645  df-id 4953  df-xp 5044  df-rel 5045  df-cnv 5046  df-co 5047  df-dm 5048  df-rn 5049  df-res 5050  df-ima 5051  df-iota 5768  df-fun 5806  df-fn 5807  df-f 5808  df-f1 5809  df-fo 5810  df-f1o 5811  df-fv 5812  df-ov 6552  df-oprab 6553  df-mpt2 6554  df-of 6795  df-1st 7059  df-2nd 7060
This theorem is referenced by:  ofpreima  28848  rrvadd  29841
  Copyright terms: Public domain W3C validator