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

Theorem txswaphmeolem 24150
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 7554 . 2 (𝑧 ∈ (𝑋 × 𝑌) ↦ 𝑧) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩)
3 mptresid 6054 . 2 ( I ↾ (𝑋 × 𝑌)) = (𝑧 ∈ (𝑋 × 𝑌) ↦ 𝑧)
4 opelxpi 5692 . . . . . 6 ((𝑦 ∈ 𝑌 ∧ 𝑥 ∈ 𝑋) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
54ancoms 464 . . . . 5 ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
65adantl 487 . . . 4 ((⊤ ∧ (𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌)) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
7 eqidd 2764 . . . 4 (⊤ → (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩))
8 sneq 4594 . . . . . . . . . 10 (𝑧 = ⟨𝑦, 𝑥⟩ → {𝑧} = {⟨𝑦, 𝑥⟩})
98cnveqd 5859 . . . . . . . . 9 (𝑧 = ⟨𝑦, 𝑥⟩ → ◡{𝑧} = ◡{⟨𝑦, 𝑥⟩})
109unieqd 4883 . . . . . . . 8 (𝑧 = ⟨𝑦, 𝑥⟩ → ∪ ◡{𝑧} = ∪ ◡{⟨𝑦, 𝑥⟩})
11 opswap 6242 . . . . . . . 8 ∪ ◡{⟨𝑦, 𝑥⟩} = ⟨𝑥, 𝑦⟩
1210, 11eqtrdi 2814 . . . . . . 7 (𝑧 = ⟨𝑦, 𝑥⟩ → ∪ ◡{𝑧} = ⟨𝑥, 𝑦⟩)
1312mpompt 7554 . . . . . 6 (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧}) = (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩)
1413eqcomi 2772 . . . . 5 (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) = (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧})
1514a1i 11 . . . 4 (⊤ → (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) = (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧}))
166, 7, 15, 12fmpoco 8129 . . 3 (⊤ → ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩))
1716mptru 1577 . 2 ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩)
182, 3, 173eqtr4ri 2797 1 ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = ( I ↾ (𝑋 × 𝑌))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1570  ⊤wtru 1571   ∈ wcel 2147  {csn 4588  ⟨cop 4838  ∪ cuni 4870   ↦ cmpt 5189   I cid 5549   × cxp 5653  ◡ccnv 5654   ↾ cres 5657   ∘ ccom 5659   ∈ cmpo 7442
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 1945  ax-6 2002  ax-7 2043  ax-8 2149  ax-9 2157  ax-10 2180  ax-11 2197  ax-12 2216  ax-ext 2735  ax-sep 5252  ax-nul 5263  ax-pr 5395  ax-un 7772
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 2102  df-mo 2567  df-eu 2597  df-clab 2742  df-cleq 2755  df-clel 2839  df-nfc 2913  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  df-sbc 3743  df-csb 3852  df-ss 3901  df-dif 4050  df-in 4094  df-un 4154  df-nul 4282  df-if 4486  df-sn 4589  df-pr 4591  df-op 4839  df-uni 4871  df-iun 4956  df-br 5107  df-opab 5171  df-mpt 5190  df-id 5550  df-xp 5661  df-rel 5662  df-cnv 5663  df-co 5664  df-dm 5665  df-rn 5666  df-res 5667  df-ima 5668  df-iota 6509  df-fun 6557  df-fn 6558  df-f 6559  df-fv 6563  df-oprab 7444  df-mpo 7445  df-1st 8022  df-2nd 8023
This theorem is used by:  txswaphmeo  24151
  Copyright terms: Public domain W3C validator