| Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > opswap | Structured version Visualization version GIF version | ||
| Description: Swap the members of an ordered pair. (Contributed by NM, 14-Dec-2008.) (Revised by Mario Carneiro, 30-Aug-2015.) |
| Ref | Expression |
|---|---|
| opswap | ⊢ ∪ ◡{〈𝐴, 𝐵〉} = 〈𝐵, 𝐴〉 |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | cnvsng 6196 | . . . 4 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{〈𝐴, 𝐵〉} = {〈𝐵, 𝐴〉}) | |
| 2 | 1 | unieqd 4884 | . . 3 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = ∪ {〈𝐵, 𝐴〉}) |
| 3 | opex 5424 | . . . 4 ⊢ 〈𝐵, 𝐴〉 ∈ V | |
| 4 | 3 | unisn 4890 | . . 3 ⊢ ∪ {〈𝐵, 𝐴〉} = 〈𝐵, 𝐴〉 |
| 5 | 2, 4 | eqtrdi 2780 | . 2 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = 〈𝐵, 𝐴〉) |
| 6 | uni0 4899 | . . 3 ⊢ ∪ ∅ = ∅ | |
| 7 | opprc 4860 | . . . . . . 7 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → 〈𝐴, 𝐵〉 = ∅) | |
| 8 | 7 | sneqd 4601 | . . . . . 6 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {〈𝐴, 𝐵〉} = {∅}) |
| 9 | 8 | cnveqd 5839 | . . . . 5 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{〈𝐴, 𝐵〉} = ◡{∅}) |
| 10 | cnvsn0 6183 | . . . . 5 ⊢ ◡{∅} = ∅ | |
| 11 | 9, 10 | eqtrdi 2780 | . . . 4 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{〈𝐴, 𝐵〉} = ∅) |
| 12 | 11 | unieqd 4884 | . . 3 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = ∪ ∅) |
| 13 | ancom 460 | . . . 4 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ↔ (𝐵 ∈ V ∧ 𝐴 ∈ V)) | |
| 14 | opprc 4860 | . . . 4 ⊢ (¬ (𝐵 ∈ V ∧ 𝐴 ∈ V) → 〈𝐵, 𝐴〉 = ∅) | |
| 15 | 13, 14 | sylnbi 330 | . . 3 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → 〈𝐵, 𝐴〉 = ∅) |
| 16 | 6, 12, 15 | 3eqtr4a 2790 | . 2 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = 〈𝐵, 𝐴〉) |
| 17 | 5, 16 | pm2.61i 182 | 1 ⊢ ∪ ◡{〈𝐴, 𝐵〉} = 〈𝐵, 𝐴〉 |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 ∧ wa 395 = wceq 1540 ∈ wcel 2109 Vcvv 3447 ∅c0 4296 {csn 4589 〈cop 4595 ∪ cuni 4871 ◡ccnv 5637 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1795 ax-4 1809 ax-5 1910 ax-6 1967 ax-7 2008 ax-8 2111 ax-9 2119 ax-10 2142 ax-11 2158 ax-12 2178 ax-ext 2701 ax-sep 5251 ax-nul 5261 ax-pr 5387 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-3an 1088 df-tru 1543 df-fal 1553 df-ex 1780 df-nf 1784 df-sb 2066 df-clab 2708 df-cleq 2721 df-clel 2803 df-ne 2926 df-ral 3045 df-rex 3054 df-rab 3406 df-v 3449 df-dif 3917 df-un 3919 df-ss 3931 df-nul 4297 df-if 4489 df-sn 4590 df-pr 4592 df-op 4596 df-uni 4872 df-br 5108 df-opab 5170 df-xp 5644 df-rel 5645 df-cnv 5646 df-dm 5648 df-rn 5649 |
| This theorem is referenced by: 2nd1st 8017 cnvf1olem 8089 brtpos 8214 dftpos4 8224 tpostpos 8225 xpcomco 9031 fsumcnv 15739 fprodcnv 15949 gsumcom2 19905 txswaphmeolem 23691 swapf1 49261 swapf2 49263 |
| Copyright terms: Public domain | W3C validator |