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

Theorem opswap 6249
Description: Swap the members of an ordered pair. (Contributed by NM, 14-Dec-2008.) (Revised by Mario Carneiro, 30-Aug-2015.)
Assertion
Ref Expression
opswap ∪ ◡{⟨𝐴, 𝐵⟩} = ⟨𝐵, 𝐴⟩

Proof of Theorem opswap
StepHypRef Expression
1 cnvsng 6243 . . . 4 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{⟨𝐴, 𝐵⟩} = {⟨𝐵, 𝐴⟩})
21unieqd 4885 . . 3 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ∪ {⟨𝐵, 𝐴⟩})
3 opex 5439 . . . 4 ⟨𝐵, 𝐴⟩ ∈ V
43unisn 4891 . . 3 ∪ {⟨𝐵, 𝐴⟩} = ⟨𝐵, 𝐴⟩
52, 4eqtrdi 2814 . 2 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ⟨𝐵, 𝐴⟩)
6 uni0 4901 . . 3 ∪ ∅ = ∅
7 opprc 4859 . . . . . . 7 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ⟨𝐴, 𝐵⟩ = ∅)
87sneqd 4596 . . . . . 6 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {⟨𝐴, 𝐵⟩} = {∅})
98cnveqd 5865 . . . . 5 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{⟨𝐴, 𝐵⟩} = ◡{∅})
10 cnvsn0 6230 . . . . 5 ◡{∅} = ∅
119, 10eqtrdi 2814 . . . 4 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{⟨𝐴, 𝐵⟩} = ∅)
1211unieqd 4885 . . 3 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ∪ ∅)
13 ancom 466 . . . 4 ((𝐴 ∈ V ∧ 𝐵 ∈ V) ↔ (𝐵 ∈ V ∧ 𝐴 ∈ V))
14 opprc 4859 . . . 4 (¬ (𝐵 ∈ V ∧ 𝐴 ∈ V) → ⟨𝐵, 𝐴⟩ = ∅)
1513, 14sylnbi 333 . . 3 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ⟨𝐵, 𝐴⟩ = ∅)
166, 12, 153eqtr4a 2824 . 2 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ⟨𝐵, 𝐴⟩)
175, 16pm2.61i 184 1 ∪ ◡{⟨𝐴, 𝐵⟩} = ⟨𝐵, 𝐴⟩
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   ∧ wa 401   = wceq 1570   ∈ wcel 2147  Vcvv 3454  ∅c0 4281  {csn 4588  ⟨cop 4840  ∪ cuni 4872  ◡ccnv 5657
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-ext 2735  ax-sep 5255  ax-pr 5398
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-sb 2102  df-clab 2742  df-cleq 2755  df-clel 2839  df-ne 2960  df-ral 3081  df-rex 3091  df-rab 3417  df-v 3456  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 4841  df-uni 4873  df-br 5109  df-opab 5174  df-xp 5664  df-rel 5665  df-cnv 5666  df-dm 5668  df-rn 5669
This theorem is used by:  2nd1st  8083  cnvf1olem  8158  brtpos  8290  dftpos4  8300  tpostpos  8301  xpcomco  9124  fsumcnv  15983  fprodcnv  16194  gsumcom2  20240  txswaphmeolem  24178  swapf1  50725  swapf2  50727
  Copyright terms: Public domain W3C validator