MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  fmpoco Structured version   Visualization version   GIF version

Theorem fmpoco 7783
Description: Composition of two functions. Variation of fmptco 6884 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 3190 . . . . 5 (𝜑 → ∀𝑥𝐴𝑦𝐵 𝑅𝐶)
3 eqid 2820 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑥𝐴, 𝑦𝐵𝑅)
43fmpo 7759 . . . . 5 (∀𝑥𝐴𝑦𝐵 𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
52, 4sylib 220 . . . 4 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
6 nfcv 2976 . . . . . . 7 𝑢𝑅
7 nfcv 2976 . . . . . . 7 𝑣𝑅
8 nfcv 2976 . . . . . . . 8 𝑥𝑣
9 nfcsb1v 3900 . . . . . . . 8 𝑥𝑢 / 𝑥𝑅
108, 9nfcsbw 3902 . . . . . . 7 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅
11 nfcsb1v 3900 . . . . . . 7 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅
12 csbeq1a 3890 . . . . . . . 8 (𝑥 = 𝑢𝑅 = 𝑢 / 𝑥𝑅)
13 csbeq1a 3890 . . . . . . . 8 (𝑦 = 𝑣𝑢 / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
1412, 13sylan9eq 2875 . . . . . . 7 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
156, 7, 10, 11, 14cbvmpo 7241 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
16 vex 3494 . . . . . . . . . 10 𝑢 ∈ V
17 vex 3494 . . . . . . . . . 10 𝑣 ∈ V
1816, 17op2ndd 7693 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) = 𝑣)
1918csbeq1d 3880 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅)
2016, 17op1std 7692 . . . . . . . . . 10 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) = 𝑢)
2120csbeq1d 3880 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) / 𝑥𝑅 = 𝑢 / 𝑥𝑅)
2221csbeq2dv 3883 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2319, 22eqtrd 2855 . . . . . . 7 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2423mpompt 7259 . . . . . 6 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
2515, 24eqtr4i 2846 . . . . 5 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅)
2625fmpt 6867 . . . 4 (∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
275, 26sylibr 236 . . 3 (𝜑 → ∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶)
28 fmpoco.2 . . . 4 (𝜑𝐹 = (𝑥𝐴, 𝑦𝐵𝑅))
2928, 25syl6eq 2871 . . 3 (𝜑𝐹 = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅))
30 fmpoco.3 . . 3 (𝜑𝐺 = (𝑧𝐶𝑆))
3127, 29, 30fmptcos 6886 . 2 (𝜑 → (𝐺𝐹) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆))
3223csbeq1d 3880 . . . . 5 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
3332mpompt 7259 . . . 4 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
34 nfcv 2976 . . . . 5 𝑢𝑅 / 𝑧𝑆
35 nfcv 2976 . . . . 5 𝑣𝑅 / 𝑧𝑆
36 nfcv 2976 . . . . . 6 𝑥𝑆
3710, 36nfcsbw 3902 . . . . 5 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
38 nfcv 2976 . . . . . 6 𝑦𝑆
3911, 38nfcsbw 3902 . . . . 5 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
4014csbeq1d 3880 . . . . 5 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4134, 35, 37, 39, 40cbvmpo 7241 . . . 4 (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4233, 41eqtr4i 2846 . . 3 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆)
4313impb 1110 . . . . 5 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅𝐶)
44 nfcvd 2977 . . . . . 6 (𝑅𝐶𝑧𝑇)
45 fmpoco.4 . . . . . 6 (𝑧 = 𝑅𝑆 = 𝑇)
4644, 45csbiegf 3909 . . . . 5 (𝑅𝐶𝑅 / 𝑧𝑆 = 𝑇)
4743, 46syl 17 . . . 4 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅 / 𝑧𝑆 = 𝑇)
4847mpoeq3dva 7224 . . 3 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
4942, 48syl5eq 2867 . 2 (𝜑 → (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
5031, 49eqtrd 2855 1 (𝜑 → (𝐺𝐹) = (𝑥𝐴, 𝑦𝐵𝑇))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1082   = wceq 1536  wcel 2113  wral 3137  csb 3876  cop 4566  cmpt 5139   × cxp 5546  ccom 5552  wf 6344  cfv 6348  cmpo 7151  1st c1st 7680  2nd c2nd 7681
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1795  ax-4 1809  ax-5 1910  ax-6 1969  ax-7 2014  ax-8 2115  ax-9 2123  ax-10 2144  ax-11 2160  ax-12 2176  ax-ext 2792  ax-sep 5196  ax-nul 5203  ax-pow 5259  ax-pr 5323  ax-un 7454
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1084  df-tru 1539  df-ex 1780  df-nf 1784  df-sb 2069  df-mo 2621  df-eu 2653  df-clab 2799  df-cleq 2813  df-clel 2892  df-nfc 2962  df-ne 3016  df-ral 3142  df-rex 3143  df-rab 3146  df-v 3493  df-sbc 3769  df-csb 3877  df-dif 3932  df-un 3934  df-in 3936  df-ss 3945  df-nul 4285  df-if 4461  df-sn 4561  df-pr 4563  df-op 4567  df-uni 4832  df-iun 4914  df-br 5060  df-opab 5122  df-mpt 5140  df-id 5453  df-xp 5554  df-rel 5555  df-cnv 5556  df-co 5557  df-dm 5558  df-rn 5559  df-res 5560  df-ima 5561  df-iota 6307  df-fun 6350  df-fn 6351  df-f 6352  df-fv 6356  df-oprab 7153  df-mpo 7154  df-1st 7682  df-2nd 7683
This theorem is referenced by:  oprabco  7784  evlslem2  20287  txswaphmeolem  22407  xpstopnlem1  22412  stdbdxmet  23120  rrxds  23991  cnre2csqima  31175  cvmlift2lem7  32577
  Copyright terms: Public domain W3C validator