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

Theorem nnaass 6588
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 5800 . . . . . 6  |-  ( x  =  C  ->  (
( A  +o  B
)  +o  x )  =  ( ( A  +o  B )  +o  C ) )
2 oveq2 5800 . . . . . . 7  |-  ( x  =  C  ->  ( B  +o  x )  =  ( B  +o  C
) )
32oveq2d 5808 . . . . . 6  |-  ( x  =  C  ->  ( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  C ) ) )
41, 3eqeq12d 2272 . . . . 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 5800 . . . . . 6  |-  ( x  =  (/)  ->  ( ( A  +o  B )  +o  x )  =  ( ( A  +o  B )  +o  (/) ) )
7 oveq2 5800 . . . . . . 7  |-  ( x  =  (/)  ->  ( B  +o  x )  =  ( B  +o  (/) ) )
87oveq2d 5808 . . . . . 6  |-  ( x  =  (/)  ->  ( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  (/) ) ) )
96, 8eqeq12d 2272 . . . . 5  |-  ( x  =  (/)  ->  ( ( ( A  +o  B
)  +o  x )  =  ( A  +o  ( B  +o  x
) )  <->  ( ( A  +o  B )  +o  (/) )  =  ( A  +o  ( B  +o  (/) ) ) ) )
10 oveq2 5800 . . . . . 6  |-  ( x  =  y  ->  (
( A  +o  B
)  +o  x )  =  ( ( A  +o  B )  +o  y ) )
11 oveq2 5800 . . . . . . 7  |-  ( x  =  y  ->  ( B  +o  x )  =  ( B  +o  y
) )
1211oveq2d 5808 . . . . . 6  |-  ( x  =  y  ->  ( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  y ) ) )
1310, 12eqeq12d 2272 . . . . 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 5800 . . . . . 6  |-  ( x  =  suc  y  -> 
( ( A  +o  B )  +o  x
)  =  ( ( A  +o  B )  +o  suc  y ) )
15 oveq2 5800 . . . . . . 7  |-  ( x  =  suc  y  -> 
( B  +o  x
)  =  ( B  +o  suc  y ) )
1615oveq2d 5808 . . . . . 6  |-  ( x  =  suc  y  -> 
( A  +o  ( B  +o  x ) )  =  ( A  +o  ( B  +o  suc  y
) ) )
1714, 16eqeq12d 2272 . . . . 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 6577 . . . . . . 7  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  +o  B
)  e.  om )
19 nna0 6570 . . . . . . 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 6570 . . . . . . . 8  |-  ( B  e.  om  ->  ( B  +o  (/) )  =  B )
2221oveq2d 5808 . . . . . . 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 2293 . . . . 5  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  (/) )  =  ( A  +o  ( B  +o  (/) ) ) )
25 suceq 4429 . . . . . . 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 6572 . . . . . . . . 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 6572 . . . . . . . . . . . 12  |-  ( ( B  e.  om  /\  y  e.  om )  ->  ( B  +o  suc  y )  =  suc  ( B  +o  y
) )
2928oveq2d 5808 . . . . . . . . . . 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 6577 . . . . . . . . . . 11  |-  ( ( B  e.  om  /\  y  e.  om )  ->  ( B  +o  y
)  e.  om )
32 nnasuc 6572 . . . . . . . . . . 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 2290 . . . . . . . . 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 2272 . . . . . . 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 4656 . . . 4  |-  ( x  e.  om  ->  (
( A  e.  om  /\  B  e.  om )  ->  ( ( A  +o  B )  +o  x
)  =  ( A  +o  ( B  +o  x ) ) ) )
405, 39vtoclga 2824 . . 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 3430   suc csuc 4366   omcom 4628  (class class class)co 5792    +o coa 6444
This theorem is referenced by:  nndi  6589  nnmsucr  6591  omopthlem1  6621  omopthlem2  6622  addasspi  8487
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 2239  ax-sep 4115  ax-nul 4123  ax-pr 4186  ax-un 4484
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 2122  df-mo 2123  df-clab 2245  df-cleq 2251  df-clel 2254  df-nfc 2383  df-ne 2423  df-ral 2523  df-rex 2524  df-reu 2525  df-rab 2527  df-v 2765  df-sbc 2967  df-csb 3057  df-dif 3130  df-un 3132  df-in 3134  df-ss 3141  df-pss 3143  df-nul 3431  df-if 3540  df-pw 3601  df-sn 3620  df-pr 3621  df-tp 3622  df-op 3623  df-uni 3802  df-iun 3881  df-br 3998  df-opab 4052  df-mpt 4053  df-tr 4088  df-eprel 4277  df-id 4281  df-po 4286  df-so 4287  df-fr 4324  df-we 4326  df-ord 4367  df-on 4368  df-lim 4369  df-suc 4370  df-om 4629  df-xp 4675  df-rel 4676  df-cnv 4677  df-co 4678  df-dm 4679  df-rn 4680  df-res 4681  df-ima 4682  df-fun 4683  df-fn 4684  df-f 4685  df-f1 4686  df-fo 4687  df-f1o 4688  df-fv 4689  df-ov 5795  df-oprab 5796  df-mpt2 5797  df-recs 6356  df-rdg 6391  df-oadd 6451
  Copyright terms: Public domain W3C validator