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

Theorem opswap 6262
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 6256 . . . 4 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{⟨𝐴, 𝐵⟩} = {⟨𝐵, 𝐴⟩})
21unieqd 4893 . . 3 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ∪ {⟨𝐵, 𝐴⟩})
3 opex 5447 . . . 4 ⟨𝐵, 𝐴⟩ ∈ V
43unisn 4899 . . 3 ∪ {⟨𝐵, 𝐴⟩} = ⟨𝐵, 𝐴⟩
52, 4eqtrdi 2825 . 2 ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ⟨𝐵, 𝐴⟩)
6 uni0 4909 . . 3 ∪ ∅ = ∅
7 opprc 4867 . . . . . . 7 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ⟨𝐴, 𝐵⟩ = ∅)
87sneqd 4603 . . . . . 6 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {⟨𝐴, 𝐵⟩} = {∅})
98cnveqd 5873 . . . . 5 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{⟨𝐴, 𝐵⟩} = ◡{∅})
10 cnvsn0 6240 . . . . 5 ◡{∅} = ∅
119, 10eqtrdi 2825 . . . 4 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{⟨𝐴, 𝐵⟩} = ∅)
1211unieqd 4893 . . 3 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{⟨𝐴, 𝐵⟩} = ∪ ∅)
13 ancom 466 . . . 4 ((𝐴 ∈ V ∧ 𝐵 ∈ V) ↔ (𝐵 ∈ V ∧ 𝐴 ∈ V))
14 opprc 4867 . . . 4 (¬ (𝐵 ∈ V ∧ 𝐴 ∈ V) → ⟨𝐵, 𝐴⟩ = ∅)
1513, 14sylnbi 333 . . 3 (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ⟨𝐵, 𝐴⟩ = ∅)
166, 12, 153eqtr4a 2835 . 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 1572   ∈ wcel 2156  Vcvv 3461  ∅c0 4288  {csn 4595  ⟨cop 4848  ∪ cuni 4880  ◡ccnv 5665
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1834  ax-4 1848  ax-5 1951  ax-6 2009  ax-7 2050  ax-8 2158  ax-9 2166  ax-ext 2746  ax-sep 5263  ax-pr 5406
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 1819  df-sb 2110  df-clab 2753  df-cleq 2766  df-clel 2850  df-ne 2971  df-ral 3092  df-rex 3102  df-rab 3424  df-v 3463  df-ss 3908  df-dif 4057  df-in 4101  df-un 4161  df-nul 4289  df-if 4493  df-sn 4596  df-pr 4598  df-op 4849  df-uni 4881  df-br 5117  df-opab 5182  df-xp 5672  df-rel 5673  df-cnv 5674  df-dm 5676  df-rn 5677
This theorem is used by:  2nd1st  8102  cnvf1olem  8177  brtpos  8309  dftpos4  8319  tpostpos  8320  xpcomco  9143  fsumcnv  16004  fprodcnv  16215  gsumcom2  20271  txswaphmeolem  24231  swapf1  50910  swapf2  50912
  Copyright terms: Public domain W3C validator