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

Theorem nnaass 6553
Description: Addition of natural numbers is associative. Theorem 4K(1) of [Enderton] p. 81. (Contributed by NM, 20-Sep-1995.) (Revised by Mario Carneiro, 15-Nov-2014.)
Assertion
Ref Expression
nnaass  |-  ( ( A  e.  om  /\  B  e.  om  /\  C  e.  om )  ->  (
( A  +o  B
)  +o  C )  =  ( A  +o  ( B  +o  C
) ) )

Proof of Theorem nnaass
StepHypRef Expression
1 oveq2 5765 . . . . . 6  |-  ( x  =  C  ->  (
( A  +o  B
)  +o  x )  =  ( ( A  +o  B )  +o  C ) )
2 oveq2 5765 . . . . . . 7  |-  ( x  =  C  ->  ( B  +o  x )  =  ( B  +o  C
) )
32oveq2d 5773 . . . . . 6  |-  ( x  =  C  ->  ( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  C ) ) )
41, 3eqeq12d 2270 . . . . 5  |-  ( x  =  C  ->  (
( ( A  +o  B )  +o  x
)  =  ( A  +o  ( B  +o  x ) )  <->  ( ( A  +o  B )  +o  C )  =  ( A  +o  ( B  +o  C ) ) ) )
54imbi2d 309 . . . 4  |-  ( x  =  C  ->  (
( ( A  e. 
om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  x )  =  ( A  +o  ( B  +o  x ) ) )  <->  ( ( A  e.  om  /\  B  e.  om )  ->  (
( A  +o  B
)  +o  C )  =  ( A  +o  ( B  +o  C
) ) ) ) )
6 oveq2 5765 . . . . . 6  |-  ( x  =  (/)  ->  ( ( A  +o  B )  +o  x )  =  ( ( A  +o  B )  +o  (/) ) )
7 oveq2 5765 . . . . . . 7  |-  ( x  =  (/)  ->  ( B  +o  x )  =  ( B  +o  (/) ) )
87oveq2d 5773 . . . . . 6  |-  ( x  =  (/)  ->  ( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  (/) ) ) )
96, 8eqeq12d 2270 . . . . 5  |-  ( x  =  (/)  ->  ( ( ( A  +o  B
)  +o  x )  =  ( A  +o  ( B  +o  x
) )  <->  ( ( A  +o  B )  +o  (/) )  =  ( A  +o  ( B  +o  (/) ) ) ) )
10 oveq2 5765 . . . . . 6  |-  ( x  =  y  ->  (
( A  +o  B
)  +o  x )  =  ( ( A  +o  B )  +o  y ) )
11 oveq2 5765 . . . . . . 7  |-  ( x  =  y  ->  ( B  +o  x )  =  ( B  +o  y
) )
1211oveq2d 5773 . . . . . 6  |-  ( x  =  y  ->  ( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  y ) ) )
1310, 12eqeq12d 2270 . . . . 5  |-  ( x  =  y  ->  (
( ( A  +o  B )  +o  x
)  =  ( A  +o  ( B  +o  x ) )  <->  ( ( A  +o  B )  +o  y )  =  ( A  +o  ( B  +o  y ) ) ) )
14 oveq2 5765 . . . . . 6  |-  ( x  =  suc  y  -> 
( ( A  +o  B )  +o  x
)  =  ( ( A  +o  B )  +o  suc  y ) )
15 oveq2 5765 . . . . . . 7  |-  ( x  =  suc  y  -> 
( B  +o  x
)  =  ( B  +o  suc  y ) )
1615oveq2d 5773 . . . . . 6  |-  ( x  =  suc  y  -> 
( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  suc  y
) ) )
1714, 16eqeq12d 2270 . . . . 5  |-  ( x  =  suc  y  -> 
( ( ( A  +o  B )  +o  x )  =  ( A  +o  ( B  +o  x ) )  <-> 
( ( A  +o  B )  +o  suc  y )  =  ( A  +o  ( B  +o  suc  y ) ) ) )
18 nnacl 6542 . . . . . . 7  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  +o  B
)  e.  om )
19 nna0 6535 . . . . . . 7  |-  ( ( A  +o  B )  e.  om  ->  (
( A  +o  B
)  +o  (/) )  =  ( A  +o  B
) )
2018, 19syl 17 . . . . . 6  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  (/) )  =  ( A  +o  B
) )
21 nna0 6535 . . . . . . . 8  |-  ( B  e.  om  ->  ( B  +o  (/) )  =  B )
2221oveq2d 5773 . . . . . . 7  |-  ( B  e.  om  ->  ( A  +o  ( B  +o  (/) ) )  =  ( A  +o  B ) )
2322adantl 454 . . . . . 6  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  +o  ( B  +o  (/) ) )  =  ( A  +o  B
) )
2420, 23eqtr4d 2291 . . . . 5  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  (/) )  =  ( A  +o  ( B  +o  (/) ) ) )
25 suceq 4394 . . . . . . 7  |-  ( ( ( A  +o  B
)  +o  y )  =  ( A  +o  ( B  +o  y
) )  ->  suc  ( ( A  +o  B )  +o  y
)  =  suc  ( A  +o  ( B  +o  y ) ) )
26 nnasuc 6537 . . . . . . . . 9  |-  ( ( ( A  +o  B
)  e.  om  /\  y  e.  om )  ->  ( ( A  +o  B )  +o  suc  y )  =  suc  ( ( A  +o  B )  +o  y
) )
2718, 26sylan 459 . . . . . . . 8  |-  ( ( ( A  e.  om  /\  B  e.  om )  /\  y  e.  om )  ->  ( ( A  +o  B )  +o 
suc  y )  =  suc  ( ( A  +o  B )  +o  y ) )
28 nnasuc 6537 . . . . . . . . . . . 12  |-  ( ( B  e.  om  /\  y  e.  om )  ->  ( B  +o  suc  y )  =  suc  ( B  +o  y
) )
2928oveq2d 5773 . . . . . . . . . . 11  |-  ( ( B  e.  om  /\  y  e.  om )  ->  ( A  +o  ( B  +o  suc  y ) )  =  ( A  +o  suc  ( B  +o  y ) ) )
3029adantl 454 . . . . . . . . . 10  |-  ( ( A  e.  om  /\  ( B  e.  om  /\  y  e.  om )
)  ->  ( A  +o  ( B  +o  suc  y ) )  =  ( A  +o  suc  ( B  +o  y
) ) )
31 nnacl 6542 . . . . . . . . . . 11  |-  ( ( B  e.  om  /\  y  e.  om )  ->  ( B  +o  y
)  e.  om )
32 nnasuc 6537 . . . . . . . . . . 11  |-  ( ( A  e.  om  /\  ( B  +o  y
)  e.  om )  ->  ( A  +o  suc  ( B  +o  y
) )  =  suc  ( A  +o  ( B  +o  y ) ) )
3331, 32sylan2 462 . . . . . . . . . 10  |-  ( ( A  e.  om  /\  ( B  e.  om  /\  y  e.  om )
)  ->  ( A  +o  suc  ( B  +o  y ) )  =  suc  ( A  +o  ( B  +o  y
) ) )
3430, 33eqtrd 2288 . . . . . . . . 9  |-  ( ( A  e.  om  /\  ( B  e.  om  /\  y  e.  om )
)  ->  ( A  +o  ( B  +o  suc  y ) )  =  suc  ( A  +o  ( B  +o  y
) ) )
3534anassrs 632 . . . . . . . 8  |-  ( ( ( A  e.  om  /\  B  e.  om )  /\  y  e.  om )  ->  ( A  +o  ( B  +o  suc  y
) )  =  suc  ( A  +o  ( B  +o  y ) ) )
3627, 35eqeq12d 2270 . . . . . . 7  |-  ( ( ( A  e.  om  /\  B  e.  om )  /\  y  e.  om )  ->  ( ( ( A  +o  B )  +o  suc  y )  =  ( A  +o  ( B  +o  suc  y
) )  <->  suc  ( ( A  +o  B )  +o  y )  =  suc  ( A  +o  ( B  +o  y
) ) ) )
3725, 36syl5ibr 214 . . . . . 6  |-  ( ( ( A  e.  om  /\  B  e.  om )  /\  y  e.  om )  ->  ( ( ( A  +o  B )  +o  y )  =  ( A  +o  ( B  +o  y ) )  ->  ( ( A  +o  B )  +o 
suc  y )  =  ( A  +o  ( B  +o  suc  y ) ) ) )
3837expcom 426 . . . . 5  |-  ( y  e.  om  ->  (
( A  e.  om  /\  B  e.  om )  ->  ( ( ( A  +o  B )  +o  y )  =  ( A  +o  ( B  +o  y ) )  ->  ( ( A  +o  B )  +o 
suc  y )  =  ( A  +o  ( B  +o  suc  y ) ) ) ) )
399, 13, 17, 24, 38finds2 4621 . . . 4  |-  ( x  e.  om  ->  (
( A  e.  om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  x
)  =  ( A  +o  ( B  +o  x ) ) ) )
405, 39vtoclga 2800 . . 3  |-  ( C  e.  om  ->  (
( A  e.  om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  C
)  =  ( A  +o  ( B  +o  C ) ) ) )
4140com12 29 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( C  e.  om  ->  ( ( A  +o  B )  +o  C
)  =  ( A  +o  ( B  +o  C ) ) ) )
42413impia 1153 1  |-  ( ( A  e.  om  /\  B  e.  om  /\  C  e.  om )  ->  (
( A  +o  B
)  +o  C )  =  ( A  +o  ( B  +o  C
) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    /\ wa 360    /\ w3a 939    = wceq 1619    e. wcel 1621   (/)c0 3397   suc csuc 4331   omcom 4593  (class class class)co 5757    +o coa 6409
This theorem is referenced by:  nndi  6554  nnmsucr  6556  omopthlem1  6586  omopthlem2  6587  addasspi  8452
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1927  ax-ext 2237  ax-sep 4081  ax-nul 4089  ax-pr 4152  ax-un 4449
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1884  df-eu 2121  df-mo 2122  df-clab 2243  df-cleq 2249  df-clel 2252  df-nfc 2381  df-ne 2421  df-ral 2520  df-rex 2521  df-reu 2522  df-rab 2523  df-v 2742  df-sbc 2936  df-csb 3024  df-dif 3097  df-un 3099  df-in 3101  df-ss 3108  df-pss 3110  df-nul 3398  df-if 3507  df-pw 3568  df-sn 3587  df-pr 3588  df-tp 3589  df-op 3590  df-uni 3769  df-iun 3848  df-br 3964  df-opab 4018  df-mpt 4019  df-tr 4054  df-eprel 4242  df-id 4246  df-po 4251  df-so 4252  df-fr 4289  df-we 4291  df-ord 4332  df-on 4333  df-lim 4334  df-suc 4335  df-om 4594  df-xp 4640  df-rel 4641  df-cnv 4642  df-co 4643  df-dm 4644  df-rn 4645  df-res 4646  df-ima 4647  df-fun 4648  df-fn 4649  df-f 4650  df-f1 4651  df-fo 4652  df-f1o 4653  df-fv 4654  df-ov 5760  df-oprab 5761  df-mpt2 5762  df-recs 6321  df-rdg 6356  df-oadd 6416
  Copyright terms: Public domain W3C validator