| 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 6184 | . . . 4 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{〈𝐴, 𝐵〉} = {〈𝐵, 𝐴〉}) | |
| 2 | 1 | unieqd 4880 | . . 3 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = ∪ {〈𝐵, 𝐴〉}) |
| 3 | opex 5419 | . . . 4 ⊢ 〈𝐵, 𝐴〉 ∈ V | |
| 4 | 3 | unisn 4886 | . . 3 ⊢ ∪ {〈𝐵, 𝐴〉} = 〈𝐵, 𝐴〉 |
| 5 | 2, 4 | eqtrdi 2780 | . 2 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = 〈𝐵, 𝐴〉) |
| 6 | uni0 4895 | . . 3 ⊢ ∪ ∅ = ∅ | |
| 7 | opprc 4856 | . . . . . . 7 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → 〈𝐴, 𝐵〉 = ∅) | |
| 8 | 7 | sneqd 4597 | . . . . . 6 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → {〈𝐴, 𝐵〉} = {∅}) |
| 9 | 8 | cnveqd 5829 | . . . . 5 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{〈𝐴, 𝐵〉} = ◡{∅}) |
| 10 | cnvsn0 6171 | . . . . 5 ⊢ ◡{∅} = ∅ | |
| 11 | 9, 10 | eqtrdi 2780 | . . . 4 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ◡{〈𝐴, 𝐵〉} = ∅) |
| 12 | 11 | unieqd 4880 | . . 3 ⊢ (¬ (𝐴 ∈ V ∧ 𝐵 ∈ V) → ∪ ◡{〈𝐴, 𝐵〉} = ∪ ∅) |
| 13 | ancom 460 | . . . 4 ⊢ ((𝐴 ∈ V ∧ 𝐵 ∈ V) ↔ (𝐵 ∈ V ∧ 𝐴 ∈ V)) | |
| 14 | opprc 4856 | . . . 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 3444 ∅c0 4292 {csn 4585 〈cop 4591 ∪ cuni 4867 ◡ccnv 5630 |
| 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 5246 ax-nul 5256 ax-pr 5382 |
| 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 3403 df-v 3446 df-dif 3914 df-un 3916 df-ss 3928 df-nul 4293 df-if 4485 df-sn 4586 df-pr 4588 df-op 4592 df-uni 4868 df-br 5103 df-opab 5165 df-xp 5637 df-rel 5638 df-cnv 5639 df-dm 5641 df-rn 5642 |
| This theorem is referenced by: 2nd1st 7996 cnvf1olem 8066 brtpos 8191 dftpos4 8201 tpostpos 8202 xpcomco 9008 fsumcnv 15715 fprodcnv 15925 gsumcom2 19889 txswaphmeolem 23724 swapf1 49254 swapf2 49256 |
| Copyright terms: Public domain | W3C validator |