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

Theorem txswaphmeolem 24123
Description: Show inverse for the "swap components" operation on a Cartesian product. (Contributed by Mario Carneiro, 21-Mar-2015.)
Assertion
Ref Expression
txswaphmeolem ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = ( I ↾ (𝑋 × 𝑌))
Distinct variable groups:   𝑥,𝑦,𝑋   𝑥,𝑌,𝑦

Proof of Theorem txswaphmeolem
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 id 23 . . 3 (𝑧 = ⟨𝑥, 𝑦⟩ → 𝑧 = ⟨𝑥, 𝑦⟩)
21mpompt 7534 . 2 (𝑧 ∈ (𝑋 × 𝑌) ↦ 𝑧) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩)
3 mptresid 6042 . 2 ( I ↾ (𝑋 × 𝑌)) = (𝑧 ∈ (𝑋 × 𝑌) ↦ 𝑧)
4 opelxpi 5687 . . . . . 6 ((𝑦 ∈ 𝑌 ∧ 𝑥 ∈ 𝑋) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
54ancoms 464 . . . . 5 ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
65adantl 487 . . . 4 ((⊤ ∧ (𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌)) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
7 eqidd 2761 . . . 4 (⊤ → (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩))
8 sneq 4593 . . . . . . . . . 10 (𝑧 = ⟨𝑦, 𝑥⟩ → {𝑧} = {⟨𝑦, 𝑥⟩})
98cnveqd 5852 . . . . . . . . 9 (𝑧 = ⟨𝑦, 𝑥⟩ → ◡{𝑧} = ◡{⟨𝑦, 𝑥⟩})
109unieqd 4879 . . . . . . . 8 (𝑧 = ⟨𝑦, 𝑥⟩ → ∪ ◡{𝑧} = ∪ ◡{⟨𝑦, 𝑥⟩})
11 opswap 6230 . . . . . . . 8 ∪ ◡{⟨𝑦, 𝑥⟩} = ⟨𝑥, 𝑦⟩
1210, 11eqtrdi 2811 . . . . . . 7 (𝑧 = ⟨𝑦, 𝑥⟩ → ∪ ◡{𝑧} = ⟨𝑥, 𝑦⟩)
1312mpompt 7534 . . . . . 6 (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧}) = (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩)
1413eqcomi 2769 . . . . 5 (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) = (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧})
1514a1i 11 . . . 4 (⊤ → (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) = (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧}))
166, 7, 15, 12fmpoco 8106 . . 3 (⊤ → ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩))
1716mptru 1576 . 2 ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩)
182, 3, 173eqtr4ri 2794 1 ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = ( I ↾ (𝑋 × 𝑌))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1569  ⊤wtru 1570   ∈ wcel 2144  {csn 4583  ⟨cop 4589  ∪ cuni 4866   ↦ cmpt 5185   I cid 5544   × cxp 5648  ◡ccnv 5649   ↾ cres 5652   ∘ ccom 5654   ∈ cmpo 7422
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-10 2177  ax-11 2193  ax-12 2212  ax-ext 2732  ax-sep 5248  ax-nul 5259  ax-pr 5390  ax-un 7751
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1105  df-tru 1572  df-fal 1582  df-ex 1812  df-nf 1816  df-sb 2099  df-mo 2564  df-eu 2594  df-clab 2739  df-cleq 2752  df-clel 2835  df-nfc 2909  df-ne 2956  df-ral 3077  df-rex 3087  df-rab 3413  df-v 3452  df-sbc 3739  df-csb 3847  df-ss 3896  df-dif 4047  df-in 4091  df-un 4151  df-nul 4279  df-if 4482  df-sn 4584  df-pr 4586  df-op 4590  df-uni 4867  df-iun 4952  df-br 5103  df-opab 5167  df-mpt 5186  df-id 5545  df-xp 5656  df-rel 5657  df-cnv 5658  df-co 5659  df-dm 5660  df-rn 5661  df-res 5662  df-ima 5663  df-iota 6494  df-fun 6540  df-fn 6541  df-f 6542  df-fv 6546  df-oprab 7424  df-mpo 7425  df-1st 8001  df-2nd 8002
This theorem is used by:  txswaphmeo  24124
  Copyright terms: Public domain W3C validator