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

Theorem rabsnif 4656
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 4655 . . 3 {𝑥 ∈ {𝐴} ∣ 𝜑} = if([𝐴 / 𝑥]𝜑, {𝐴}, ∅)
2 rabsnif.f . . . . 5 (𝑥 = 𝐴 → (𝜑𝜓))
32sbcieg 3751 . . . 4 (𝐴 ∈ V → ([𝐴 / 𝑥]𝜑𝜓))
43ifbid 4479 . . 3 (𝐴 ∈ V → if([𝐴 / 𝑥]𝜑, {𝐴}, ∅) = if(𝜓, {𝐴}, ∅))
51, 4eqtrid 2790 . 2 (𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
6 rab0 4313 . . . 4 {𝑥 ∈ ∅ ∣ 𝜑} = ∅
7 ifid 4496 . . . 4 if(𝜓, ∅, ∅) = ∅
86, 7eqtr4i 2769 . . 3 {𝑥 ∈ ∅ ∣ 𝜑} = if(𝜓, ∅, ∅)
9 snprc 4650 . . . . 5 𝐴 ∈ V ↔ {𝐴} = ∅)
109biimpi 215 . . . 4 𝐴 ∈ V → {𝐴} = ∅)
1110rabeqdv 3409 . . 3 𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = {𝑥 ∈ ∅ ∣ 𝜑})
1210ifeq1d 4475 . . 3 𝐴 ∈ V → if(𝜓, {𝐴}, ∅) = if(𝜓, ∅, ∅))
138, 11, 123eqtr4a 2805 . 2 𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
145, 13pm2.61i 182 1 {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205   = wceq 1539  wcel 2108  {crab 3067  Vcvv 3422  [wsbc 3711  c0 4253  ifcif 4456  {csn 4558
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-rab 3072  df-v 3424  df-sbc 3712  df-dif 3886  df-un 3888  df-nul 4254  df-if 4457  df-sn 4559
This theorem is referenced by:  suppsnop  7965  m1detdiag  21654  1loopgrvd2  27773  1hevtxdg1  27776  1egrvtxdg1  27779
  Copyright terms: Public domain W3C validator