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

Theorem nnaddcl 8733
Description: Closure of addition of positive integers, proved by induction on the second addend. (Contributed by NM, 12-Jan-1997.)
Assertion
Ref Expression
nnaddcl  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  +  B
)  e.  NN )

Proof of Theorem nnaddcl
Dummy variables  x  y are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 5775 . . . . 5  |-  ( x  =  1  ->  ( A  +  x )  =  ( A  + 
1 ) )
21eleq1d 2206 . . . 4  |-  ( x  =  1  ->  (
( A  +  x
)  e.  NN  <->  ( A  +  1 )  e.  NN ) )
32imbi2d 229 . . 3  |-  ( x  =  1  ->  (
( A  e.  NN  ->  ( A  +  x
)  e.  NN )  <-> 
( A  e.  NN  ->  ( A  +  1 )  e.  NN ) ) )
4 oveq2 5775 . . . . 5  |-  ( x  =  y  ->  ( A  +  x )  =  ( A  +  y ) )
54eleq1d 2206 . . . 4  |-  ( x  =  y  ->  (
( A  +  x
)  e.  NN  <->  ( A  +  y )  e.  NN ) )
65imbi2d 229 . . 3  |-  ( x  =  y  ->  (
( A  e.  NN  ->  ( A  +  x
)  e.  NN )  <-> 
( A  e.  NN  ->  ( A  +  y )  e.  NN ) ) )
7 oveq2 5775 . . . . 5  |-  ( x  =  ( y  +  1 )  ->  ( A  +  x )  =  ( A  +  ( y  +  1 ) ) )
87eleq1d 2206 . . . 4  |-  ( x  =  ( y  +  1 )  ->  (
( A  +  x
)  e.  NN  <->  ( A  +  ( y  +  1 ) )  e.  NN ) )
98imbi2d 229 . . 3  |-  ( x  =  ( y  +  1 )  ->  (
( A  e.  NN  ->  ( A  +  x
)  e.  NN )  <-> 
( A  e.  NN  ->  ( A  +  ( y  +  1 ) )  e.  NN ) ) )
10 oveq2 5775 . . . . 5  |-  ( x  =  B  ->  ( A  +  x )  =  ( A  +  B ) )
1110eleq1d 2206 . . . 4  |-  ( x  =  B  ->  (
( A  +  x
)  e.  NN  <->  ( A  +  B )  e.  NN ) )
1211imbi2d 229 . . 3  |-  ( x  =  B  ->  (
( A  e.  NN  ->  ( A  +  x
)  e.  NN )  <-> 
( A  e.  NN  ->  ( A  +  B
)  e.  NN ) ) )
13 peano2nn 8725 . . 3  |-  ( A  e.  NN  ->  ( A  +  1 )  e.  NN )
14 peano2nn 8725 . . . . . 6  |-  ( ( A  +  y )  e.  NN  ->  (
( A  +  y )  +  1 )  e.  NN )
15 nncn 8721 . . . . . . . 8  |-  ( A  e.  NN  ->  A  e.  CC )
16 nncn 8721 . . . . . . . 8  |-  ( y  e.  NN  ->  y  e.  CC )
17 ax-1cn 7706 . . . . . . . . 9  |-  1  e.  CC
18 addass 7743 . . . . . . . . 9  |-  ( ( A  e.  CC  /\  y  e.  CC  /\  1  e.  CC )  ->  (
( A  +  y )  +  1 )  =  ( A  +  ( y  +  1 ) ) )
1917, 18mp3an3 1304 . . . . . . . 8  |-  ( ( A  e.  CC  /\  y  e.  CC )  ->  ( ( A  +  y )  +  1 )  =  ( A  +  ( y  +  1 ) ) )
2015, 16, 19syl2an 287 . . . . . . 7  |-  ( ( A  e.  NN  /\  y  e.  NN )  ->  ( ( A  +  y )  +  1 )  =  ( A  +  ( y  +  1 ) ) )
2120eleq1d 2206 . . . . . 6  |-  ( ( A  e.  NN  /\  y  e.  NN )  ->  ( ( ( A  +  y )  +  1 )  e.  NN  <->  ( A  +  ( y  +  1 ) )  e.  NN ) )
2214, 21syl5ib 153 . . . . 5  |-  ( ( A  e.  NN  /\  y  e.  NN )  ->  ( ( A  +  y )  e.  NN  ->  ( A  +  ( y  +  1 ) )  e.  NN ) )
2322expcom 115 . . . 4  |-  ( y  e.  NN  ->  ( A  e.  NN  ->  ( ( A  +  y )  e.  NN  ->  ( A  +  ( y  +  1 ) )  e.  NN ) ) )
2423a2d 26 . . 3  |-  ( y  e.  NN  ->  (
( A  e.  NN  ->  ( A  +  y )  e.  NN )  ->  ( A  e.  NN  ->  ( A  +  ( y  +  1 ) )  e.  NN ) ) )
253, 6, 9, 12, 13, 24nnind 8729 . 2  |-  ( B  e.  NN  ->  ( A  e.  NN  ->  ( A  +  B )  e.  NN ) )
2625impcom 124 1  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( A  +  B
)  e.  NN )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    = wceq 1331    e. wcel 1480  (class class class)co 5767   CCcc 7611   1c1 7614    + caddc 7616   NNcn 8713
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119  ax-sep 4041  ax-cnex 7704  ax-resscn 7705  ax-1cn 7706  ax-1re 7707  ax-addrcl 7710  ax-addass 7715
This theorem depends on definitions:  df-bi 116  df-3an 964  df-tru 1334  df-nf 1437  df-sb 1736  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ral 2419  df-rex 2420  df-rab 2423  df-v 2683  df-un 3070  df-in 3072  df-ss 3079  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-br 3925  df-iota 5083  df-fv 5126  df-ov 5770  df-inn 8714
This theorem is referenced by:  nnmulcl  8734  nn2ge  8746  nnaddcld  8761  nnnn0addcl  9000  nn0addcl  9005  9p1e10  9177
  Copyright terms: Public domain W3C validator