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

Theorem xpcomco 8849
Description: Composition with the bijection of xpcomf1o 8848 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 8848 . . . . . . . . 9 𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴)
3 f1ofun 6718 . . . . . . . . 9 (𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴) → Fun 𝐹)
4 funbrfv2b 6827 . . . . . . . . 9 (Fun 𝐹 → (𝑢𝐹𝑤 ↔ (𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤)))
52, 3, 4mp2b 10 . . . . . . . 8 (𝑢𝐹𝑤 ↔ (𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤))
6 ancom 461 . . . . . . . 8 ((𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤) ↔ ((𝐹𝑢) = 𝑤𝑢 ∈ dom 𝐹))
7 eqcom 2745 . . . . . . . . 9 ((𝐹𝑢) = 𝑤𝑤 = (𝐹𝑢))
8 f1odm 6720 . . . . . . . . . . 11 (𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴) → dom 𝐹 = (𝐴 × 𝐵))
92, 8ax-mp 5 . . . . . . . . . 10 dom 𝐹 = (𝐴 × 𝐵)
109eleq2i 2830 . . . . . . . . 9 (𝑢 ∈ dom 𝐹𝑢 ∈ (𝐴 × 𝐵))
117, 10anbi12i 627 . . . . . . . 8 (((𝐹𝑢) = 𝑤𝑢 ∈ dom 𝐹) ↔ (𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)))
125, 6, 113bitri 297 . . . . . . 7 (𝑢𝐹𝑤 ↔ (𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)))
1312anbi1i 624 . . . . . 6 ((𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ((𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)) ∧ 𝑤𝐺𝑣))
14 anass 469 . . . . . 6 (((𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)) ∧ 𝑤𝐺𝑣) ↔ (𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
1513, 14bitri 274 . . . . 5 ((𝑢𝐹𝑤𝑤𝐺𝑣) ↔ (𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
1615exbii 1850 . . . 4 (∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ∃𝑤(𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
17 fvex 6787 . . . . 5 (𝐹𝑢) ∈ V
18 breq1 5077 . . . . . 6 (𝑤 = (𝐹𝑢) → (𝑤𝐺𝑣 ↔ (𝐹𝑢)𝐺𝑣))
1918anbi2d 629 . . . . 5 (𝑤 = (𝐹𝑢) → ((𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣) ↔ (𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣)))
2017, 19ceqsexv 3479 . . . 4 (∃𝑤(𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)) ↔ (𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣))
21 elxp 5612 . . . . . 6 (𝑢 ∈ (𝐴 × 𝐵) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)))
2221anbi1i 624 . . . . 5 ((𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
23 nfcv 2907 . . . . . . 7 𝑧(𝐹𝑢)
24 xpcomco.1 . . . . . . . 8 𝐺 = (𝑦𝐵, 𝑧𝐴𝐶)
25 nfmpo2 7356 . . . . . . . 8 𝑧(𝑦𝐵, 𝑧𝐴𝐶)
2624, 25nfcxfr 2905 . . . . . . 7 𝑧𝐺
27 nfcv 2907 . . . . . . 7 𝑧𝑣
2823, 26, 27nfbr 5121 . . . . . 6 𝑧(𝐹𝑢)𝐺𝑣
292819.41 2228 . . . . 5 (∃𝑧(∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
30 nfcv 2907 . . . . . . . . 9 𝑦(𝐹𝑢)
31 nfmpo1 7355 . . . . . . . . . 10 𝑦(𝑦𝐵, 𝑧𝐴𝐶)
3224, 31nfcxfr 2905 . . . . . . . . 9 𝑦𝐺
33 nfcv 2907 . . . . . . . . 9 𝑦𝑣
3430, 32, 33nfbr 5121 . . . . . . . 8 𝑦(𝐹𝑢)𝐺𝑣
353419.41 2228 . . . . . . 7 (∃𝑦((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
36 anass 469 . . . . . . . . 9 (((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣)))
37 fveq2 6774 . . . . . . . . . . . . . 14 (𝑢 = ⟨𝑧, 𝑦⟩ → (𝐹𝑢) = (𝐹‘⟨𝑧, 𝑦⟩))
38 opelxpi 5626 . . . . . . . . . . . . . . 15 ((𝑧𝐴𝑦𝐵) → ⟨𝑧, 𝑦⟩ ∈ (𝐴 × 𝐵))
39 sneq 4571 . . . . . . . . . . . . . . . . . . 19 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
4039cnveqd 5784 . . . . . . . . . . . . . . . . . 18 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
4140unieqd 4853 . . . . . . . . . . . . . . . . 17 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
42 opswap 6132 . . . . . . . . . . . . . . . . 17 {⟨𝑧, 𝑦⟩} = ⟨𝑦, 𝑧
4341, 42eqtrdi 2794 . . . . . . . . . . . . . . . 16 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = ⟨𝑦, 𝑧⟩)
44 opex 5379 . . . . . . . . . . . . . . . 16 𝑦, 𝑧⟩ ∈ V
4543, 1, 44fvmpt 6875 . . . . . . . . . . . . . . 15 (⟨𝑧, 𝑦⟩ ∈ (𝐴 × 𝐵) → (𝐹‘⟨𝑧, 𝑦⟩) = ⟨𝑦, 𝑧⟩)
4638, 45syl 17 . . . . . . . . . . . . . 14 ((𝑧𝐴𝑦𝐵) → (𝐹‘⟨𝑧, 𝑦⟩) = ⟨𝑦, 𝑧⟩)
4737, 46sylan9eq 2798 . . . . . . . . . . . . 13 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → (𝐹𝑢) = ⟨𝑦, 𝑧⟩)
4847breq1d 5084 . . . . . . . . . . . 12 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → ((𝐹𝑢)𝐺𝑣 ↔ ⟨𝑦, 𝑧𝐺𝑣))
49 df-br 5075 . . . . . . . . . . . . . . . 16 (⟨𝑦, 𝑧𝐺𝑣 ↔ ⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ 𝐺)
50 df-mpo 7280 . . . . . . . . . . . . . . . . . 18 (𝑦𝐵, 𝑧𝐴𝐶) = {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)}
5124, 50eqtri 2766 . . . . . . . . . . . . . . . . 17 𝐺 = {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)}
5251eleq2i 2830 . . . . . . . . . . . . . . . 16 (⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ 𝐺 ↔ ⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)})
53 oprabidw 7306 . . . . . . . . . . . . . . . 16 (⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)} ↔ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶))
5449, 52, 533bitri 297 . . . . . . . . . . . . . . 15 (⟨𝑦, 𝑧𝐺𝑣 ↔ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶))
5554baib 536 . . . . . . . . . . . . . 14 ((𝑦𝐵𝑧𝐴) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
5655ancoms 459 . . . . . . . . . . . . 13 ((𝑧𝐴𝑦𝐵) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
5756adantl 482 . . . . . . . . . . . 12 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
5848, 57bitrd 278 . . . . . . . . . . 11 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → ((𝐹𝑢)𝐺𝑣𝑣 = 𝐶))
5958pm5.32da 579 . . . . . . . . . 10 (𝑢 = ⟨𝑧, 𝑦⟩ → (((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6059pm5.32i 575 . . . . . . . . 9 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣)) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6136, 60bitri 274 . . . . . . . 8 (((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6261exbii 1850 . . . . . . 7 (∃𝑦((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6335, 62bitr3i 276 . . . . . 6 ((∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6463exbii 1850 . . . . 5 (∃𝑧(∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6522, 29, 643bitr2i 299 . . . 4 ((𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6616, 20, 653bitri 297 . . 3 (∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
6766opabbii 5141 . 2 {⟨𝑢, 𝑣⟩ ∣ ∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣)} = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
68 df-co 5598 . 2 (𝐺𝐹) = {⟨𝑢, 𝑣⟩ ∣ ∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣)}
69 df-mpo 7280 . . 3 (𝑧𝐴, 𝑦𝐵𝐶) = {⟨⟨𝑧, 𝑦⟩, 𝑣⟩ ∣ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)}
70 dfoprab2 7333 . . 3 {⟨⟨𝑧, 𝑦⟩, 𝑣⟩ ∣ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)} = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
7169, 70eqtri 2766 . 2 (𝑧𝐴, 𝑦𝐵𝐶) = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
7267, 68, 713eqtr4i 2776 1 (𝐺𝐹) = (𝑧𝐴, 𝑦𝐵𝐶)
Colors of variables: wff setvar class
Syntax hints:  wb 205  wa 396   = wceq 1539  wex 1782  wcel 2106  {csn 4561  cop 4567   cuni 4839   class class class wbr 5074  {copab 5136  cmpt 5157   × cxp 5587  ccnv 5588  dom cdm 5589  ccom 5593  Fun wfun 6427  1-1-ontowf1o 6432  cfv 6433  {coprab 7276  cmpo 7277
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-10 2137  ax-11 2154  ax-12 2171  ax-ext 2709  ax-sep 5223  ax-nul 5230  ax-pow 5288  ax-pr 5352  ax-un 7588
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-nf 1787  df-sb 2068  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2816  df-nfc 2889  df-ne 2944  df-ral 3069  df-rex 3070  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-pw 4535  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-mpt 5158  df-id 5489  df-xp 5595  df-rel 5596  df-cnv 5597  df-co 5598  df-dm 5599  df-rn 5600  df-iota 6391  df-fun 6435  df-fn 6436  df-f 6437  df-f1 6438  df-fo 6439  df-f1o 6440  df-fv 6441  df-oprab 7279  df-mpo 7280  df-1st 7831  df-2nd 7832
This theorem is referenced by:  omf1o  8862
  Copyright terms: Public domain W3C validator