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

Theorem un0addcl 9209
Description: If  S is closed under addition, then so is  S  u.  { 0 }. (Contributed by Mario Carneiro, 17-Jul-2014.)
Hypotheses
Ref Expression
un0addcl.1  |-  ( ph  ->  S  C_  CC )
un0addcl.2  |-  T  =  ( S  u.  {
0 } )
un0addcl.3  |-  ( (
ph  /\  ( M  e.  S  /\  N  e.  S ) )  -> 
( M  +  N
)  e.  S )
Assertion
Ref Expression
un0addcl  |-  ( (
ph  /\  ( M  e.  T  /\  N  e.  T ) )  -> 
( M  +  N
)  e.  T )

Proof of Theorem un0addcl
StepHypRef Expression
1 un0addcl.2 . . . . 5  |-  T  =  ( S  u.  {
0 } )
21eleq2i 2244 . . . 4  |-  ( N  e.  T  <->  N  e.  ( S  u.  { 0 } ) )
3 elun 3277 . . . 4  |-  ( N  e.  ( S  u.  { 0 } )  <->  ( N  e.  S  \/  N  e.  { 0 } ) )
42, 3bitri 184 . . 3  |-  ( N  e.  T  <->  ( N  e.  S  \/  N  e.  { 0 } ) )
51eleq2i 2244 . . . . . 6  |-  ( M  e.  T  <->  M  e.  ( S  u.  { 0 } ) )
6 elun 3277 . . . . . 6  |-  ( M  e.  ( S  u.  { 0 } )  <->  ( M  e.  S  \/  M  e.  { 0 } ) )
75, 6bitri 184 . . . . 5  |-  ( M  e.  T  <->  ( M  e.  S  \/  M  e.  { 0 } ) )
8 ssun1 3299 . . . . . . . . 9  |-  S  C_  ( S  u.  { 0 } )
98, 1sseqtrri 3191 . . . . . . . 8  |-  S  C_  T
10 un0addcl.3 . . . . . . . 8  |-  ( (
ph  /\  ( M  e.  S  /\  N  e.  S ) )  -> 
( M  +  N
)  e.  S )
119, 10sselid 3154 . . . . . . 7  |-  ( (
ph  /\  ( M  e.  S  /\  N  e.  S ) )  -> 
( M  +  N
)  e.  T )
1211expr 375 . . . . . 6  |-  ( (
ph  /\  M  e.  S )  ->  ( N  e.  S  ->  ( M  +  N )  e.  T ) )
13 un0addcl.1 . . . . . . . . . . 11  |-  ( ph  ->  S  C_  CC )
1413sselda 3156 . . . . . . . . . 10  |-  ( (
ph  /\  N  e.  S )  ->  N  e.  CC )
1514addid2d 8107 . . . . . . . . 9  |-  ( (
ph  /\  N  e.  S )  ->  (
0  +  N )  =  N )
169a1i 9 . . . . . . . . . 10  |-  ( ph  ->  S  C_  T )
1716sselda 3156 . . . . . . . . 9  |-  ( (
ph  /\  N  e.  S )  ->  N  e.  T )
1815, 17eqeltrd 2254 . . . . . . . 8  |-  ( (
ph  /\  N  e.  S )  ->  (
0  +  N )  e.  T )
19 elsni 3611 . . . . . . . . . 10  |-  ( M  e.  { 0 }  ->  M  =  0 )
2019oveq1d 5890 . . . . . . . . 9  |-  ( M  e.  { 0 }  ->  ( M  +  N )  =  ( 0  +  N ) )
2120eleq1d 2246 . . . . . . . 8  |-  ( M  e.  { 0 }  ->  ( ( M  +  N )  e.  T  <->  ( 0  +  N )  e.  T
) )
2218, 21syl5ibrcom 157 . . . . . . 7  |-  ( (
ph  /\  N  e.  S )  ->  ( M  e.  { 0 }  ->  ( M  +  N )  e.  T
) )
2322impancom 260 . . . . . 6  |-  ( (
ph  /\  M  e.  { 0 } )  -> 
( N  e.  S  ->  ( M  +  N
)  e.  T ) )
2412, 23jaodan 797 . . . . 5  |-  ( (
ph  /\  ( M  e.  S  \/  M  e.  { 0 } ) )  ->  ( N  e.  S  ->  ( M  +  N )  e.  T ) )
257, 24sylan2b 287 . . . 4  |-  ( (
ph  /\  M  e.  T )  ->  ( N  e.  S  ->  ( M  +  N )  e.  T ) )
26 0cnd 7950 . . . . . . . . . . 11  |-  ( ph  ->  0  e.  CC )
2726snssd 3738 . . . . . . . . . 10  |-  ( ph  ->  { 0 }  C_  CC )
2813, 27unssd 3312 . . . . . . . . 9  |-  ( ph  ->  ( S  u.  {
0 } )  C_  CC )
291, 28eqsstrid 3202 . . . . . . . 8  |-  ( ph  ->  T  C_  CC )
3029sselda 3156 . . . . . . 7  |-  ( (
ph  /\  M  e.  T )  ->  M  e.  CC )
3130addid1d 8106 . . . . . 6  |-  ( (
ph  /\  M  e.  T )  ->  ( M  +  0 )  =  M )
32 simpr 110 . . . . . 6  |-  ( (
ph  /\  M  e.  T )  ->  M  e.  T )
3331, 32eqeltrd 2254 . . . . 5  |-  ( (
ph  /\  M  e.  T )  ->  ( M  +  0 )  e.  T )
34 elsni 3611 . . . . . . 7  |-  ( N  e.  { 0 }  ->  N  =  0 )
3534oveq2d 5891 . . . . . 6  |-  ( N  e.  { 0 }  ->  ( M  +  N )  =  ( M  +  0 ) )
3635eleq1d 2246 . . . . 5  |-  ( N  e.  { 0 }  ->  ( ( M  +  N )  e.  T  <->  ( M  + 
0 )  e.  T
) )
3733, 36syl5ibrcom 157 . . . 4  |-  ( (
ph  /\  M  e.  T )  ->  ( N  e.  { 0 }  ->  ( M  +  N )  e.  T
) )
3825, 37jaod 717 . . 3  |-  ( (
ph  /\  M  e.  T )  ->  (
( N  e.  S  \/  N  e.  { 0 } )  ->  ( M  +  N )  e.  T ) )
394, 38biimtrid 152 . 2  |-  ( (
ph  /\  M  e.  T )  ->  ( N  e.  T  ->  ( M  +  N )  e.  T ) )
4039impr 379 1  |-  ( (
ph  /\  ( M  e.  T  /\  N  e.  T ) )  -> 
( M  +  N
)  e.  T )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 104    \/ wo 708    = wceq 1353    e. wcel 2148    u. cun 3128    C_ wss 3130   {csn 3593  (class class class)co 5875   CCcc 7809   0cc0 7811    + caddc 7814
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-io 709  ax-5 1447  ax-7 1448  ax-gen 1449  ax-ie1 1493  ax-ie2 1494  ax-8 1504  ax-10 1505  ax-11 1506  ax-i12 1507  ax-bndl 1509  ax-4 1510  ax-17 1526  ax-i9 1530  ax-ial 1534  ax-i5r 1535  ax-ext 2159  ax-1cn 7904  ax-icn 7906  ax-addcl 7907  ax-mulcl 7909  ax-addcom 7911  ax-i2m1 7916  ax-0id 7919
This theorem depends on definitions:  df-bi 117  df-3an 980  df-tru 1356  df-nf 1461  df-sb 1763  df-clab 2164  df-cleq 2170  df-clel 2173  df-nfc 2308  df-rex 2461  df-v 2740  df-un 3134  df-in 3136  df-ss 3143  df-sn 3599  df-pr 3600  df-op 3602  df-uni 3811  df-br 4005  df-iota 5179  df-fv 5225  df-ov 5878
This theorem is referenced by:  nn0addcl  9211
  Copyright terms: Public domain W3C validator