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

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

Proof of Theorem fmpoco
Dummy variables 𝑣 𝑢 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fmpoco.1 . . . . . 6 ((𝜑 ∧ (𝑥𝐴𝑦𝐵)) → 𝑅𝐶)
21ralrimivva 2517 . . . . 5 (𝜑 → ∀𝑥𝐴𝑦𝐵 𝑅𝐶)
3 eqid 2140 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑥𝐴, 𝑦𝐵𝑅)
43fmpo 6107 . . . . 5 (∀𝑥𝐴𝑦𝐵 𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
52, 4sylib 121 . . . 4 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
6 nfcv 2282 . . . . . . 7 𝑢𝑅
7 nfcv 2282 . . . . . . 7 𝑣𝑅
8 nfcv 2282 . . . . . . . 8 𝑥𝑣
9 nfcsb1v 3040 . . . . . . . 8 𝑥𝑢 / 𝑥𝑅
108, 9nfcsb 3042 . . . . . . 7 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅
11 nfcsb1v 3040 . . . . . . 7 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅
12 csbeq1a 3016 . . . . . . . 8 (𝑥 = 𝑢𝑅 = 𝑢 / 𝑥𝑅)
13 csbeq1a 3016 . . . . . . . 8 (𝑦 = 𝑣𝑢 / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
1412, 13sylan9eq 2193 . . . . . . 7 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
156, 7, 10, 11, 14cbvmpo 5858 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
16 vex 2692 . . . . . . . . . 10 𝑢 ∈ V
17 vex 2692 . . . . . . . . . 10 𝑣 ∈ V
1816, 17op2ndd 6055 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) = 𝑣)
1918csbeq1d 3014 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅)
2016, 17op1std 6054 . . . . . . . . . 10 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) = 𝑢)
2120csbeq1d 3014 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) / 𝑥𝑅 = 𝑢 / 𝑥𝑅)
2221csbeq2dv 3033 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2319, 22eqtrd 2173 . . . . . . 7 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2423mpompt 5871 . . . . . 6 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
2515, 24eqtr4i 2164 . . . . 5 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅)
2625fmpt 5578 . . . 4 (∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
275, 26sylibr 133 . . 3 (𝜑 → ∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶)
28 fmpoco.2 . . . 4 (𝜑𝐹 = (𝑥𝐴, 𝑦𝐵𝑅))
2928, 25eqtrdi 2189 . . 3 (𝜑𝐹 = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅))
30 fmpoco.3 . . 3 (𝜑𝐺 = (𝑧𝐶𝑆))
3127, 29, 30fmptcos 5596 . 2 (𝜑 → (𝐺𝐹) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆))
3223csbeq1d 3014 . . . . 5 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
3332mpompt 5871 . . . 4 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
34 nfcv 2282 . . . . 5 𝑢𝑅 / 𝑧𝑆
35 nfcv 2282 . . . . 5 𝑣𝑅 / 𝑧𝑆
36 nfcv 2282 . . . . . 6 𝑥𝑆
3710, 36nfcsb 3042 . . . . 5 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
38 nfcv 2282 . . . . . 6 𝑦𝑆
3911, 38nfcsb 3042 . . . . 5 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
4014csbeq1d 3014 . . . . 5 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4134, 35, 37, 39, 40cbvmpo 5858 . . . 4 (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4233, 41eqtr4i 2164 . . 3 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆)
4313impb 1178 . . . . 5 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅𝐶)
44 nfcvd 2283 . . . . . 6 (𝑅𝐶𝑧𝑇)
45 fmpoco.4 . . . . . 6 (𝑧 = 𝑅𝑆 = 𝑇)
4644, 45csbiegf 3048 . . . . 5 (𝑅𝐶𝑅 / 𝑧𝑆 = 𝑇)
4743, 46syl 14 . . . 4 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅 / 𝑧𝑆 = 𝑇)
4847mpoeq3dva 5843 . . 3 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
4942, 48syl5eq 2185 . 2 (𝜑 → (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
5031, 49eqtrd 2173 1 (𝜑 → (𝐺𝐹) = (𝑥𝐴, 𝑦𝐵𝑇))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  w3a 963   = wceq 1332  wcel 1481  wral 2417  csb 3007  cop 3535  cmpt 3997   × cxp 4545  ccom 4551  wf 5127  cfv 5131  cmpo 5784  1st c1st 6044  2nd c2nd 6045
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 699  ax-5 1424  ax-7 1425  ax-gen 1426  ax-ie1 1470  ax-ie2 1471  ax-8 1483  ax-10 1484  ax-11 1485  ax-i12 1486  ax-bndl 1487  ax-4 1488  ax-13 1492  ax-14 1493  ax-17 1507  ax-i9 1511  ax-ial 1515  ax-i5r 1516  ax-ext 2122  ax-sep 4054  ax-pow 4106  ax-pr 4139  ax-un 4363
This theorem depends on definitions:  df-bi 116  df-3an 965  df-tru 1335  df-nf 1438  df-sb 1737  df-eu 2003  df-mo 2004  df-clab 2127  df-cleq 2133  df-clel 2136  df-nfc 2271  df-ral 2422  df-rex 2423  df-rab 2426  df-v 2691  df-sbc 2914  df-csb 3008  df-un 3080  df-in 3082  df-ss 3089  df-pw 3517  df-sn 3538  df-pr 3539  df-op 3541  df-uni 3745  df-iun 3823  df-br 3938  df-opab 3998  df-mpt 3999  df-id 4223  df-xp 4553  df-rel 4554  df-cnv 4555  df-co 4556  df-dm 4557  df-rn 4558  df-res 4559  df-ima 4560  df-iota 5096  df-fun 5133  df-fn 5134  df-f 5135  df-fv 5139  df-oprab 5786  df-mpo 5787  df-1st 6046  df-2nd 6047
This theorem is referenced by:  oprabco  6122  txswaphmeolem  12528  bdxmet  12709
  Copyright terms: Public domain W3C validator