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

Theorem fmpoco 7790
Description: Composition of two functions. Variation of fmptco 6891 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 3191 . . . . 5 (𝜑 → ∀𝑥𝐴𝑦𝐵 𝑅𝐶)
3 eqid 2821 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑥𝐴, 𝑦𝐵𝑅)
43fmpo 7766 . . . . 5 (∀𝑥𝐴𝑦𝐵 𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
52, 4sylib 220 . . . 4 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
6 nfcv 2977 . . . . . . 7 𝑢𝑅
7 nfcv 2977 . . . . . . 7 𝑣𝑅
8 nfcv 2977 . . . . . . . 8 𝑥𝑣
9 nfcsb1v 3907 . . . . . . . 8 𝑥𝑢 / 𝑥𝑅
108, 9nfcsbw 3909 . . . . . . 7 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅
11 nfcsb1v 3907 . . . . . . 7 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅
12 csbeq1a 3897 . . . . . . . 8 (𝑥 = 𝑢𝑅 = 𝑢 / 𝑥𝑅)
13 csbeq1a 3897 . . . . . . . 8 (𝑦 = 𝑣𝑢 / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
1412, 13sylan9eq 2876 . . . . . . 7 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
156, 7, 10, 11, 14cbvmpo 7248 . . . . . 6 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
16 vex 3497 . . . . . . . . . 10 𝑢 ∈ V
17 vex 3497 . . . . . . . . . 10 𝑣 ∈ V
1816, 17op2ndd 7700 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) = 𝑣)
1918csbeq1d 3887 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅)
2016, 17op1std 7699 . . . . . . . . . 10 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) = 𝑢)
2120csbeq1d 3887 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st𝑤) / 𝑥𝑅 = 𝑢 / 𝑥𝑅)
2221csbeq2dv 3890 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → 𝑣 / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2319, 22eqtrd 2856 . . . . . . 7 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 = 𝑣 / 𝑦𝑢 / 𝑥𝑅)
2423mpompt 7266 . . . . . 6 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅)
2515, 24eqtr4i 2847 . . . . 5 (𝑥𝐴, 𝑦𝐵𝑅) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅)
2625fmpt 6874 . . . 4 (∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶 ↔ (𝑥𝐴, 𝑦𝐵𝑅):(𝐴 × 𝐵)⟶𝐶)
275, 26sylibr 236 . . 3 (𝜑 → ∀𝑤 ∈ (𝐴 × 𝐵)(2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅𝐶)
28 fmpoco.2 . . . 4 (𝜑𝐹 = (𝑥𝐴, 𝑦𝐵𝑅))
2928, 25syl6eq 2872 . . 3 (𝜑𝐹 = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅))
30 fmpoco.3 . . 3 (𝜑𝐺 = (𝑧𝐶𝑆))
3127, 29, 30fmptcos 6893 . 2 (𝜑 → (𝐺𝐹) = (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆))
3223csbeq1d 3887 . . . . 5 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
3332mpompt 7266 . . . 4 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
34 nfcv 2977 . . . . 5 𝑢𝑅 / 𝑧𝑆
35 nfcv 2977 . . . . 5 𝑣𝑅 / 𝑧𝑆
36 nfcv 2977 . . . . . 6 𝑥𝑆
3710, 36nfcsbw 3909 . . . . 5 𝑥𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
38 nfcv 2977 . . . . . 6 𝑦𝑆
3911, 38nfcsbw 3909 . . . . 5 𝑦𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆
4014csbeq1d 3887 . . . . 5 ((𝑥 = 𝑢𝑦 = 𝑣) → 𝑅 / 𝑧𝑆 = 𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4134, 35, 37, 39, 40cbvmpo 7248 . . . 4 (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑢𝐴, 𝑣𝐵𝑣 / 𝑦𝑢 / 𝑥𝑅 / 𝑧𝑆)
4233, 41eqtr4i 2847 . . 3 (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆)
4313impb 1111 . . . . 5 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅𝐶)
44 nfcvd 2978 . . . . . 6 (𝑅𝐶𝑧𝑇)
45 fmpoco.4 . . . . . 6 (𝑧 = 𝑅𝑆 = 𝑇)
4644, 45csbiegf 3916 . . . . 5 (𝑅𝐶𝑅 / 𝑧𝑆 = 𝑇)
4743, 46syl 17 . . . 4 ((𝜑𝑥𝐴𝑦𝐵) → 𝑅 / 𝑧𝑆 = 𝑇)
4847mpoeq3dva 7231 . . 3 (𝜑 → (𝑥𝐴, 𝑦𝐵𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
4942, 48syl5eq 2868 . 2 (𝜑 → (𝑤 ∈ (𝐴 × 𝐵) ↦ (2nd𝑤) / 𝑦(1st𝑤) / 𝑥𝑅 / 𝑧𝑆) = (𝑥𝐴, 𝑦𝐵𝑇))
5031, 49eqtrd 2856 1 (𝜑 → (𝐺𝐹) = (𝑥𝐴, 𝑦𝐵𝑇))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 398  w3a 1083   = wceq 1537  wcel 2114  wral 3138  csb 3883  cop 4573  cmpt 5146   × cxp 5553  ccom 5559  wf 6351  cfv 6355  cmpo 7158  1st c1st 7687  2nd c2nd 7688
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793  ax-sep 5203  ax-nul 5210  ax-pow 5266  ax-pr 5330  ax-un 7461
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-mo 2622  df-eu 2654  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-ne 3017  df-ral 3143  df-rex 3144  df-rab 3147  df-v 3496  df-sbc 3773  df-csb 3884  df-dif 3939  df-un 3941  df-in 3943  df-ss 3952  df-nul 4292  df-if 4468  df-sn 4568  df-pr 4570  df-op 4574  df-uni 4839  df-iun 4921  df-br 5067  df-opab 5129  df-mpt 5147  df-id 5460  df-xp 5561  df-rel 5562  df-cnv 5563  df-co 5564  df-dm 5565  df-rn 5566  df-res 5567  df-ima 5568  df-iota 6314  df-fun 6357  df-fn 6358  df-f 6359  df-fv 6363  df-oprab 7160  df-mpo 7161  df-1st 7689  df-2nd 7690
This theorem is referenced by:  oprabco  7791  evlslem2  20292  txswaphmeolem  22412  xpstopnlem1  22417  stdbdxmet  23125  rrxds  23996  cnre2csqima  31154  cvmlift2lem7  32556
  Copyright terms: Public domain W3C validator