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

Theorem rabsnif 4659
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 4658 . . 3 {𝑥 ∈ {𝐴} ∣ 𝜑} = if([𝐴 / 𝑥]𝜑, {𝐴}, ∅)
2 rabsnif.f . . . . 5 (𝑥 = 𝐴 → (𝜑𝜓))
32sbcieg 3810 . . . 4 (𝐴 ∈ V → ([𝐴 / 𝑥]𝜑𝜓))
43ifbid 4489 . . 3 (𝐴 ∈ V → if([𝐴 / 𝑥]𝜑, {𝐴}, ∅) = if(𝜓, {𝐴}, ∅))
51, 4syl5eq 2868 . 2 (𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
6 rab0 4337 . . . 4 {𝑥 ∈ ∅ ∣ 𝜑} = ∅
7 ifid 4506 . . . 4 if(𝜓, ∅, ∅) = ∅
86, 7eqtr4i 2847 . . 3 {𝑥 ∈ ∅ ∣ 𝜑} = if(𝜓, ∅, ∅)
9 snprc 4653 . . . . 5 𝐴 ∈ V ↔ {𝐴} = ∅)
109biimpi 218 . . . 4 𝐴 ∈ V → {𝐴} = ∅)
1110rabeqdv 3484 . . 3 𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = {𝑥 ∈ ∅ ∣ 𝜑})
1210ifeq1d 4485 . . 3 𝐴 ∈ V → if(𝜓, {𝐴}, ∅) = if(𝜓, ∅, ∅))
138, 11, 123eqtr4a 2882 . 2 𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
145, 13pm2.61i 184 1 {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 208   = wceq 1537  wcel 2114  {crab 3142  Vcvv 3494  [wsbc 3772  c0 4291  ifcif 4467  {csn 4567
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 1970  ax-7 2015  ax-8 2116  ax-9 2124  ax-10 2145  ax-11 2161  ax-12 2177  ax-ext 2793
This theorem depends on definitions:  df-bi 209  df-an 399  df-or 844  df-3an 1085  df-tru 1540  df-ex 1781  df-nf 1785  df-sb 2070  df-clab 2800  df-cleq 2814  df-clel 2893  df-nfc 2963  df-rab 3147  df-v 3496  df-sbc 3773  df-dif 3939  df-un 3941  df-nul 4292  df-if 4468  df-sn 4568
This theorem is referenced by:  suppsnop  7844  m1detdiag  21206  1loopgrvd2  27285  1hevtxdg1  27288  1egrvtxdg1  27291
  Copyright terms: Public domain W3C validator