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 29464
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 6359 . . . . . . 7 ((𝜑𝑎𝐴) → (𝐹𝑎) ∈ 𝐵)
4 ofoprabco.3 . . . . . . . 8 (𝜑𝐺:𝐴𝐶)
54ffvelrnda 6359 . . . . . . 7 ((𝜑𝑎𝐴) → (𝐺𝑎) ∈ 𝐶)
6 opelxpi 5148 . . . . . . 7 (((𝐹𝑎) ∈ 𝐵 ∧ (𝐺𝑎) ∈ 𝐶) → ⟨(𝐹𝑎), (𝐺𝑎)⟩ ∈ (𝐵 × 𝐶))
73, 5, 6syl2anc 693 . . . . . 6 ((𝜑𝑎𝐴) → ⟨(𝐹𝑎), (𝐺𝑎)⟩ ∈ (𝐵 × 𝐶))
81, 7fvmpt2d 6293 . . . . 5 ((𝜑𝑎𝐴) → (𝑀𝑎) = ⟨(𝐹𝑎), (𝐺𝑎)⟩)
98fveq2d 6195 . . . 4 ((𝜑𝑎𝐴) → (𝑁‘(𝑀𝑎)) = (𝑁‘⟨(𝐹𝑎), (𝐺𝑎)⟩))
10 df-ov 6653 . . . . 5 ((𝐹𝑎)𝑁(𝐺𝑎)) = (𝑁‘⟨(𝐹𝑎), (𝐺𝑎)⟩)
1110a1i 11 . . . 4 ((𝜑𝑎𝐴) → ((𝐹𝑎)𝑁(𝐺𝑎)) = (𝑁‘⟨(𝐹𝑎), (𝐺𝑎)⟩))
12 ofoprabco.6 . . . . . 6 (𝜑𝑁 = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)))
1312adantr 481 . . . . 5 ((𝜑𝑎𝐴) → 𝑁 = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)))
14 simprl 794 . . . . . 6 (((𝜑𝑎𝐴) ∧ (𝑥 = (𝐹𝑎) ∧ 𝑦 = (𝐺𝑎))) → 𝑥 = (𝐹𝑎))
15 simprr 796 . . . . . 6 (((𝜑𝑎𝐴) ∧ (𝑥 = (𝐹𝑎) ∧ 𝑦 = (𝐺𝑎))) → 𝑦 = (𝐺𝑎))
1614, 15oveq12d 6668 . . . . 5 (((𝜑𝑎𝐴) ∧ (𝑥 = (𝐹𝑎) ∧ 𝑦 = (𝐺𝑎))) → (𝑥𝑅𝑦) = ((𝐹𝑎)𝑅(𝐺𝑎)))
17 ovexd 6680 . . . . 5 ((𝜑𝑎𝐴) → ((𝐹𝑎)𝑅(𝐺𝑎)) ∈ V)
1813, 16, 3, 5, 17ovmpt2d 6788 . . . 4 ((𝜑𝑎𝐴) → ((𝐹𝑎)𝑁(𝐺𝑎)) = ((𝐹𝑎)𝑅(𝐺𝑎)))
199, 11, 183eqtr2d 2662 . . 3 ((𝜑𝑎𝐴) → (𝑁‘(𝑀𝑎)) = ((𝐹𝑎)𝑅(𝐺𝑎)))
2019mpteq2dva 4744 . 2 (𝜑 → (𝑎𝐴 ↦ (𝑁‘(𝑀𝑎))) = (𝑎𝐴 ↦ ((𝐹𝑎)𝑅(𝐺𝑎))))
21 ovex 6678 . . . . . 6 (𝑥𝑅𝑦) ∈ V
2221rgen2w 2925 . . . . 5 𝑥𝐵𝑦𝐶 (𝑥𝑅𝑦) ∈ V
23 eqid 2622 . . . . . 6 (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)) = (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦))
2423fmpt2 7237 . . . . 5 (∀𝑥𝐵𝑦𝐶 (𝑥𝑅𝑦) ∈ V ↔ (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)):(𝐵 × 𝐶)⟶V)
2522, 24mpbi 220 . . . 4 (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)):(𝐵 × 𝐶)⟶V
2612feq1d 6030 . . . 4 (𝜑 → (𝑁:(𝐵 × 𝐶)⟶V ↔ (𝑥𝐵, 𝑦𝐶 ↦ (𝑥𝑅𝑦)):(𝐵 × 𝐶)⟶V))
2725, 26mpbiri 248 . . 3 (𝜑𝑁:(𝐵 × 𝐶)⟶V)
281, 7fmpt3d 6386 . . 3 (𝜑𝑀:𝐴⟶(𝐵 × 𝐶))
29 ofoprabco.1 . . . 4 𝑎𝑀
3029fcomptf 29458 . . 3 ((𝑁:(𝐵 × 𝐶)⟶V ∧ 𝑀:𝐴⟶(𝐵 × 𝐶)) → (𝑁𝑀) = (𝑎𝐴 ↦ (𝑁‘(𝑀𝑎))))
3127, 28, 30syl2anc 693 . 2 (𝜑 → (𝑁𝑀) = (𝑎𝐴 ↦ (𝑁‘(𝑀𝑎))))
32 ofoprabco.4 . . 3 (𝜑𝐴𝑉)
332feqmptd 6249 . . 3 (𝜑𝐹 = (𝑎𝐴 ↦ (𝐹𝑎)))
344feqmptd 6249 . . 3 (𝜑𝐺 = (𝑎𝐴 ↦ (𝐺𝑎)))
3532, 3, 5, 33, 34offval2 6914 . 2 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑎𝐴 ↦ ((𝐹𝑎)𝑅(𝐺𝑎))))
3620, 31, 353eqtr4rd 2667 1 (𝜑 → (𝐹𝑓 𝑅𝐺) = (𝑁𝑀))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 384   = wceq 1483  wcel 1990  wnfc 2751  wral 2912  Vcvv 3200  cop 4183  cmpt 4729   × cxp 5112  ccom 5118  wf 5884  cfv 5888  (class class class)co 6650  cmpt2 6652  𝑓 cof 6895
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1722  ax-4 1737  ax-5 1839  ax-6 1888  ax-7 1935  ax-8 1992  ax-9 1999  ax-10 2019  ax-11 2034  ax-12 2047  ax-13 2246  ax-ext 2602  ax-rep 4771  ax-sep 4781  ax-nul 4789  ax-pow 4843  ax-pr 4906  ax-un 6949
This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1039  df-tru 1486  df-ex 1705  df-nf 1710  df-sb 1881  df-eu 2474  df-mo 2475  df-clab 2609  df-cleq 2615  df-clel 2618  df-nfc 2753  df-ne 2795  df-ral 2917  df-rex 2918  df-reu 2919  df-rab 2921  df-v 3202  df-sbc 3436  df-csb 3534  df-dif 3577  df-un 3579  df-in 3581  df-ss 3588  df-nul 3916  df-if 4087  df-sn 4178  df-pr 4180  df-op 4184  df-uni 4437  df-iun 4522  df-br 4654  df-opab 4713  df-mpt 4730  df-id 5024  df-xp 5120  df-rel 5121  df-cnv 5122  df-co 5123  df-dm 5124  df-rn 5125  df-res 5126  df-ima 5127  df-iota 5851  df-fun 5890  df-fn 5891  df-f 5892  df-f1 5893  df-fo 5894  df-f1o 5895  df-fv 5896  df-ov 6653  df-oprab 6654  df-mpt2 6655  df-of 6897  df-1st 7168  df-2nd 7169
This theorem is referenced by:  ofpreima  29465  rrvadd  30514
  Copyright terms: Public domain W3C validator