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

Theorem un0addcl 8215
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 2104 . . . 4  |-  ( N  e.  T  <->  N  e.  ( S  u.  { 0 } ) )
3 elun 3084 . . . 4  |-  ( N  e.  ( S  u.  { 0 } )  <->  ( N  e.  S  \/  N  e.  { 0 } ) )
42, 3bitri 173 . . 3  |-  ( N  e.  T  <->  ( N  e.  S  \/  N  e.  { 0 } ) )
51eleq2i 2104 . . . . . 6  |-  ( M  e.  T  <->  M  e.  ( S  u.  { 0 } ) )
6 elun 3084 . . . . . 6  |-  ( M  e.  ( S  u.  { 0 } )  <->  ( M  e.  S  \/  M  e.  { 0 } ) )
75, 6bitri 173 . . . . 5  |-  ( M  e.  T  <->  ( M  e.  S  \/  M  e.  { 0 } ) )
8 ssun1 3106 . . . . . . . . 9  |-  S  C_  ( S  u.  { 0 } )
98, 1sseqtr4i 2978 . . . . . . . 8  |-  S  C_  T
10 un0addcl.3 . . . . . . . 8  |-  ( (
ph  /\  ( M  e.  S  /\  N  e.  S ) )  -> 
( M  +  N
)  e.  S )
119, 10sseldi 2943 . . . . . . 7  |-  ( (
ph  /\  ( M  e.  S  /\  N  e.  S ) )  -> 
( M  +  N
)  e.  T )
1211expr 357 . . . . . 6  |-  ( (
ph  /\  M  e.  S )  ->  ( N  e.  S  ->  ( M  +  N )  e.  T ) )
13 un0addcl.1 . . . . . . . . . . 11  |-  ( ph  ->  S  C_  CC )
1413sselda 2945 . . . . . . . . . 10  |-  ( (
ph  /\  N  e.  S )  ->  N  e.  CC )
1514addid2d 7163 . . . . . . . . 9  |-  ( (
ph  /\  N  e.  S )  ->  (
0  +  N )  =  N )
169a1i 9 . . . . . . . . . 10  |-  ( ph  ->  S  C_  T )
1716sselda 2945 . . . . . . . . 9  |-  ( (
ph  /\  N  e.  S )  ->  N  e.  T )
1815, 17eqeltrd 2114 . . . . . . . 8  |-  ( (
ph  /\  N  e.  S )  ->  (
0  +  N )  e.  T )
19 elsni 3393 . . . . . . . . . 10  |-  ( M  e.  { 0 }  ->  M  =  0 )
2019oveq1d 5527 . . . . . . . . 9  |-  ( M  e.  { 0 }  ->  ( M  +  N )  =  ( 0  +  N ) )
2120eleq1d 2106 . . . . . . . 8  |-  ( M  e.  { 0 }  ->  ( ( M  +  N )  e.  T  <->  ( 0  +  N )  e.  T
) )
2218, 21syl5ibrcom 146 . . . . . . 7  |-  ( (
ph  /\  N  e.  S )  ->  ( M  e.  { 0 }  ->  ( M  +  N )  e.  T
) )
2322impancom 247 . . . . . 6  |-  ( (
ph  /\  M  e.  { 0 } )  -> 
( N  e.  S  ->  ( M  +  N
)  e.  T ) )
2412, 23jaodan 710 . . . . 5  |-  ( (
ph  /\  ( M  e.  S  \/  M  e.  { 0 } ) )  ->  ( N  e.  S  ->  ( M  +  N )  e.  T ) )
257, 24sylan2b 271 . . . 4  |-  ( (
ph  /\  M  e.  T )  ->  ( N  e.  S  ->  ( M  +  N )  e.  T ) )
26 0cnd 7020 . . . . . . . . . . 11  |-  ( ph  ->  0  e.  CC )
2726snssd 3509 . . . . . . . . . 10  |-  ( ph  ->  { 0 }  C_  CC )
2813, 27unssd 3119 . . . . . . . . 9  |-  ( ph  ->  ( S  u.  {
0 } )  C_  CC )
291, 28syl5eqss 2989 . . . . . . . 8  |-  ( ph  ->  T  C_  CC )
3029sselda 2945 . . . . . . 7  |-  ( (
ph  /\  M  e.  T )  ->  M  e.  CC )
3130addid1d 7162 . . . . . 6  |-  ( (
ph  /\  M  e.  T )  ->  ( M  +  0 )  =  M )
32 simpr 103 . . . . . 6  |-  ( (
ph  /\  M  e.  T )  ->  M  e.  T )
3331, 32eqeltrd 2114 . . . . 5  |-  ( (
ph  /\  M  e.  T )  ->  ( M  +  0 )  e.  T )
34 elsni 3393 . . . . . . 7  |-  ( N  e.  { 0 }  ->  N  =  0 )
3534oveq2d 5528 . . . . . 6  |-  ( N  e.  { 0 }  ->  ( M  +  N )  =  ( M  +  0 ) )
3635eleq1d 2106 . . . . 5  |-  ( N  e.  { 0 }  ->  ( ( M  +  N )  e.  T  <->  ( M  + 
0 )  e.  T
) )
3733, 36syl5ibrcom 146 . . . 4  |-  ( (
ph  /\  M  e.  T )  ->  ( N  e.  { 0 }  ->  ( M  +  N )  e.  T
) )
3825, 37jaod 637 . . 3  |-  ( (
ph  /\  M  e.  T )  ->  (
( N  e.  S  \/  N  e.  { 0 } )  ->  ( M  +  N )  e.  T ) )
394, 38syl5bi 141 . 2  |-  ( (
ph  /\  M  e.  T )  ->  ( N  e.  T  ->  ( M  +  N )  e.  T ) )
4039impr 361 1  |-  ( (
ph  /\  ( M  e.  T  /\  N  e.  T ) )  -> 
( M  +  N
)  e.  T )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 97    \/ wo 629    = wceq 1243    e. wcel 1393    u. cun 2915    C_ wss 2917   {csn 3375  (class class class)co 5512   CCcc 6887   0cc0 6889    + caddc 6892
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-1cn 6977  ax-icn 6979  ax-addcl 6980  ax-mulcl 6982  ax-addcom 6984  ax-i2m1 6989  ax-0id 6992
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-rex 2312  df-v 2559  df-un 2922  df-in 2924  df-ss 2931  df-sn 3381  df-pr 3382  df-op 3384  df-uni 3581  df-br 3765  df-iota 4867  df-fv 4910  df-ov 5515
This theorem is referenced by:  nn0addcl  8217
  Copyright terms: Public domain W3C validator