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

Theorem addasspig 7463
Description: Addition of positive integers is associative. (Contributed by Jim Kingdon, 26-Aug-2019.)
Assertion
Ref Expression
addasspig  |-  ( ( A  e.  N.  /\  B  e.  N.  /\  C  e.  N. )  ->  (
( A  +N  B
)  +N  C )  =  ( A  +N  ( B  +N  C
) ) )

Proof of Theorem addasspig
StepHypRef Expression
1 pinn 7442 . . 3  |-  ( A  e.  N.  ->  A  e.  om )
2 pinn 7442 . . 3  |-  ( B  e.  N.  ->  B  e.  om )
3 pinn 7442 . . 3  |-  ( C  e.  N.  ->  C  e.  om )
4 nnaass 6584 . . 3  |-  ( ( A  e.  om  /\  B  e.  om  /\  C  e.  om )  ->  (
( A  +o  B
)  +o  C )  =  ( A  +o  ( B  +o  C
) ) )
51, 2, 3, 4syl3an 1292 . 2  |-  ( ( A  e.  N.  /\  B  e.  N.  /\  C  e.  N. )  ->  (
( A  +o  B
)  +o  C )  =  ( A  +o  ( B  +o  C
) ) )
6 addclpi 7460 . . . . 5  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( A  +N  B
)  e.  N. )
7 addpiord 7449 . . . . 5  |-  ( ( ( A  +N  B
)  e.  N.  /\  C  e.  N. )  ->  ( ( A  +N  B )  +N  C
)  =  ( ( A  +N  B )  +o  C ) )
86, 7sylan 283 . . . 4  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( ( A  +N  B )  +N  C )  =  ( ( A  +N  B
)  +o  C ) )
9 addpiord 7449 . . . . . 6  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( A  +N  B
)  =  ( A  +o  B ) )
109oveq1d 5972 . . . . 5  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( ( A  +N  B )  +o  C
)  =  ( ( A  +o  B )  +o  C ) )
1110adantr 276 . . . 4  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( ( A  +N  B )  +o  C )  =  ( ( A  +o  B
)  +o  C ) )
128, 11eqtrd 2239 . . 3  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( ( A  +N  B )  +N  C )  =  ( ( A  +o  B
)  +o  C ) )
13123impa 1197 . 2  |-  ( ( A  e.  N.  /\  B  e.  N.  /\  C  e.  N. )  ->  (
( A  +N  B
)  +N  C )  =  ( ( A  +o  B )  +o  C ) )
14 addclpi 7460 . . . . 5  |-  ( ( B  e.  N.  /\  C  e.  N. )  ->  ( B  +N  C
)  e.  N. )
15 addpiord 7449 . . . . 5  |-  ( ( A  e.  N.  /\  ( B  +N  C
)  e.  N. )  ->  ( A  +N  ( B  +N  C ) )  =  ( A  +o  ( B  +N  C
) ) )
1614, 15sylan2 286 . . . 4  |-  ( ( A  e.  N.  /\  ( B  e.  N.  /\  C  e.  N. )
)  ->  ( A  +N  ( B  +N  C
) )  =  ( A  +o  ( B  +N  C ) ) )
17 addpiord 7449 . . . . . 6  |-  ( ( B  e.  N.  /\  C  e.  N. )  ->  ( B  +N  C
)  =  ( B  +o  C ) )
1817oveq2d 5973 . . . . 5  |-  ( ( B  e.  N.  /\  C  e.  N. )  ->  ( A  +o  ( B  +N  C ) )  =  ( A  +o  ( B  +o  C
) ) )
1918adantl 277 . . . 4  |-  ( ( A  e.  N.  /\  ( B  e.  N.  /\  C  e.  N. )
)  ->  ( A  +o  ( B  +N  C
) )  =  ( A  +o  ( B  +o  C ) ) )
2016, 19eqtrd 2239 . . 3  |-  ( ( A  e.  N.  /\  ( B  e.  N.  /\  C  e.  N. )
)  ->  ( A  +N  ( B  +N  C
) )  =  ( A  +o  ( B  +o  C ) ) )
21203impb 1202 . 2  |-  ( ( A  e.  N.  /\  B  e.  N.  /\  C  e.  N. )  ->  ( A  +N  ( B  +N  C ) )  =  ( A  +o  ( B  +o  C ) ) )
225, 13, 213eqtr4d 2249 1  |-  ( ( A  e.  N.  /\  B  e.  N.  /\  C  e.  N. )  ->  (
( A  +N  B
)  +N  C )  =  ( A  +N  ( B  +N  C
) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 104    /\ w3a 981    = wceq 1373    e. wcel 2177   omcom 4646  (class class class)co 5957    +o coa 6512   N.cnpi 7405    +N cpli 7406
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-in1 615  ax-in2 616  ax-io 711  ax-5 1471  ax-7 1472  ax-gen 1473  ax-ie1 1517  ax-ie2 1518  ax-8 1528  ax-10 1529  ax-11 1530  ax-i12 1531  ax-bndl 1533  ax-4 1534  ax-17 1550  ax-i9 1554  ax-ial 1558  ax-i5r 1559  ax-13 2179  ax-14 2180  ax-ext 2188  ax-coll 4167  ax-sep 4170  ax-nul 4178  ax-pow 4226  ax-pr 4261  ax-un 4488  ax-setind 4593  ax-iinf 4644
This theorem depends on definitions:  df-bi 117  df-dc 837  df-3an 983  df-tru 1376  df-fal 1379  df-nf 1485  df-sb 1787  df-eu 2058  df-mo 2059  df-clab 2193  df-cleq 2199  df-clel 2202  df-nfc 2338  df-ne 2378  df-ral 2490  df-rex 2491  df-reu 2492  df-rab 2494  df-v 2775  df-sbc 3003  df-csb 3098  df-dif 3172  df-un 3174  df-in 3176  df-ss 3183  df-nul 3465  df-pw 3623  df-sn 3644  df-pr 3645  df-op 3647  df-uni 3857  df-int 3892  df-iun 3935  df-br 4052  df-opab 4114  df-mpt 4115  df-tr 4151  df-id 4348  df-iord 4421  df-on 4423  df-suc 4426  df-iom 4647  df-xp 4689  df-rel 4690  df-cnv 4691  df-co 4692  df-dm 4693  df-rn 4694  df-res 4695  df-ima 4696  df-iota 5241  df-fun 5282  df-fn 5283  df-f 5284  df-f1 5285  df-fo 5286  df-f1o 5287  df-fv 5288  df-ov 5960  df-oprab 5961  df-mpo 5962  df-1st 6239  df-2nd 6240  df-recs 6404  df-irdg 6469  df-oadd 6519  df-ni 7437  df-pli 7438
This theorem is referenced by:  addassnqg  7515
  Copyright terms: Public domain W3C validator