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

Theorem addcan2 7192
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 7189 . . 3  |-  ( C  e.  CC  ->  E. x  e.  CC  ( C  +  x )  =  0 )
213ad2ant3 927 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  ->  E. x  e.  CC  ( C  +  x )  =  0 )
3 oveq1 5519 . . . 4  |-  ( ( A  +  C )  =  ( B  +  C )  ->  (
( A  +  C
)  +  x )  =  ( ( B  +  C )  +  x ) )
4 simpl1 907 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  A  e.  CC )
5 simpl3 909 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  C  e.  CC )
6 simprl 483 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  x  e.  CC )
74, 5, 6addassd 7049 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  +  x )  =  ( A  +  ( C  +  x ) ) )
8 simprr 484 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( C  +  x )  =  0 )
98oveq2d 5528 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( A  +  ( C  +  x ) )  =  ( A  +  0 ) )
10 addid1 7151 . . . . . . 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 2076 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  +  x )  =  A )
13 simpl2 908 . . . . . . 7  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  B  e.  CC )
1413, 5, 6addassd 7049 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( B  +  C )  +  x )  =  ( B  +  ( C  +  x ) ) )
158oveq2d 5528 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( B  +  ( C  +  x ) )  =  ( B  +  0 ) )
16 addid1 7151 . . . . . . 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 2076 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( B  +  C )  +  x )  =  B )
1912, 18eqeq12d 2054 . . . 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 143 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  =  ( B  +  C )  ->  A  =  B ) )
21 oveq1 5519 . . 3  |-  ( A  =  B  ->  ( A  +  C )  =  ( B  +  C ) )
2220, 21impbid1 130 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC  /\  C  e.  CC )  /\  ( x  e.  CC  /\  ( C  +  x
)  =  0 ) )  ->  ( ( A  +  C )  =  ( B  +  C )  <->  A  =  B ) )
232, 22rexlimddv 2437 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 97    <-> wb 98    /\ w3a 885    = wceq 1243    e. wcel 1393   E.wrex 2307  (class class class)co 5512   CCcc 6887   0cc0 6889    + caddc 6892
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-mp 7  ax-ia1 99  ax-ia2 100  ax-ia3 101  ax-io 630  ax-5 1336  ax-7 1337  ax-gen 1338  ax-ie1 1382  ax-ie2 1383  ax-8 1395  ax-10 1396  ax-11 1397  ax-i12 1398  ax-bndl 1399  ax-4 1400  ax-17 1419  ax-i9 1423  ax-ial 1427  ax-i5r 1428  ax-ext 2022  ax-resscn 6976  ax-1cn 6977  ax-icn 6979  ax-addcl 6980  ax-addrcl 6981  ax-mulcl 6982  ax-addcom 6984  ax-addass 6986  ax-distr 6988  ax-i2m1 6989  ax-0id 6992  ax-rnegex 6993  ax-cnre 6995
This theorem depends on definitions:  df-bi 110  df-3an 887  df-tru 1246  df-nf 1350  df-sb 1646  df-clab 2027  df-cleq 2033  df-clel 2036  df-nfc 2167  df-ral 2311  df-rex 2312  df-v 2559  df-un 2922  df-in 2924  df-ss 2931  df-sn 3381  df-pr 3382  df-op 3384  df-uni 3581  df-br 3765  df-iota 4867  df-fv 4910  df-ov 5515
This theorem is referenced by:  addcan2i  7194  addcan2d  7196  muleqadd  7649
  Copyright terms: Public domain W3C validator