ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  xpcomco GIF version

Theorem xpcomco 6792
Description: Composition with the bijection of xpcomf1o 6791 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 6791 . . . . . . . . 9 𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴)
3 f1ofun 5434 . . . . . . . . 9 (𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴) → Fun 𝐹)
4 funbrfv2b 5531 . . . . . . . . 9 (Fun 𝐹 → (𝑢𝐹𝑤 ↔ (𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤)))
52, 3, 4mp2b 8 . . . . . . . 8 (𝑢𝐹𝑤 ↔ (𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤))
6 ancom 264 . . . . . . . 8 ((𝑢 ∈ dom 𝐹 ∧ (𝐹𝑢) = 𝑤) ↔ ((𝐹𝑢) = 𝑤𝑢 ∈ dom 𝐹))
7 eqcom 2167 . . . . . . . . 9 ((𝐹𝑢) = 𝑤𝑤 = (𝐹𝑢))
8 f1odm 5436 . . . . . . . . . . 11 (𝐹:(𝐴 × 𝐵)–1-1-onto→(𝐵 × 𝐴) → dom 𝐹 = (𝐴 × 𝐵))
92, 8ax-mp 5 . . . . . . . . . 10 dom 𝐹 = (𝐴 × 𝐵)
109eleq2i 2233 . . . . . . . . 9 (𝑢 ∈ dom 𝐹𝑢 ∈ (𝐴 × 𝐵))
117, 10anbi12i 456 . . . . . . . 8 (((𝐹𝑢) = 𝑤𝑢 ∈ dom 𝐹) ↔ (𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)))
125, 6, 113bitri 205 . . . . . . 7 (𝑢𝐹𝑤 ↔ (𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)))
1312anbi1i 454 . . . . . 6 ((𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ((𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)) ∧ 𝑤𝐺𝑣))
14 anass 399 . . . . . 6 (((𝑤 = (𝐹𝑢) ∧ 𝑢 ∈ (𝐴 × 𝐵)) ∧ 𝑤𝐺𝑣) ↔ (𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
1513, 14bitri 183 . . . . 5 ((𝑢𝐹𝑤𝑤𝐺𝑣) ↔ (𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
1615exbii 1593 . . . 4 (∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ∃𝑤(𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)))
17 vex 2729 . . . . . . 7 𝑢 ∈ V
181mptfvex 5571 . . . . . . 7 ((∀𝑥 {𝑥} ∈ V ∧ 𝑢 ∈ V) → (𝐹𝑢) ∈ V)
1917, 18mpan2 422 . . . . . 6 (∀𝑥 {𝑥} ∈ V → (𝐹𝑢) ∈ V)
20 vex 2729 . . . . . . . . 9 𝑥 ∈ V
2120snex 4164 . . . . . . . 8 {𝑥} ∈ V
2221cnvex 5142 . . . . . . 7 {𝑥} ∈ V
2322uniex 4415 . . . . . 6 {𝑥} ∈ V
2419, 23mpg 1439 . . . . 5 (𝐹𝑢) ∈ V
25 breq1 3985 . . . . . 6 (𝑤 = (𝐹𝑢) → (𝑤𝐺𝑣 ↔ (𝐹𝑢)𝐺𝑣))
2625anbi2d 460 . . . . 5 (𝑤 = (𝐹𝑢) → ((𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣) ↔ (𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣)))
2724, 26ceqsexv 2765 . . . 4 (∃𝑤(𝑤 = (𝐹𝑢) ∧ (𝑢 ∈ (𝐴 × 𝐵) ∧ 𝑤𝐺𝑣)) ↔ (𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣))
28 elxp 4621 . . . . . 6 (𝑢 ∈ (𝐴 × 𝐵) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)))
2928anbi1i 454 . . . . 5 ((𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
30 nfcv 2308 . . . . . . 7 𝑧(𝐹𝑢)
31 xpcomco.1 . . . . . . . 8 𝐺 = (𝑦𝐵, 𝑧𝐴𝐶)
32 nfmpo2 5910 . . . . . . . 8 𝑧(𝑦𝐵, 𝑧𝐴𝐶)
3331, 32nfcxfr 2305 . . . . . . 7 𝑧𝐺
34 nfcv 2308 . . . . . . 7 𝑧𝑣
3530, 33, 34nfbr 4028 . . . . . 6 𝑧(𝐹𝑢)𝐺𝑣
363519.41 1674 . . . . 5 (∃𝑧(∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
37 nfcv 2308 . . . . . . . . 9 𝑦(𝐹𝑢)
38 nfmpo1 5909 . . . . . . . . . 10 𝑦(𝑦𝐵, 𝑧𝐴𝐶)
3931, 38nfcxfr 2305 . . . . . . . . 9 𝑦𝐺
40 nfcv 2308 . . . . . . . . 9 𝑦𝑣
4137, 39, 40nfbr 4028 . . . . . . . 8 𝑦(𝐹𝑢)𝐺𝑣
424119.41 1674 . . . . . . 7 (∃𝑦((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣))
43 anass 399 . . . . . . . . 9 (((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣)))
44 fveq2 5486 . . . . . . . . . . . . . 14 (𝑢 = ⟨𝑧, 𝑦⟩ → (𝐹𝑢) = (𝐹‘⟨𝑧, 𝑦⟩))
45 opelxpi 4636 . . . . . . . . . . . . . . 15 ((𝑧𝐴𝑦𝐵) → ⟨𝑧, 𝑦⟩ ∈ (𝐴 × 𝐵))
46 sneq 3587 . . . . . . . . . . . . . . . . . . 19 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
4746cnveqd 4780 . . . . . . . . . . . . . . . . . 18 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
4847unieqd 3800 . . . . . . . . . . . . . . . . 17 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = {⟨𝑧, 𝑦⟩})
49 vex 2729 . . . . . . . . . . . . . . . . . 18 𝑧 ∈ V
50 vex 2729 . . . . . . . . . . . . . . . . . 18 𝑦 ∈ V
51 opswapg 5090 . . . . . . . . . . . . . . . . . 18 ((𝑧 ∈ V ∧ 𝑦 ∈ V) → {⟨𝑧, 𝑦⟩} = ⟨𝑦, 𝑧⟩)
5249, 50, 51mp2an 423 . . . . . . . . . . . . . . . . 17 {⟨𝑧, 𝑦⟩} = ⟨𝑦, 𝑧
5348, 52eqtrdi 2215 . . . . . . . . . . . . . . . 16 (𝑥 = ⟨𝑧, 𝑦⟩ → {𝑥} = ⟨𝑦, 𝑧⟩)
5450, 49opex 4207 . . . . . . . . . . . . . . . 16 𝑦, 𝑧⟩ ∈ V
5553, 1, 54fvmpt 5563 . . . . . . . . . . . . . . 15 (⟨𝑧, 𝑦⟩ ∈ (𝐴 × 𝐵) → (𝐹‘⟨𝑧, 𝑦⟩) = ⟨𝑦, 𝑧⟩)
5645, 55syl 14 . . . . . . . . . . . . . 14 ((𝑧𝐴𝑦𝐵) → (𝐹‘⟨𝑧, 𝑦⟩) = ⟨𝑦, 𝑧⟩)
5744, 56sylan9eq 2219 . . . . . . . . . . . . 13 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → (𝐹𝑢) = ⟨𝑦, 𝑧⟩)
5857breq1d 3992 . . . . . . . . . . . 12 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → ((𝐹𝑢)𝐺𝑣 ↔ ⟨𝑦, 𝑧𝐺𝑣))
59 df-br 3983 . . . . . . . . . . . . . . . 16 (⟨𝑦, 𝑧𝐺𝑣 ↔ ⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ 𝐺)
60 df-mpo 5847 . . . . . . . . . . . . . . . . . 18 (𝑦𝐵, 𝑧𝐴𝐶) = {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)}
6131, 60eqtri 2186 . . . . . . . . . . . . . . . . 17 𝐺 = {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)}
6261eleq2i 2233 . . . . . . . . . . . . . . . 16 (⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ 𝐺 ↔ ⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)})
63 oprabid 5874 . . . . . . . . . . . . . . . 16 (⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∈ {⟨⟨𝑦, 𝑧⟩, 𝑣⟩ ∣ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶)} ↔ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶))
6459, 62, 633bitri 205 . . . . . . . . . . . . . . 15 (⟨𝑦, 𝑧𝐺𝑣 ↔ ((𝑦𝐵𝑧𝐴) ∧ 𝑣 = 𝐶))
6564baib 909 . . . . . . . . . . . . . 14 ((𝑦𝐵𝑧𝐴) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
6665ancoms 266 . . . . . . . . . . . . 13 ((𝑧𝐴𝑦𝐵) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
6766adantl 275 . . . . . . . . . . . 12 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → (⟨𝑦, 𝑧𝐺𝑣𝑣 = 𝐶))
6858, 67bitrd 187 . . . . . . . . . . 11 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) → ((𝐹𝑢)𝐺𝑣𝑣 = 𝐶))
6968pm5.32da 448 . . . . . . . . . 10 (𝑢 = ⟨𝑧, 𝑦⟩ → (((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7069pm5.32i 450 . . . . . . . . 9 ((𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ (𝐹𝑢)𝐺𝑣)) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7143, 70bitri 183 . . . . . . . 8 (((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ (𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7271exbii 1593 . . . . . . 7 (∃𝑦((𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7342, 72bitr3i 185 . . . . . 6 ((∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7473exbii 1593 . . . . 5 (∃𝑧(∃𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ (𝑧𝐴𝑦𝐵)) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7529, 36, 743bitr2i 207 . . . 4 ((𝑢 ∈ (𝐴 × 𝐵) ∧ (𝐹𝑢)𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7616, 27, 753bitri 205 . . 3 (∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣) ↔ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)))
7776opabbii 4049 . 2 {⟨𝑢, 𝑣⟩ ∣ ∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣)} = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
78 df-co 4613 . 2 (𝐺𝐹) = {⟨𝑢, 𝑣⟩ ∣ ∃𝑤(𝑢𝐹𝑤𝑤𝐺𝑣)}
79 df-mpo 5847 . . 3 (𝑧𝐴, 𝑦𝐵𝐶) = {⟨⟨𝑧, 𝑦⟩, 𝑣⟩ ∣ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)}
80 dfoprab2 5889 . . 3 {⟨⟨𝑧, 𝑦⟩, 𝑣⟩ ∣ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶)} = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
8179, 80eqtri 2186 . 2 (𝑧𝐴, 𝑦𝐵𝐶) = {⟨𝑢, 𝑣⟩ ∣ ∃𝑧𝑦(𝑢 = ⟨𝑧, 𝑦⟩ ∧ ((𝑧𝐴𝑦𝐵) ∧ 𝑣 = 𝐶))}
8277, 78, 813eqtr4i 2196 1 (𝐺𝐹) = (𝑧𝐴, 𝑦𝐵𝐶)
Colors of variables: wff set class
Syntax hints:  wa 103  wb 104  wal 1341   = wceq 1343  wex 1480  wcel 2136  Vcvv 2726  {csn 3576  cop 3579   cuni 3789   class class class wbr 3982  {copab 4042  cmpt 4043   × cxp 4602  ccnv 4603  dom cdm 4604  ccom 4608  Fun wfun 5182  1-1-ontowf1o 5187  cfv 5188  {coprab 5843  cmpo 5844
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-br 3983  df-opab 4044  df-mpt 4045  df-id 4271  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-oprab 5846  df-mpo 5847  df-1st 6108  df-2nd 6109
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator