| Mathbox for Scott Fenton |
< Previous
Next >
Nearby theorems |
||
| Mirrors > Home > MPE Home > Th. List > Mathboxes > unisnif | Structured version Visualization version GIF version | ||
| Description: Express union of singleton in terms of if. (Contributed by Scott Fenton, 27-Mar-2014.) (Revised by Mario Carneiro, 19-Apr-2014.) |
| Ref | Expression |
|---|---|
| unisnif | ⊢ ∪ {𝐴} = if(𝐴 ∈ V, 𝐴, ∅) |
| Step | Hyp | Ref | Expression |
|---|---|---|---|
| 1 | iftrue 4485 | . . . 4 ⊢ (𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = 𝐴) | |
| 2 | unisng 4881 | . . . 4 ⊢ (𝐴 ∈ V → ∪ {𝐴} = 𝐴) | |
| 3 | 1, 2 | eqtr4d 2774 | . . 3 ⊢ (𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = ∪ {𝐴}) |
| 4 | iffalse 4488 | . . . 4 ⊢ (¬ 𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = ∅) | |
| 5 | snprc 4674 | . . . . . . 7 ⊢ (¬ 𝐴 ∈ V ↔ {𝐴} = ∅) | |
| 6 | 5 | biimpi 216 | . . . . . 6 ⊢ (¬ 𝐴 ∈ V → {𝐴} = ∅) |
| 7 | 6 | unieqd 4876 | . . . . 5 ⊢ (¬ 𝐴 ∈ V → ∪ {𝐴} = ∪ ∅) |
| 8 | uni0 4891 | . . . . 5 ⊢ ∪ ∅ = ∅ | |
| 9 | 7, 8 | eqtrdi 2787 | . . . 4 ⊢ (¬ 𝐴 ∈ V → ∪ {𝐴} = ∅) |
| 10 | 4, 9 | eqtr4d 2774 | . . 3 ⊢ (¬ 𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = ∪ {𝐴}) |
| 11 | 3, 10 | pm2.61i 182 | . 2 ⊢ if(𝐴 ∈ V, 𝐴, ∅) = ∪ {𝐴} |
| 12 | 11 | eqcomi 2745 | 1 ⊢ ∪ {𝐴} = if(𝐴 ∈ V, 𝐴, ∅) |
| Colors of variables: wff setvar class |
| Syntax hints: ¬ wn 3 = wceq 1541 ∈ wcel 2113 Vcvv 3440 ∅c0 4285 ifcif 4479 {csn 4580 ∪ cuni 4863 |
| This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1796 ax-4 1810 ax-5 1911 ax-6 1968 ax-7 2009 ax-8 2115 ax-9 2123 ax-ext 2708 |
| This theorem depends on definitions: df-bi 207 df-an 396 df-or 848 df-tru 1544 df-fal 1554 df-ex 1781 df-sb 2068 df-clab 2715 df-cleq 2728 df-clel 2811 df-v 3442 df-dif 3904 df-un 3906 df-ss 3918 df-nul 4286 df-if 4480 df-sn 4581 df-pr 4583 df-uni 4864 |
| This theorem is referenced by: dfrdg4 36145 |
| Copyright terms: Public domain | W3C validator |