MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  rabsnifsb Structured version   Unicode version

Theorem rabsnifsb 3962
Description: A restricted class abstraction restricted to a singleton is either the empty set or the singleton itself. (Contributed by AV, 21-Jul-2019.)
Assertion
Ref Expression
rabsnifsb  |-  { x  e.  { A }  |  ph }  =  if (
[. A  /  x ]. ph ,  { A } ,  (/) )
Distinct variable group:    x, A
Allowed substitution hint:    ph( x)

Proof of Theorem rabsnifsb
Dummy variable  y is distinct from all other variables.
StepHypRef Expression
1 elsni 3921 . . . . . . . 8  |-  ( x  e.  { A }  ->  x  =  A )
2 sbceq1a 3216 . . . . . . . . 9  |-  ( x  =  A  ->  ( ph 
<-> 
[. A  /  x ]. ph ) )
32biimpd 207 . . . . . . . 8  |-  ( x  =  A  ->  ( ph  ->  [. A  /  x ]. ph ) )
41, 3syl 16 . . . . . . 7  |-  ( x  e.  { A }  ->  ( ph  ->  [. A  /  x ]. ph )
)
54imdistani 690 . . . . . 6  |-  ( ( x  e.  { A }  /\  ph )  -> 
( x  e.  { A }  /\  [. A  /  x ]. ph )
)
65orcd 392 . . . . 5  |-  ( ( x  e.  { A }  /\  ph )  -> 
( ( x  e. 
{ A }  /\  [. A  /  x ]. ph )  \/  ( x  e.  (/)  /\  -.  [. A  /  x ]. ph )
) )
72bicomd 201 . . . . . . . . 9  |-  ( x  =  A  ->  ( [. A  /  x ]. ph  <->  ph ) )
81, 7syl 16 . . . . . . . 8  |-  ( x  e.  { A }  ->  ( [. A  /  x ]. ph  <->  ph ) )
98biimpd 207 . . . . . . 7  |-  ( x  e.  { A }  ->  ( [. A  /  x ]. ph  ->  ph )
)
109imdistani 690 . . . . . 6  |-  ( ( x  e.  { A }  /\  [. A  /  x ]. ph )  -> 
( x  e.  { A }  /\  ph )
)
11 noel 3660 . . . . . . . 8  |-  -.  x  e.  (/)
1211pm2.21i 131 . . . . . . 7  |-  ( x  e.  (/)  ->  ( x  e.  { A }  /\  ph ) )
1312adantr 465 . . . . . 6  |-  ( ( x  e.  (/)  /\  -.  [. A  /  x ]. ph )  ->  ( x  e.  { A }  /\  ph ) )
1410, 13jaoi 379 . . . . 5  |-  ( ( ( x  e.  { A }  /\  [. A  /  x ]. ph )  \/  ( x  e.  (/)  /\ 
-.  [. A  /  x ]. ph ) )  -> 
( x  e.  { A }  /\  ph )
)
156, 14impbii 188 . . . 4  |-  ( ( x  e.  { A }  /\  ph )  <->  ( (
x  e.  { A }  /\  [. A  /  x ]. ph )  \/  ( x  e.  (/)  /\ 
-.  [. A  /  x ]. ph ) ) )
1615abbii 2561 . . 3  |-  { x  |  ( x  e. 
{ A }  /\  ph ) }  =  {
x  |  ( ( x  e.  { A }  /\  [. A  /  x ]. ph )  \/  ( x  e.  (/)  /\ 
-.  [. A  /  x ]. ph ) ) }
17 nfv 1673 . . . 4  |-  F/ y ( ( x  e. 
{ A }  /\  [. A  /  x ]. ph )  \/  ( x  e.  (/)  /\  -.  [. A  /  x ]. ph )
)
18 nfv 1673 . . . . . 6  |-  F/ x  y  e.  { A }
19 nfsbc1v 3225 . . . . . 6  |-  F/ x [. A  /  x ]. ph
2018, 19nfan 1861 . . . . 5  |-  F/ x
( y  e.  { A }  /\  [. A  /  x ]. ph )
21 nfv 1673 . . . . . 6  |-  F/ x  y  e.  (/)
2219nfn 1835 . . . . . 6  |-  F/ x  -.  [. A  /  x ]. ph
2321, 22nfan 1861 . . . . 5  |-  F/ x
( y  e.  (/)  /\ 
-.  [. A  /  x ]. ph )
2420, 23nfor 1868 . . . 4  |-  F/ x
( ( y  e. 
{ A }  /\  [. A  /  x ]. ph )  \/  ( y  e.  (/)  /\  -.  [. A  /  x ]. ph )
)
25 eleq1 2503 . . . . . 6  |-  ( x  =  y  ->  (
x  e.  { A } 
<->  y  e.  { A } ) )
2625anbi1d 704 . . . . 5  |-  ( x  =  y  ->  (
( x  e.  { A }  /\  [. A  /  x ]. ph )  <->  ( y  e.  { A }  /\  [. A  /  x ]. ph ) ) )
27 eleq1 2503 . . . . . 6  |-  ( x  =  y  ->  (
x  e.  (/)  <->  y  e.  (/) ) )
2827anbi1d 704 . . . . 5  |-  ( x  =  y  ->  (
( x  e.  (/)  /\ 
-.  [. A  /  x ]. ph )  <->  ( y  e.  (/)  /\  -.  [. A  /  x ]. ph )
) )
2926, 28orbi12d 709 . . . 4  |-  ( x  =  y  ->  (
( ( x  e. 
{ A }  /\  [. A  /  x ]. ph )  \/  ( x  e.  (/)  /\  -.  [. A  /  x ]. ph )
)  <->  ( ( y  e.  { A }  /\  [. A  /  x ]. ph )  \/  (
y  e.  (/)  /\  -.  [. A  /  x ]. ph ) ) ) )
3017, 24, 29cbvab 2568 . . 3  |-  { x  |  ( ( x  e.  { A }  /\  [. A  /  x ]. ph )  \/  (
x  e.  (/)  /\  -.  [. A  /  x ]. ph ) ) }  =  { y  |  ( ( y  e.  { A }  /\  [. A  /  x ]. ph )  \/  ( y  e.  (/)  /\ 
-.  [. A  /  x ]. ph ) ) }
3116, 30eqtri 2463 . 2  |-  { x  |  ( x  e. 
{ A }  /\  ph ) }  =  {
y  |  ( ( y  e.  { A }  /\  [. A  /  x ]. ph )  \/  ( y  e.  (/)  /\ 
-.  [. A  /  x ]. ph ) ) }
32 df-rab 2743 . 2  |-  { x  e.  { A }  |  ph }  =  { x  |  ( x  e. 
{ A }  /\  ph ) }
33 df-if 3811 . 2  |-  if (
[. A  /  x ]. ph ,  { A } ,  (/) )  =  { y  |  ( ( y  e.  { A }  /\  [. A  /  x ]. ph )  \/  ( y  e.  (/)  /\ 
-.  [. A  /  x ]. ph ) ) }
3431, 32, 333eqtr4i 2473 1  |-  { x  e.  { A }  |  ph }  =  if (
[. A  /  x ]. ph ,  { A } ,  (/) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 184    \/ wo 368    /\ wa 369    = wceq 1369    e. wcel 1756   {cab 2429   {crab 2738   [.wsbc 3205   (/)c0 3656   ifcif 3810   {csn 3896
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2577  df-rab 2743  df-v 2993  df-sbc 3206  df-dif 3350  df-nul 3657  df-if 3811  df-sn 3897
This theorem is referenced by:  rabsnif  3963  rabrsn  3964
  Copyright terms: Public domain W3C validator