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

Theorem addcanpi 9171
Description: Addition cancellation law for positive integers. (Contributed by Mario Carneiro, 8-May-2013.) (New usage is discouraged.)
Assertion
Ref Expression
addcanpi  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( ( A  +N  B )  =  ( A  +N  C )  <-> 
B  =  C ) )

Proof of Theorem addcanpi
StepHypRef Expression
1 addclpi 9164 . . . . . . . . . 10  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( A  +N  B
)  e.  N. )
2 eleq1 2523 . . . . . . . . . 10  |-  ( ( A  +N  B )  =  ( A  +N  C )  ->  (
( A  +N  B
)  e.  N.  <->  ( A  +N  C )  e.  N. ) )
31, 2syl5ib 219 . . . . . . . . 9  |-  ( ( A  +N  B )  =  ( A  +N  C )  ->  (
( A  e.  N.  /\  B  e.  N. )  ->  ( A  +N  C
)  e.  N. )
)
43imp 429 . . . . . . . 8  |-  ( ( ( A  +N  B
)  =  ( A  +N  C )  /\  ( A  e.  N.  /\  B  e.  N. )
)  ->  ( A  +N  C )  e.  N. )
5 dmaddpi 9162 . . . . . . . . 9  |-  dom  +N  =  ( N.  X.  N. )
6 0npi 9154 . . . . . . . . 9  |-  -.  (/)  e.  N.
75, 6ndmovrcl 6351 . . . . . . . 8  |-  ( ( A  +N  C )  e.  N.  ->  ( A  e.  N.  /\  C  e.  N. ) )
8 simpr 461 . . . . . . . 8  |-  ( ( A  e.  N.  /\  C  e.  N. )  ->  C  e.  N. )
94, 7, 83syl 20 . . . . . . 7  |-  ( ( ( A  +N  B
)  =  ( A  +N  C )  /\  ( A  e.  N.  /\  B  e.  N. )
)  ->  C  e.  N. )
10 addpiord 9156 . . . . . . . . . 10  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( A  +N  B
)  =  ( A  +o  B ) )
1110adantr 465 . . . . . . . . 9  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( A  +N  B )  =  ( A  +o  B ) )
12 addpiord 9156 . . . . . . . . . 10  |-  ( ( A  e.  N.  /\  C  e.  N. )  ->  ( A  +N  C
)  =  ( A  +o  C ) )
1312adantlr 714 . . . . . . . . 9  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( A  +N  C )  =  ( A  +o  C ) )
1411, 13eqeq12d 2473 . . . . . . . 8  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( ( A  +N  B )  =  ( A  +N  C
)  <->  ( A  +o  B )  =  ( A  +o  C ) ) )
15 pinn 9150 . . . . . . . . . 10  |-  ( A  e.  N.  ->  A  e.  om )
16 pinn 9150 . . . . . . . . . 10  |-  ( B  e.  N.  ->  B  e.  om )
17 pinn 9150 . . . . . . . . . 10  |-  ( C  e.  N.  ->  C  e.  om )
18 nnacan 7169 . . . . . . . . . . 11  |-  ( ( A  e.  om  /\  B  e.  om  /\  C  e.  om )  ->  (
( A  +o  B
)  =  ( A  +o  C )  <->  B  =  C ) )
1918biimpd 207 . . . . . . . . . 10  |-  ( ( A  e.  om  /\  B  e.  om  /\  C  e.  om )  ->  (
( A  +o  B
)  =  ( A  +o  C )  ->  B  =  C )
)
2015, 16, 17, 19syl3an 1261 . . . . . . . . 9  |-  ( ( A  e.  N.  /\  B  e.  N.  /\  C  e.  N. )  ->  (
( A  +o  B
)  =  ( A  +o  C )  ->  B  =  C )
)
21203expa 1188 . . . . . . . 8  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( ( A  +o  B )  =  ( A  +o  C
)  ->  B  =  C ) )
2214, 21sylbid 215 . . . . . . 7  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  C  e.  N. )  ->  ( ( A  +N  B )  =  ( A  +N  C
)  ->  B  =  C ) )
239, 22sylan2 474 . . . . . 6  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  ( ( A  +N  B )  =  ( A  +N  C )  /\  ( A  e. 
N.  /\  B  e.  N. ) ) )  -> 
( ( A  +N  B )  =  ( A  +N  C )  ->  B  =  C ) )
2423exp32 605 . . . . 5  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( ( A  +N  B )  =  ( A  +N  C )  ->  ( ( A  e.  N.  /\  B  e.  N. )  ->  (
( A  +N  B
)  =  ( A  +N  C )  ->  B  =  C )
) ) )
2524imp4b 590 . . . 4  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  ( A  +N  B
)  =  ( A  +N  C ) )  ->  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  ( A  +N  B
)  =  ( A  +N  C ) )  ->  B  =  C ) )
2625pm2.43i 47 . . 3  |-  ( ( ( A  e.  N.  /\  B  e.  N. )  /\  ( A  +N  B
)  =  ( A  +N  C ) )  ->  B  =  C )
2726ex 434 . 2  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( ( A  +N  B )  =  ( A  +N  C )  ->  B  =  C ) )
28 oveq2 6200 . 2  |-  ( B  =  C  ->  ( A  +N  B )  =  ( A  +N  C
) )
2927, 28impbid1 203 1  |-  ( ( A  e.  N.  /\  B  e.  N. )  ->  ( ( A  +N  B )  =  ( A  +N  C )  <-> 
B  =  C ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    <-> wb 184    /\ wa 369    /\ w3a 965    = wceq 1370    e. wcel 1758  (class class class)co 6192   omcom 6578    +o coa 7019   N.cnpi 9114    +N cpli 9115
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1952  ax-ext 2430  ax-sep 4513  ax-nul 4521  ax-pow 4570  ax-pr 4631  ax-un 6474
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2264  df-mo 2265  df-clab 2437  df-cleq 2443  df-clel 2446  df-nfc 2601  df-ne 2646  df-ral 2800  df-rex 2801  df-reu 2802  df-rab 2804  df-v 3072  df-sbc 3287  df-csb 3389  df-dif 3431  df-un 3433  df-in 3435  df-ss 3442  df-pss 3444  df-nul 3738  df-if 3892  df-pw 3962  df-sn 3978  df-pr 3980  df-tp 3982  df-op 3984  df-uni 4192  df-iun 4273  df-br 4393  df-opab 4451  df-mpt 4452  df-tr 4486  df-eprel 4732  df-id 4736  df-po 4741  df-so 4742  df-fr 4779  df-we 4781  df-ord 4822  df-on 4823  df-lim 4824  df-suc 4825  df-xp 4946  df-rel 4947  df-cnv 4948  df-co 4949  df-dm 4950  df-rn 4951  df-res 4952  df-ima 4953  df-iota 5481  df-fun 5520  df-fn 5521  df-f 5522  df-f1 5523  df-fo 5524  df-f1o 5525  df-fv 5526  df-ov 6195  df-oprab 6196  df-mpt2 6197  df-om 6579  df-1st 6679  df-2nd 6680  df-recs 6934  df-rdg 6968  df-oadd 7026  df-ni 9144  df-pli 9145
This theorem is referenced by:  adderpqlem  9226
  Copyright terms: Public domain W3C validator