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

Theorem addcan2 7943
Description: Cancellation law for addition. (Contributed by NM, 30-Jul-2004.) (Revised by Scott Fenton, 3-Jan-2013.)
Assertion
Ref Expression
addcan2  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  (
( A  +  C
)  =  ( B  +  C )  <->  A  =  B ) )

Proof of Theorem addcan2
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 cnegex 7940 . . 3  |-  ( C  e.  CC  ->  E. x  e.  CC  ( C  +  x )  =  0 )
213ad2ant3 1004 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  E. x  e.  CC  ( C  +  x )  =  0 )
3 oveq1 5781 . . . 4  |-  ( ( A  +  C )  =  ( B  +  C )  ->  (
( A  +  C
)  +  x )  =  ( ( B  +  C )  +  x ) )
4 simpl1 984 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  A  e.  CC )
5 simpl3 986 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  C  e.  CC )
6 simprl 520 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  x  e.  CC )
74, 5, 6addassd 7788 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  +  x )  =  ( A  +  ( C  +  x ) ) )
8 simprr 521 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( C  +  x )  =  0 )
98oveq2d 5790 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( A  +  ( C  +  x ) )  =  ( A  +  0 ) )
10 addid1 7900 . . . . . . 7  |-  ( A  e.  CC  ->  ( A  +  0 )  =  A )
114, 10syl 14 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( A  +  0 )  =  A )
127, 9, 113eqtrd 2176 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  +  x )  =  A )
13 simpl2 985 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  B  e.  CC )
1413, 5, 6addassd 7788 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( B  +  C )  +  x )  =  ( B  +  ( C  +  x ) ) )
158oveq2d 5790 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( B  +  ( C  +  x ) )  =  ( B  +  0 ) )
16 addid1 7900 . . . . . . 7  |-  ( B  e.  CC  ->  ( B  +  0 )  =  B )
1713, 16syl 14 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( B  +  0 )  =  B )
1814, 15, 173eqtrd 2176 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( B  +  C )  +  x )  =  B )
1912, 18eqeq12d 2154 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( (
( A  +  C
)  +  x )  =  ( ( B  +  C )  +  x )  <->  A  =  B ) )
203, 19syl5ib 153 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  =  ( B  +  C )  ->  A  =  B ) )
21 oveq1 5781 . . 3  |-  ( A  =  B  ->  ( A  +  C )  =  ( B  +  C ) )
2220, 21impbid1 141 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  =  ( B  +  C )  <->  A  =  B ) )
232, 22rexlimddv 2554 1  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  (
( A  +  C
)  =  ( B  +  C )  <->  A  =  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    /\ w3a 962    = wceq 1331    e. wcel 1480   E.wrex 2417  (class class class)co 5774   CCcc 7618   0cc0 7620    + caddc 7623
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-resscn 7712  ax-1cn 7713  ax-icn 7715  ax-addcl 7716  ax-addrcl 7717  ax-mulcl 7718  ax-addcom 7720  ax-addass 7722  ax-distr 7724  ax-i2m1 7725  ax-0id 7728  ax-rnegex 7729  ax-cnre 7731
This theorem depends on definitions:  df-bi 116  df-3an 964  df-tru 1334  df-nf 1437  df-sb 1736  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ral 2421  df-rex 2422  df-v 2688  df-un 3075  df-in 3077  df-ss 3084  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-br 3930  df-iota 5088  df-fv 5131  df-ov 5777
This theorem is referenced by:  addcan2i  7945  addcan2d  7947  muleqadd  8429
  Copyright terms: Public domain W3C validator