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

Theorem txswaphmeolem 24180
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 7564 . 2 (𝑧 ∈ (𝑋 × 𝑌) ↦ 𝑧) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩)
3 mptresid 6060 . 2 ( I ↾ (𝑋 × 𝑌)) = (𝑧 ∈ (𝑋 × 𝑌) ↦ 𝑧)
4 opelxpi 5694 . . . . . 6 ((𝑦 ∈ 𝑌 ∧ 𝑥 ∈ 𝑋) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
54ancoms 464 . . . . 5 ((𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
65adantl 487 . . . 4 ((⊤ ∧ (𝑥 ∈ 𝑋 ∧ 𝑦 ∈ 𝑌)) → ⟨𝑦, 𝑥⟩ ∈ (𝑌 × 𝑋))
7 eqidd 2767 . . . 4 (⊤ → (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩))
8 sneq 4593 . . . . . . . . . 10 (𝑧 = ⟨𝑦, 𝑥⟩ → {𝑧} = {⟨𝑦, 𝑥⟩})
98cnveqd 5864 . . . . . . . . 9 (𝑧 = ⟨𝑦, 𝑥⟩ → ◡{𝑧} = ◡{⟨𝑦, 𝑥⟩})
109unieqd 4884 . . . . . . . 8 (𝑧 = ⟨𝑦, 𝑥⟩ → ∪ ◡{𝑧} = ∪ ◡{⟨𝑦, 𝑥⟩})
11 opswap 6248 . . . . . . . 8 ∪ ◡{⟨𝑦, 𝑥⟩} = ⟨𝑥, 𝑦⟩
1210, 11eqtrdi 2817 . . . . . . 7 (𝑧 = ⟨𝑦, 𝑥⟩ → ∪ ◡{𝑧} = ⟨𝑥, 𝑦⟩)
1312mpompt 7564 . . . . . 6 (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧}) = (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩)
1413eqcomi 2775 . . . . 5 (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) = (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧})
1514a1i 11 . . . 4 (⊤ → (𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) = (𝑧 ∈ (𝑌 × 𝑋) ↦ ∪ ◡{𝑧}))
166, 7, 15, 12fmpoco 8141 . . 3 (⊤ → ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩))
1716mptru 1579 . 2 ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑥, 𝑦⟩)
182, 3, 173eqtr4ri 2800 1 ((𝑦 ∈ 𝑌, 𝑥 ∈ 𝑋 ↦ ⟨𝑥, 𝑦⟩) ∘ (𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌 ↦ ⟨𝑦, 𝑥⟩)) = ( I ↾ (𝑋 × 𝑌))
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   ∧ wa 401   = wceq 1572  ⊤wtru 1573   ∈ wcel 2150  {csn 4587  ⟨cop 4839  ∪ cuni 4871   ↦ cmpt 5191   I cid 5551   × cxp 5655  ◡ccnv 5656   ↾ cres 5659   ∘ ccom 5661   ∈ cmpo 7452
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2152  ax-9 2160  ax-10 2183  ax-11 2200  ax-12 2219  ax-ext 2738  ax-sep 5254  ax-nul 5265  ax-pr 5397  ax-un 7782
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2104  df-mo 2570  df-eu 2600  df-clab 2745  df-cleq 2758  df-clel 2842  df-nfc 2916  df-ne 2963  df-ral 3084  df-rex 3094  df-rab 3416  df-v 3455  df-sbc 3742  df-csb 3851  df-ss 3900  df-dif 4049  df-in 4093  df-un 4153  df-nul 4281  df-if 4485  df-sn 4588  df-pr 4590  df-op 4840  df-uni 4872  df-iun 4957  df-br 5108  df-opab 5173  df-mpt 5192  df-id 5552  df-xp 5663  df-rel 5664  df-cnv 5665  df-co 5666  df-dm 5667  df-rn 5668  df-res 5669  df-ima 5670  df-iota 6519  df-fun 6567  df-fn 6568  df-f 6569  df-fv 6573  df-oprab 7454  df-mpo 7455  df-1st 8034  df-2nd 8035
This theorem is used by:  txswaphmeo  24181
  Copyright terms: Public domain W3C validator