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

Theorem xpcomco 8802
Description: Composition with the bijection of xpcomf1o 8801 swaps the arguments to a mapping. (Contributed by Mario Carneiro, 30-May-2015.)
Hypotheses
Ref Expression
xpcomf1o.1 𝐹 = (𝑥 ∈ (𝐴 × 𝐵) ↦ {𝑥})
xpcomco.1 𝐺 = (𝑦𝐵, 𝑧𝐴𝐶)
Assertion
Ref Expression
xpcomco (𝐺𝐹) = (𝑧𝐴, 𝑦𝐵𝐶)
Distinct variable groups:   𝑥,𝑦,𝑧,𝐴   𝑥,𝐵,𝑦,𝑧   𝑦,𝐹,𝑧
Allowed substitution hints:   𝐶(𝑥,𝑦,𝑧)   𝐹(𝑥)   𝐺(𝑥,𝑦,𝑧)

Proof of Theorem xpcomco
Dummy variables 𝑣 𝑢 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 xpcomf1o.1 . . . . . . . . . 10 𝐹 = (𝑥 ∈ (𝐴 × 𝐵) ↦ {𝑥})
21xpcomf1o 8801 . . . . . . . . 9 𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴)
3 f1ofun 6702 . . . . . . . . 9 (𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴) → Fun 𝐹)
4 funbrfv2b 6809 . . . . . . . . 9 (Fun 𝐹 → (𝑢𝐹𝑤 ↔ (𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤)))
52, 3, 4mp2b 10 . . . . . . . 8 (𝑢𝐹𝑤 ↔ (𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤))
6 ancom 460 . . . . . . . 8 ((𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤) ↔ ((𝐹𝑢) = 𝑤𝑢 ∈ dom 𝐹))
7 eqcom 2745 . . . . . . . . 9 ((𝐹𝑢) = 𝑤𝑤 = (𝐹𝑢))
8 f1odm 6704 . . . . . . . . . . 11 (𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴) → dom 𝐹 = (𝐴 × 𝐵))
92, 8ax-mp 5 . . . . . . . . . 10 dom 𝐹 = (𝐴 × 𝐵)
109eleq2i 2830 . . . . . . . . 9 (𝑢 ∈ dom 𝐹𝑢 ∈ (𝐴 × 𝐵))
117, 10anbi12i 626 . . . . . . . 8 (((𝐹𝑢) = 𝑤𝑢 ∈ dom 𝐹) ↔ (𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)))
125, 6, 113bitri 296 . . . . . . 7 (𝑢𝐹𝑤 ↔ (𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)))
1312anbi1i 623 . . . . . 6 ((𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ((𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)) ∧ 𝑤𝐺𝑣))
14 anass 468 . . . . . 6 (((𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)) ∧ 𝑤𝐺𝑣) ↔ (𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
1513, 14bitri 274 . . . . 5 ((𝑢𝐹𝑤𝑤𝐺𝑣) ↔ (𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
1615exbii 1851 . . . 4 (∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ∃𝑤(𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
17 fvex 6769 . . . . 5 (𝐹𝑢) ∈ V
18 breq1 5073 . . . . . 6 (𝑤 = (𝐹𝑢) → (𝑤𝐺𝑣 ↔ (𝐹𝑢)𝐺𝑣))
1918anbi2d 628 . . . . 5 (𝑤 = (𝐹𝑢) → ((𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣) ↔ (𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣)))
2017, 19ceqsexv 3469 . . . 4 (∃𝑤(𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)) ↔ (𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣))
21 elxp 5603 . . . . . 6 (𝑢 ∈ (𝐴 × 𝐵) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)))
2221anbi1i 623 . . . . 5 ((𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
23 nfcv 2906 . . . . . . 7 𝑧(𝐹𝑢)
24 xpcomco.1 . . . . . . . 8 𝐺 = (𝑦𝐵, 𝑧𝐴𝐶)
25 nfmpo2 7334 . . . . . . . 8 𝑧(𝑦𝐵, 𝑧𝐴𝐶)
2624, 25nfcxfr 2904 . . . . . . 7 𝑧𝐺
27 nfcv 2906 . . . . . . 7 𝑧𝑣
2823, 26, 27nfbr 5117 . . . . . 6 𝑧(𝐹𝑢)𝐺𝑣
292819.41 2231 . . . . 5 (∃𝑧(∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
30 nfcv 2906 . . . . . . . . 9 𝑦(𝐹𝑢)
31 nfmpo1 7333 . . . . . . . . . 10 𝑦(𝑦𝐵, 𝑧𝐴𝐶)
3224, 31nfcxfr 2904 . . . . . . . . 9 𝑦𝐺
33 nfcv 2906 . . . . . . . . 9 𝑦𝑣
3430, 32, 33nfbr 5117 . . . . . . . 8 𝑦(𝐹𝑢)𝐺𝑣
353419.41 2231 . . . . . . 7 (∃𝑦((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
36 anass 468 . . . . . . . . 9 (((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣)))
37 fveq2 6756 . . . . . . . . . . . . . 14 (𝑢 = ⟨𝑧, 𝑦⟩ → (𝐹𝑢) = (𝐹‘⟨𝑧, 𝑦⟩))
38 opelxpi 5617 . . . . . . . . . . . . . . 15 ((𝑧𝐴𝑦𝐵) → ⟨𝑧, 𝑦⟩ ∈ (𝐴 × 𝐵))
39 sneq 4568 . . . . . . . . . . . . . . . . . . 19 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
4039cnveqd 5773 . . . . . . . . . . . . . . . . . 18 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
4140unieqd 4850 . . . . . . . . . . . . . . . . 17 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
42 opswap 6121 . . . . . . . . . . . . . . . . 17 {⟨𝑧, 𝑦⟩} = ⟨𝑦, 𝑧
4341, 42eqtrdi 2795 . . . . . . . . . . . . . . . 16 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = ⟨𝑦, 𝑧⟩)
44 opex 5373 . . . . . . . . . . . . . . . 16 𝑦, 𝑧⟩ ∈ V
4543, 1, 44fvmpt 6857 . . . . . . . . . . . . . . 15 (⟨𝑧, 𝑦⟩ ∈ (𝐴 × 𝐵) → (𝐹‘⟨𝑧, 𝑦⟩) = ⟨𝑦, 𝑧⟩)
4638, 45syl 17 . . . . . . . . . . . . . 14 ((𝑧𝐴𝑦𝐵) → (𝐹‘⟨𝑧, 𝑦⟩) = ⟨𝑦, 𝑧⟩)
4737, 46sylan9eq 2799 . . . . . . . . . . . . 13 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → (𝐹𝑢) = ⟨𝑦, 𝑧⟩)
4847breq1d 5080 . . . . . . . . . . . 12 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → ((𝐹𝑢)𝐺𝑣 ↔ ⟨𝑦, 𝑧𝐺𝑣))
49 df-br 5071 . . . . . . . . . . . . . . . 16 (⟨𝑦, 𝑧𝐺𝑣 ↔ ⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ 𝐺)
50 df-mpo 7260 . . . . . . . . . . . . . . . . . 18 (𝑦𝐵, 𝑧𝐴𝐶) = {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)}
5124, 50eqtri 2766 . . . . . . . . . . . . . . . . 17 𝐺 = {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)}
5251eleq2i 2830 . . . . . . . . . . . . . . . 16 (⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ 𝐺 ↔ ⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)})
53 oprabidw 7286 . . . . . . . . . . . . . . . 16 (⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)} ↔ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶))
5449, 52, 533bitri 296 . . . . . . . . . . . . . . 15 (⟨𝑦, 𝑧𝐺𝑣 ↔ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶))
5554baib 535 . . . . . . . . . . . . . 14 ((𝑦𝐵𝑧𝐴) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
5655ancoms 458 . . . . . . . . . . . . 13 ((𝑧𝐴𝑦𝐵) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
5756adantl 481 . . . . . . . . . . . 12 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
5848, 57bitrd 278 . . . . . . . . . . 11 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → ((𝐹𝑢)𝐺𝑣𝑣 = 𝐶))
5958pm5.32da 578 . . . . . . . . . 10 (𝑢 = ⟨𝑧, 𝑦⟩ → (((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6059pm5.32i 574 . . . . . . . . 9 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣)) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6136, 60bitri 274 . . . . . . . 8 (((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6261exbii 1851 . . . . . . 7 (∃𝑦((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6335, 62bitr3i 276 . . . . . 6 ((∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6463exbii 1851 . . . . 5 (∃𝑧(∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6522, 29, 643bitr2i 298 . . . 4 ((𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6616, 20, 653bitri 296 . . 3 (∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6766opabbii 5137 . 2 {⟨𝑢, 𝑣⟩ ∣ ∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣)} = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
68 df-co 5589 . 2 (𝐺𝐹) = {⟨𝑢, 𝑣⟩ ∣ ∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣)}
69 df-mpo 7260 . . 3 (𝑧𝐴, 𝑦𝐵𝐶) = {⟨⟨𝑧, 𝑦⟩, 𝑣⟩ ∣ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)}
70 dfoprab2 7311 . . 3 {⟨⟨𝑧, 𝑦⟩, 𝑣⟩ ∣ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)} = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
7169, 70eqtri 2766 . 2 (𝑧𝐴, 𝑦𝐵𝐶) = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
7267, 68, 713eqtr4i 2776 1 (𝐺𝐹) = (𝑧𝐴, 𝑦𝐵𝐶)
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 395   = wceq 1539  wex 1783  wcel 2108  {csn 4558  cop 4564   cuni 4836   class class class wbr 5070  {copab 5132  cmpt 5153   × cxp 5578  ccnv 5579  dom cdm 5580  ccom 5584  Fun wfun 6412  1-1-ontowf1o 6417  cfv 6418  {coprab 7256  cmpo 7257
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pow 5283  ax-pr 5347  ax-un 7566
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ne 2943  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-rn 5591  df-iota 6376  df-fun 6420  df-fn 6421  df-f 6422  df-f1 6423  df-fo 6424  df-f1o 6425  df-fv 6426  df-oprab 7259  df-mpo 7260  df-1st 7804  df-2nd 7805
This theorem is referenced by:  omf1o  8815
  Copyright terms: Public domain W3C validator