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

Theorem addcan 8929
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 ) )

Proof of Theorem addcan
StepHypRef Expression
1 cnegex2 8927 . . 3  |-  ( A  e.  CC  ->  E. x  e.  CC  ( x  +  A )  =  0 )
213ad2ant1 981 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  E. x  e.  CC  ( x  +  A )  =  0 )
3 oveq2 5765 . . . . . 6  |-  ( ( A  +  B )  =  ( A  +  C )  ->  (
x  +  ( A  +  B ) )  =  ( x  +  ( A  +  C
) ) )
4 simprr 736 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( x  +  A )  =  0 )
54oveq1d 5772 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  B )  =  ( 0  +  B
) )
6 simprl 735 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  x  e.  CC )
7 simpl1 963 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  A  e.  CC )
8 simpl2 964 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  B  e.  CC )
96, 7, 8addassd 8790 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  B )  =  ( x  +  ( A  +  B ) ) )
10 addid2 8928 . . . . . . . . 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 2296 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( x  +  ( A  +  B ) )  =  B )
134oveq1d 5772 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  C )  =  ( 0  +  C
) )
14 simpl3 965 . . . . . . . . 9  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  C  e.  CC )
156, 7, 14addassd 8790 . . . . . . . 8  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( (
x  +  A )  +  C )  =  ( x  +  ( A  +  C ) ) )
16 addid2 8928 . . . . . . . . 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 2296 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( x  +  A
)  =  0 ) )  ->  ( x  +  ( A  +  C ) )  =  C )
1912, 18eqeq12d 2270 . . . . . 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 5765 . . . . 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 601 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  x  e.  CC )  ->  ( ( x  +  A )  =  0  ->  ( ( A  +  B )  =  ( A  +  C )  <->  B  =  C ) ) )
2423rexlimdva 2638 . 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 939    = wceq 1619    e. wcel 1621   E.wrex 2517  (class class class)co 5757   CCcc 8668   0cc0 8670    + caddc 8673
This theorem is referenced by:  addcom  8931  addcani  8938  addcomd  8947  addcand  8948  subcan  9035
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-pow 4126  ax-pr 4152  ax-un 4449  ax-resscn 8727  ax-1cn 8728  ax-icn 8729  ax-addcl 8730  ax-addrcl 8731  ax-mulcl 8732  ax-mulrcl 8733  ax-mulcom 8734  ax-addass 8735  ax-mulass 8736  ax-distr 8737  ax-i2m1 8738  ax-1ne0 8739  ax-1rid 8740  ax-rnegex 8741  ax-rrecex 8742  ax-cnre 8743  ax-pre-lttri 8744  ax-pre-lttrn 8745  ax-pre-ltadd 8746
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-nel 2422  df-ral 2520  df-rex 2521  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-nul 3398  df-if 3507  df-pw 3568  df-sn 3587  df-pr 3588  df-op 3590  df-uni 3769  df-br 3964  df-opab 4018  df-mpt 4019  df-id 4246  df-po 4251  df-so 4252  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-er 6593  df-en 6797  df-dom 6798  df-sdom 6799  df-pnf 8802  df-mnf 8803  df-ltxr 8805
  Copyright terms: Public domain W3C validator