ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  fmpt2co GIF version

Theorem fmpt2co 5837
Description: Composition of two functions. Variation of fmptco 5330 when the second function has two arguments. (Contributed by Mario Carneiro, 8-Feb-2015.)
Hypotheses
Ref Expression
fmpt2co.1 ((𝜑 ∧ (𝑥𝐴𝑦𝐵)) → 𝑅𝐶)
fmpt2co.2 (𝜑𝐹 = (𝑥𝐴, 𝑦𝐵𝑅))
fmpt2co.3 (𝜑𝐺 = (𝑧𝐶𝑆))
fmpt2co.4 (𝑧 = 𝑅𝑆 = 𝑇)
Assertion
Ref Expression
fmpt2co (𝜑 → (𝐺𝐹) = (𝑥𝐴, 𝑦𝐵𝑇))
Distinct variable groups:   𝑥,𝑦,𝐵   𝑥,𝑧,𝐶,𝑦   𝜑,𝑥,𝑦   𝑥,𝑆,𝑦   𝑥,𝐴,𝑦   𝑧,𝑅   𝑧,𝑇
Allowed substitution hints:   𝜑(𝑧)   𝐴(𝑧)   𝐵(𝑧)   𝑅(𝑥,𝑦)   𝑆(𝑧)   𝑇(𝑥,𝑦)   𝐹(𝑥,𝑦,𝑧)   𝐺(𝑥,𝑦,𝑧)

Proof of Theorem fmpt2co
Dummy variables 𝑢 𝑣 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fmpt2co.1 . . . . . 6 ((𝜑 ∧ (𝑥𝐴𝑦𝐵)) → 𝑅𝐶)
21ralrimivva 2401 . . . . 5 (𝜑 → ∀𝑥𝐴𝑦𝐵 𝑅𝐶)
3 eqid 2040 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑥𝐴, 𝑦𝐵𝑅)
43fmpt2 5827 . . . . 5 (∀𝑥𝐴𝑦𝐵 𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
52, 4sylib 127 . . . 4 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
6 nfcv 2178 . . . . . . 7 𝑢𝑅
7 nfcv 2178 . . . . . . 7 𝑣𝑅
8 nfcv 2178 . . . . . . . 8 𝑥𝑣
9 nfcsb1v 2882 . . . . . . . 8 𝑥𝑢 / 𝑥𝑅
108, 9nfcsb 2884 . . . . . . 7 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅
11 nfcsb1v 2882 . . . . . . 7 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅
12 csbeq1a 2860 . . . . . . . 8 (𝑥 = 𝑢𝑅 = 𝑢 / 𝑥𝑅)
13 csbeq1a 2860 . . . . . . . 8 (𝑦 = 𝑣𝑢 / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
1412, 13sylan9eq 2092 . . . . . . 7 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
156, 7, 10, 11, 14cbvmpt2 5583 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
16 vex 2560 . . . . . . . . . 10 𝑢 ∈ V
17 vex 2560 . . . . . . . . . 10 𝑣 ∈ V
1816, 17op2ndd 5776 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) = 𝑣)
1918csbeq1d 2858 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅)
2016, 17op1std 5775 . . . . . . . . . 10 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) = 𝑢)
2120csbeq1d 2858 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) / 𝑥𝑅 = 𝑢 / 𝑥𝑅)
2221csbeq2dv 2875 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2319, 22eqtrd 2072 . . . . . . 7 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2423mpt2mpt 5596 . . . . . 6 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
2515, 24eqtr4i 2063 . . . . 5 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅)
2625fmpt 5319 . . . 4 (∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
275, 26sylibr 137 . . 3 (𝜑 → ∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶)
28 fmpt2co.2 . . . 4 (𝜑𝐹 = (𝑥𝐴, 𝑦𝐵𝑅))
2928, 25syl6eq 2088 . . 3 (𝜑𝐹 = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅))
30 fmpt2co.3 . . 3 (𝜑𝐺 = (𝑧𝐶𝑆))
3127, 29, 30fmptcos 5332 . 2 (𝜑 → (𝐺𝐹) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆))
3223csbeq1d 2858 . . . . 5 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
3332mpt2mpt 5596 . . . 4 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
34 nfcv 2178 . . . . 5 𝑢𝑅 / 𝑧𝑆
35 nfcv 2178 . . . . 5 𝑣𝑅 / 𝑧𝑆
36 nfcv 2178 . . . . . 6 𝑥𝑆
3710, 36nfcsb 2884 . . . . 5 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
38 nfcv 2178 . . . . . 6 𝑦𝑆
3911, 38nfcsb 2884 . . . . 5 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
4014csbeq1d 2858 . . . . 5 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4134, 35, 37, 39, 40cbvmpt2 5583 . . . 4 (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4233, 41eqtr4i 2063 . . 3 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆)
4313impb 1100 . . . . 5 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅𝐶)
44 nfcvd 2179 . . . . . 6 (𝑅𝐶𝑧𝑇)
45 fmpt2co.4 . . . . . 6 (𝑧 = 𝑅𝑆 = 𝑇)
4644, 45csbiegf 2890 . . . . 5 (𝑅𝐶𝑅 / 𝑧𝑆 = 𝑇)
4743, 46syl 14 . . . 4 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅 / 𝑧𝑆 = 𝑇)
4847mpt2eq3dva 5569 . . 3 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
4942, 48syl5eq 2084 . 2 (𝜑 → (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
5031, 49eqtrd 2072 1 (𝜑 → (𝐺𝐹) = (𝑥𝐴, 𝑦𝐵𝑇))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 97  w3a 885   = wceq 1243  wcel 1393  wral 2306  csb 2852  cop 3378  cmpt 3818   × cxp 4343  ccom 4349  wf 4898  cfv 4902  cmpt2 5514  1st c1st 5765  2nd c2nd 5766
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-13 1404  ax-14 1405  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-sep 3875  ax-pow 3927  ax-pr 3944  ax-un 4170
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-eu 1903  df-mo 1904  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-ral 2311  df-rex 2312  df-rab 2315  df-v 2559  df-sbc 2765  df-csb 2853  df-un 2922  df-in 2924  df-ss 2931  df-pw 3361  df-sn 3381  df-pr 3382  df-op 3384  df-uni 3581  df-iun 3659  df-br 3765  df-opab 3819  df-mpt 3820  df-id 4030  df-xp 4351  df-rel 4352  df-cnv 4353  df-co 4354  df-dm 4355  df-rn 4356  df-res 4357  df-ima 4358  df-iota 4867  df-fun 4904  df-fn 4905  df-f 4906  df-fv 4910  df-oprab 5516  df-mpt2 5517  df-1st 5767  df-2nd 5768
This theorem is referenced by:  oprabco  5838
  Copyright terms: Public domain W3C validator