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

Theorem fmpoco 8095
Description: Composition of two functions. Variation of fmptco 7122 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 3206 . . . . 5 (𝜑 → ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝑅 ∈ 𝐶)
3 eqid 2761 . . . . . 6 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅)
43fmpo 8068 . . . . 5 (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐵 𝑅 ∈ 𝐶 ↔ (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅):(𝐴 × 𝐵)⟶𝐶)
52, 4sylib 221 . . . 4 (𝜑 → (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅):(𝐴 × 𝐵)⟶𝐶)
6 nfcv 2923 . . . . . . 7 Ⅎ𝑢𝑅
7 nfcv 2923 . . . . . . 7 Ⅎ𝑣𝑅
8 nfcv 2923 . . . . . . . 8 Ⅎ𝑥𝑣
9 nfcsb1v 3871 . . . . . . . 8 Ⅎ𝑥⦋𝑢 / 𝑥⦌𝑅
108, 9nfcsbw 3873 . . . . . . 7 Ⅎ𝑥⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅
11 nfcsb1v 3871 . . . . . . 7 Ⅎ𝑦⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅
12 csbeq1a 3861 . . . . . . . 8 (𝑥 = 𝑢 → 𝑅 = ⦋𝑢 / 𝑥⦌𝑅)
13 csbeq1a 3861 . . . . . . . 8 (𝑦 = 𝑣 → ⦋𝑢 / 𝑥⦌𝑅 = ⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅)
1412, 13sylan9eq 2816 . . . . . . 7 ((𝑥 = 𝑢 ∧ 𝑦 = 𝑣) → 𝑅 = ⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅)
156, 7, 10, 11, 14cbvmpo 7506 . . . . . 6 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅) = (𝑢 ∈ 𝐴, 𝑣 ∈ 𝐵 ↦ ⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅)
16 vex 3455 . . . . . . . . . 10 𝑢 ∈ V
17 vex 3455 . . . . . . . . . 10 𝑣 ∈ V
1816, 17op2ndd 8001 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → (2nd ‘𝑤) = 𝑣)
1918csbeq1d 3851 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → ⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 = ⦋𝑣 / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅)
2016, 17op1std 8000 . . . . . . . . . 10 (𝑤 = ⟨𝑢, 𝑣⟩ → (1st ‘𝑤) = 𝑢)
2120csbeq1d 3851 . . . . . . . . 9 (𝑤 = ⟨𝑢, 𝑣⟩ → ⦋(1st ‘𝑤) / 𝑥⦌𝑅 = ⦋𝑢 / 𝑥⦌𝑅)
2221csbeq2dv 3854 . . . . . . . 8 (𝑤 = ⟨𝑢, 𝑣⟩ → ⦋𝑣 / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 = ⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅)
2319, 22eqtrd 2796 . . . . . . 7 (𝑤 = ⟨𝑢, 𝑣⟩ → ⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 = ⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅)
2423mpompt 7526 . . . . . 6 (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅) = (𝑢 ∈ 𝐴, 𝑣 ∈ 𝐵 ↦ ⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅)
2515, 24eqtr4i 2787 . . . . 5 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅) = (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅)
2625fmpt 7102 . . . 4 (∀𝑤 ∈ (𝐴 × 𝐵)⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 ∈ 𝐶 ↔ (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅):(𝐴 × 𝐵)⟶𝐶)
275, 26sylibr 237 . . 3 (𝜑 → ∀𝑤 ∈ (𝐴 × 𝐵)⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 ∈ 𝐶)
28 fmpoco.2 . . . 4 (𝜑 → 𝐹 = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑅))
2928, 25eqtrdi 2812 . . 3 (𝜑 → 𝐹 = (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅))
30 fmpoco.3 . . 3 (𝜑 → 𝐺 = (𝑧 ∈ 𝐶 ↦ 𝑆))
3127, 29, 30fmptcos 7124 . 2 (𝜑 → (𝐺 ∘ 𝐹) = (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 / 𝑧⦌𝑆))
3223csbeq1d 3851 . . . . 5 (𝑤 = ⟨𝑢, 𝑣⟩ → ⦋⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 / 𝑧⦌𝑆 = ⦋⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅 / 𝑧⦌𝑆)
3332mpompt 7526 . . . 4 (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 / 𝑧⦌𝑆) = (𝑢 ∈ 𝐴, 𝑣 ∈ 𝐵 ↦ ⦋⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅 / 𝑧⦌𝑆)
34 nfcv 2923 . . . . 5 Ⅎ𝑢⦋𝑅 / 𝑧⦌𝑆
35 nfcv 2923 . . . . 5 Ⅎ𝑣⦋𝑅 / 𝑧⦌𝑆
36 nfcv 2923 . . . . . 6 Ⅎ𝑥𝑆
3710, 36nfcsbw 3873 . . . . 5 Ⅎ𝑥⦋⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅 / 𝑧⦌𝑆
38 nfcv 2923 . . . . . 6 Ⅎ𝑦𝑆
3911, 38nfcsbw 3873 . . . . 5 Ⅎ𝑦⦋⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅 / 𝑧⦌𝑆
4014csbeq1d 3851 . . . . 5 ((𝑥 = 𝑢 ∧ 𝑦 = 𝑣) → ⦋𝑅 / 𝑧⦌𝑆 = ⦋⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅 / 𝑧⦌𝑆)
4134, 35, 37, 39, 40cbvmpo 7506 . . . 4 (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ ⦋𝑅 / 𝑧⦌𝑆) = (𝑢 ∈ 𝐴, 𝑣 ∈ 𝐵 ↦ ⦋⦋𝑣 / 𝑦⦌⦋𝑢 / 𝑥⦌𝑅 / 𝑧⦌𝑆)
4233, 41eqtr4i 2787 . . 3 (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 / 𝑧⦌𝑆) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ ⦋𝑅 / 𝑧⦌𝑆)
4313impb 1132 . . . . 5 ((𝜑 ∧ 𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → 𝑅 ∈ 𝐶)
44 nfcvd 2924 . . . . . 6 (𝑅 ∈ 𝐶 → Ⅎ𝑧𝑇)
45 fmpoco.4 . . . . . 6 (𝑧 = 𝑅 → 𝑆 = 𝑇)
4644, 45csbiegf 3880 . . . . 5 (𝑅 ∈ 𝐶 → ⦋𝑅 / 𝑧⦌𝑆 = 𝑇)
4743, 46syl 18 . . . 4 ((𝜑 ∧ 𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐵) → ⦋𝑅 / 𝑧⦌𝑆 = 𝑇)
4847mpoeq3dva 7489 . . 3 (𝜑 → (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ ⦋𝑅 / 𝑧⦌𝑆) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑇))
4942, 48eqtrid 2808 . 2 (𝜑 → (𝑤 ∈ (𝐴 × 𝐵) ↦ ⦋⦋(2nd ‘𝑤) / 𝑦⦌⦋(1st ‘𝑤) / 𝑥⦌𝑅 / 𝑧⦌𝑆) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑇))
5031, 49eqtrd 2796 1 (𝜑 → (𝐺 ∘ 𝐹) = (𝑥 ∈ 𝐴, 𝑦 ∈ 𝐵 ↦ 𝑇))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∧ w3a 1103   = wceq 1570   ∈ wcel 2145  ∀wral 3077  ⦋csb 3847  ⟨cop 4590   ↦ cmpt 5186   × cxp 5649   ∘ ccom 5655  ⟶wf 6527  ‘cfv 6531   ∈ cmpo 7414  1st c1st 7988  2nd c2nd 7989
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733  ax-sep 5249  ax-nul 5260  ax-pr 5391  ax-un 7740
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1573  df-fal 1583  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-ral 3078  df-rex 3088  df-rab 3414  df-v 3453  df-sbc 3740  df-csb 3848  df-dif 3902  df-un 3904  df-in 3906  df-ss 3916  df-nul 4280  df-if 4483  df-sn 4585  df-pr 4587  df-op 4591  df-uni 4868  df-iun 4953  df-br 5104  df-opab 5168  df-mpt 5187  df-id 5546  df-xp 5657  df-rel 5658  df-cnv 5659  df-co 5660  df-dm 5661  df-rn 5662  df-res 5663  df-ima 5664  df-iota 6487  df-fun 6533  df-fn 6534  df-f 6535  df-fv 6539  df-oprab 7416  df-mpo 7417  df-1st 7990  df-2nd 7991
This theorem is used by:  oprabco  8096  evlslem2  22368  txswaphmeolem  24103  xpstopnlem1  24108  stdbdxmet  24814  rrxds  25694  cnre2csqima  34525  cvmlift2lem7  36043
  Copyright terms: Public domain W3C validator