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

Theorem addcan 8991
Description: Cancellation law for addition. Theorem I.1 of [Apostol] p. 18. (Contributed by NM, 22-Nov-1994.) (Proof shortened by Mario Carneiro, 27-May-2016.)
Assertion
Ref Expression
addcan  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  (
( A  +  B
)  =  ( A  +  C )  <->  B  =  C ) )
Dummy variable  x is distinct from all other variables.

Proof of Theorem addcan
StepHypRef Expression
1 cnegex2 8989 . . 3  |-  ( A  e.  CC  ->  E. x  e.  CC  ( x  +  A )  =  0 )
213ad2ant1 978 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  E. x  e.  CC  ( x  +  A )  =  0 )
3 oveq2 5827 . . . . . 6  |-  ( ( A  +  B )  =  ( A  +  C )  ->  (
x  +  ( A  +  B ) )  =  ( x  +  ( A  +  C
) ) )
4 simprr 735 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( x  +  A )  =  0 )
54oveq1d 5834 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  B )  =  ( 0  +  B
) )
6 simprl 734 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  x  e.  CC )
7 simpl1 960 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  A  e.  CC )
8 simpl2 961 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  B  e.  CC )
96, 7, 8addassd 8852 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  B )  =  ( x  +  ( A  +  B ) ) )
10 addid2 8990 . . . . . . . . 9  |-  ( B  e.  CC  ->  (
0  +  B )  =  B )
118, 10syl 17 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( 0  +  B )  =  B )
125, 9, 113eqtr3d 2324 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( x  +  ( A  +  B ) )  =  B )
134oveq1d 5834 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  C )  =  ( 0  +  C
) )
14 simpl3 962 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  C  e.  CC )
156, 7, 14addassd 8852 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  C )  =  ( x  +  ( A  +  C ) ) )
16 addid2 8990 . . . . . . . . 9  |-  ( C  e.  CC  ->  (
0  +  C )  =  C )
1714, 16syl 17 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( 0  +  C )  =  C )
1813, 15, 173eqtr3d 2324 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( x  +  ( A  +  C ) )  =  C )
1912, 18eqeq12d 2298 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  ( A  +  B ) )  =  ( x  +  ( A  +  C
) )  <->  B  =  C ) )
203, 19syl5ib 212 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( ( A  +  B )  =  ( A  +  C )  ->  B  =  C ) )
21 oveq2 5827 . . . . 5  |-  ( B  =  C  ->  ( A  +  B )  =  ( A  +  C ) )
2220, 21impbid1 196 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( ( A  +  B )  =  ( A  +  C )  <->  B  =  C ) )
2322expr 600 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  x  e.  CC )  ->  ( ( x  +  A )  =  0  ->  ( ( A  +  B )  =  ( A  +  C )  <->  B  =  C ) ) )
2423rexlimdva 2668 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  ( E. x  e.  CC  ( x  +  A
)  =  0  -> 
( ( A  +  B )  =  ( A  +  C )  <-> 
B  =  C ) ) )
252, 24mpd 16 1  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  (
( A  +  B
)  =  ( A  +  C )  <->  B  =  C ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    <-> wb 178    /\ wa 360    /\ w3a 936    = wceq 1624    e. wcel 1685   E.wrex 2545  (class class class)co 5819   CCcc 8730   0cc0 8732    + caddc 8735
This theorem is referenced by:  addcom  8993  addcani  9000  addcomd  9009  addcand  9010  subcan  9097
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-gen 1534  ax-5 1545  ax-17 1604  ax-9 1637  ax-8 1645  ax-13 1687  ax-14 1689  ax-6 1704  ax-7 1709  ax-11 1716  ax-12 1867  ax-ext 2265  ax-sep 4142  ax-nul 4150  ax-pow 4187  ax-pr 4213  ax-un 4511  ax-resscn 8789  ax-1cn 8790  ax-icn 8791  ax-addcl 8792  ax-addrcl 8793  ax-mulcl 8794  ax-mulrcl 8795  ax-mulcom 8796  ax-addass 8797  ax-mulass 8798  ax-distr 8799  ax-i2m1 8800  ax-1ne0 8801  ax-1rid 8802  ax-rnegex 8803  ax-rrecex 8804  ax-cnre 8805  ax-pre-lttri 8806  ax-pre-lttrn 8807  ax-pre-ltadd 8808
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 937  df-3an 938  df-tru 1312  df-ex 1530  df-nf 1533  df-sb 1632  df-eu 2148  df-mo 2149  df-clab 2271  df-cleq 2277  df-clel 2280  df-nfc 2409  df-ne 2449  df-nel 2450  df-ral 2549  df-rex 2550  df-rab 2553  df-v 2791  df-sbc 2993  df-csb 3083  df-dif 3156  df-un 3158  df-in 3160  df-ss 3167  df-nul 3457  df-if 3567  df-pw 3628  df-sn 3647  df-pr 3648  df-op 3650  df-uni 3829  df-br 4025  df-opab 4079  df-mpt 4080  df-id 4308  df-po 4313  df-so 4314  df-xp 4694  df-rel 4695  df-cnv 4696  df-co 4697  df-dm 4698  df-rn 4699  df-res 4700  df-ima 4701  df-fun 5223  df-fn 5224  df-f 5225  df-f1 5226  df-fo 5227  df-f1o 5228  df-fv 5229  df-ov 5822  df-er 6655  df-en 6859  df-dom 6860  df-sdom 6861  df-pnf 8864  df-mnf 8865  df-ltxr 8867
  Copyright terms: Public domain W3C validator