Users' Mathboxes Mathbox for Scott Fenton < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  unisnif Structured version   Visualization version   GIF version

Theorem unisnif 36811
Description: Express union of singleton in terms of if. (Contributed by Scott Fenton, 27-Mar-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
unisnif ∪ {𝐴} = if(𝐴 ∈ V, 𝐴, ∅)

Proof of Theorem unisnif
StepHypRef Expression
1 iftrue 4487 . . . 4 (𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = 𝐴)
2 unisng 4884 . . . 4 (𝐴 ∈ V → ∪ {𝐴} = 𝐴)
31, 2eqtr4d 2798 . . 3 (𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = ∪ {𝐴})
4 iffalse 4490 . . . 4 (¬ 𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = ∅)
5 snprc 4674 . . . . . . 7 (¬ 𝐴 ∈ V ↔ {𝐴} = ∅)
65biimpi 219 . . . . . 6 (¬ 𝐴 ∈ V → {𝐴} = ∅)
76unieqd 4879 . . . . 5 (¬ 𝐴 ∈ V → ∪ {𝐴} = ∪ ∅)
8 uni0 4895 . . . . 5 ∪ ∅ = ∅
97, 8eqtrdi 2811 . . . 4 (¬ 𝐴 ∈ V → ∪ {𝐴} = ∅)
104, 9eqtr4d 2798 . . 3 (¬ 𝐴 ∈ V → if(𝐴 ∈ V, 𝐴, ∅) = ∪ {𝐴})
113, 10pm2.61i 184 . 2 if(𝐴 ∈ V, 𝐴, ∅) = ∪ {𝐴}
1211eqcomi 2769 1 ∪ {𝐴} = if(𝐴 ∈ V, 𝐴, ∅)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:  ¬ wn 3   = wceq 1569   ∈ wcel 2144  Vcvv 3450  ∅c0 4277  ifcif 4481  {csn 4584  ∪ cuni 4866
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1827  ax-4 1841  ax-5 1942  ax-6 1999  ax-7 2040  ax-8 2146  ax-9 2154  ax-ext 2732
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1572  df-fal 1582  df-ex 1812  df-sb 2099  df-clab 2739  df-cleq 2752  df-clel 2835  df-v 3452  df-ss 3897  df-dif 4046  df-un 4150  df-nul 4278  df-if 4482  df-sn 4585  df-pr 4587  df-uni 4867
This theorem is used by:  dfrdg4  36839
  Copyright terms: Public domain W3C validator