ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  rabsnif GIF version

Theorem rabsnif 3742
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
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 elrabi 2960 . . . . . 6 (𝑦 ∈ {𝑥 ∈ {𝐴} ∣ 𝜑} → 𝑦 ∈ {𝐴})
2 elsni 3691 . . . . . 6 (𝑦 ∈ {𝐴} → 𝑦 = 𝐴)
31, 2syl 14 . . . . 5 (𝑦 ∈ {𝑥 ∈ {𝐴} ∣ 𝜑} → 𝑦 = 𝐴)
4319.8ad 1640 . . . 4 (𝑦 ∈ {𝑥 ∈ {𝐴} ∣ 𝜑} → ∃𝑦 𝑦 = 𝐴)
5 isset 2810 . . . 4 (𝐴 ∈ V ↔ ∃𝑦 𝑦 = 𝐴)
64, 5sylibr 134 . . 3 (𝑦 ∈ {𝑥 ∈ {𝐴} ∣ 𝜑} → 𝐴 ∈ V)
7 noel 3500 . . . . . . . . 9 ¬ 𝑦 ∈ ∅
87intnan 937 . . . . . . . 8 ¬ (¬ 𝜓𝑦 ∈ ∅)
98a1i 9 . . . . . . 7 (𝑦 ∈ if(𝜓, {𝐴}, ∅) → ¬ (¬ 𝜓𝑦 ∈ ∅))
10 elif 3621 . . . . . . . 8 (𝑦 ∈ if(𝜓, {𝐴}, ∅) ↔ ((𝜓𝑦 ∈ {𝐴}) ∨ (¬ 𝜓𝑦 ∈ ∅)))
1110biimpi 120 . . . . . . 7 (𝑦 ∈ if(𝜓, {𝐴}, ∅) → ((𝜓𝑦 ∈ {𝐴}) ∨ (¬ 𝜓𝑦 ∈ ∅)))
129, 11ecased 1386 . . . . . 6 (𝑦 ∈ if(𝜓, {𝐴}, ∅) → (𝜓𝑦 ∈ {𝐴}))
1312, 2simpl2im 386 . . . . 5 (𝑦 ∈ if(𝜓, {𝐴}, ∅) → 𝑦 = 𝐴)
141319.8ad 1640 . . . 4 (𝑦 ∈ if(𝜓, {𝐴}, ∅) → ∃𝑦 𝑦 = 𝐴)
1514, 5sylibr 134 . . 3 (𝑦 ∈ if(𝜓, {𝐴}, ∅) → 𝐴 ∈ V)
16 rabsnifsb 3741 . . . . 5 {𝑥 ∈ {𝐴} ∣ 𝜑} = if([𝐴 / 𝑥]𝜑, {𝐴}, ∅)
17 rabsnif.f . . . . . . 7 (𝑥 = 𝐴 → (𝜑𝜓))
1817sbcieg 3065 . . . . . 6 (𝐴 ∈ V → ([𝐴 / 𝑥]𝜑𝜓))
1918ifbid 3631 . . . . 5 (𝐴 ∈ V → if([𝐴 / 𝑥]𝜑, {𝐴}, ∅) = if(𝜓, {𝐴}, ∅))
2016, 19eqtrid 2276 . . . 4 (𝐴 ∈ V → {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅))
2120eleq2d 2301 . . 3 (𝐴 ∈ V → (𝑦 ∈ {𝑥 ∈ {𝐴} ∣ 𝜑} ↔ 𝑦 ∈ if(𝜓, {𝐴}, ∅)))
226, 15, 21pm5.21nii 712 . 2 (𝑦 ∈ {𝑥 ∈ {𝐴} ∣ 𝜑} ↔ 𝑦 ∈ if(𝜓, {𝐴}, ∅))
2322eqriv 2228 1 {𝑥 ∈ {𝐴} ∣ 𝜑} = if(𝜓, {𝐴}, ∅)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  wb 105  wo 716   = wceq 1398  wex 1541  wcel 2202  {crab 2515  Vcvv 2803  [wsbc 3032  c0 3496  ifcif 3607  {csn 3673
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 619  ax-in2 620  ax-io 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-ext 2213
This theorem depends on definitions:  df-bi 117  df-3an 1007  df-tru 1401  df-fal 1404  df-nf 1510  df-sb 1811  df-clab 2218  df-cleq 2224  df-clel 2227  df-nfc 2364  df-rab 2520  df-v 2805  df-sbc 3033  df-dif 3203  df-nul 3497  df-if 3608  df-sn 3679
This theorem is referenced by:  suppsnopdc  6428  1loopgrvd2fi  16229  1hevtxdg1en  16232
  Copyright terms: Public domain W3C validator