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

Theorem rabsnif 4202
Description: A restricted class abstraction restricted to a singleton is either the empty set or the singleton itself. (Contributed by AV, 12-Apr-2019.) (Proof shortened by AV, 21-Jul-2019.)
Hypothesis
Ref Expression
rabsnif.f (𝑥 = 𝐴 → (𝜑𝜓))
Assertion
Ref Expression
rabsnif {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅)
Distinct variable groups:   𝑥,𝐴   𝜓,𝑥
Allowed substitution hint:   𝜑(𝑥)

Proof of Theorem rabsnif
StepHypRef Expression
1 rabsnifsb 4201 . . 3 {𝑥 ∈ {𝐴} ∣ 𝜑} = if([𝐴 / 𝑥]𝜑, {𝐴}, ∅)
2 rabsnif.f . . . . 5 (𝑥 = 𝐴 → (𝜑𝜓))
32sbcieg 3435 . . . 4 (𝐴 ∈ V → ([𝐴 / 𝑥]𝜑𝜓))
43ifbid 4058 . . 3 (𝐴 ∈ V → if([𝐴 / 𝑥]𝜑, {𝐴}, ∅) = if(𝜓, {𝐴}, ∅))
51, 4syl5eq 2656 . 2 (𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
6 rab0 3909 . . . 4 {𝑥 ∈ ∅ ∣ 𝜑} = ∅
7 ifid 4075 . . . 4 if(𝜓, ∅, ∅) = ∅
86, 7eqtr4i 2635 . . 3 {𝑥 ∈ ∅ ∣ 𝜑} = if(𝜓, ∅, ∅)
9 snprc 4197 . . . . 5 𝐴 ∈ V ↔ {𝐴} = ∅)
109biimpi 205 . . . 4 𝐴 ∈ V → {𝐴} = ∅)
1110rabeqdv 3167 . . 3 𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = {𝑥 ∈ ∅ ∣ 𝜑})
1210ifeq1d 4054 . . 3 𝐴 ∈ V → if(𝜓, {𝐴}, ∅) = if(𝜓, ∅, ∅))
138, 11, 123eqtr4a 2670 . 2 𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
145, 13pm2.61i 175 1 {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 195   = wceq 1475  wcel 1977  {crab 2900  Vcvv 3173  [wsbc 3402  c0 3874  ifcif 4036  {csn 4125
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-nul 3875  df-if 4037  df-sn 4126
This theorem is referenced by:  suppsnop  7196  m1detdiag  20222  1loopgrvd2  40718  1hevtxdg1  40721  1egrvtxdg1  40725
  Copyright terms: Public domain W3C validator