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

Theorem addsubeq4 8105
Description: Relation between sums and differences. (Contributed by Jeff Madsen, 17-Jun-2010.)
Assertion
Ref Expression
addsubeq4  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( A  +  B )  =  ( C  +  D )  <-> 
( C  -  A
)  =  ( B  -  D ) ) )

Proof of Theorem addsubeq4
StepHypRef Expression
1 eqcom 2166 . . 3  |-  ( ( C  -  A )  =  ( B  -  D )  <->  ( B  -  D )  =  ( C  -  A ) )
2 subcl 8089 . . . . . 6  |-  ( ( C  e.  CC  /\  A  e.  CC )  ->  ( C  -  A
)  e.  CC )
32ancoms 266 . . . . 5  |-  ( ( A  e.  CC  /\  C  e.  CC )  ->  ( C  -  A
)  e.  CC )
4 subadd 8093 . . . . . . 7  |-  ( ( B  e.  CC  /\  D  e.  CC  /\  ( C  -  A )  e.  CC )  ->  (
( B  -  D
)  =  ( C  -  A )  <->  ( D  +  ( C  -  A ) )  =  B ) )
543expa 1192 . . . . . 6  |-  ( ( ( B  e.  CC  /\  D  e.  CC )  /\  ( C  -  A )  e.  CC )  ->  ( ( B  -  D )  =  ( C  -  A
)  <->  ( D  +  ( C  -  A
) )  =  B ) )
65ancoms 266 . . . . 5  |-  ( ( ( C  -  A
)  e.  CC  /\  ( B  e.  CC  /\  D  e.  CC ) )  ->  ( ( B  -  D )  =  ( C  -  A )  <->  ( D  +  ( C  -  A ) )  =  B ) )
73, 6sylan 281 . . . 4  |-  ( ( ( A  e.  CC  /\  C  e.  CC )  /\  ( B  e.  CC  /\  D  e.  CC ) )  -> 
( ( B  -  D )  =  ( C  -  A )  <-> 
( D  +  ( C  -  A ) )  =  B ) )
87an4s 578 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( B  -  D )  =  ( C  -  A )  <-> 
( D  +  ( C  -  A ) )  =  B ) )
91, 8syl5bb 191 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( C  -  A )  =  ( B  -  D )  <-> 
( D  +  ( C  -  A ) )  =  B ) )
10 addcom 8027 . . . . . . 7  |-  ( ( C  e.  CC  /\  D  e.  CC )  ->  ( C  +  D
)  =  ( D  +  C ) )
1110adantl 275 . . . . . 6  |-  ( ( A  e.  CC  /\  ( C  e.  CC  /\  D  e.  CC ) )  ->  ( C  +  D )  =  ( D  +  C ) )
1211oveq1d 5852 . . . . 5  |-  ( ( A  e.  CC  /\  ( C  e.  CC  /\  D  e.  CC ) )  ->  ( ( C  +  D )  -  A )  =  ( ( D  +  C
)  -  A ) )
13 addsubass 8100 . . . . . . . 8  |-  ( ( D  e.  CC  /\  C  e.  CC  /\  A  e.  CC )  ->  (
( D  +  C
)  -  A )  =  ( D  +  ( C  -  A
) ) )
14133com12 1196 . . . . . . 7  |-  ( ( C  e.  CC  /\  D  e.  CC  /\  A  e.  CC )  ->  (
( D  +  C
)  -  A )  =  ( D  +  ( C  -  A
) ) )
15143expa 1192 . . . . . 6  |-  ( ( ( C  e.  CC  /\  D  e.  CC )  /\  A  e.  CC )  ->  ( ( D  +  C )  -  A )  =  ( D  +  ( C  -  A ) ) )
1615ancoms 266 . . . . 5  |-  ( ( A  e.  CC  /\  ( C  e.  CC  /\  D  e.  CC ) )  ->  ( ( D  +  C )  -  A )  =  ( D  +  ( C  -  A ) ) )
1712, 16eqtrd 2197 . . . 4  |-  ( ( A  e.  CC  /\  ( C  e.  CC  /\  D  e.  CC ) )  ->  ( ( C  +  D )  -  A )  =  ( D  +  ( C  -  A ) ) )
1817adantlr 469 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( C  +  D )  -  A
)  =  ( D  +  ( C  -  A ) ) )
1918eqeq1d 2173 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( ( C  +  D )  -  A )  =  B  <-> 
( D  +  ( C  -  A ) )  =  B ) )
20 addcl 7870 . . 3  |-  ( ( C  e.  CC  /\  D  e.  CC )  ->  ( C  +  D
)  e.  CC )
21 subadd 8093 . . . . 5  |-  ( ( ( C  +  D
)  e.  CC  /\  A  e.  CC  /\  B  e.  CC )  ->  (
( ( C  +  D )  -  A
)  =  B  <->  ( A  +  B )  =  ( C  +  D ) ) )
22213expb 1193 . . . 4  |-  ( ( ( C  +  D
)  e.  CC  /\  ( A  e.  CC  /\  B  e.  CC ) )  ->  ( (
( C  +  D
)  -  A )  =  B  <->  ( A  +  B )  =  ( C  +  D ) ) )
2322ancoms 266 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  +  D )  e.  CC )  ->  ( ( ( C  +  D )  -  A )  =  B  <->  ( A  +  B )  =  ( C  +  D ) ) )
2420, 23sylan2 284 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( ( C  +  D )  -  A )  =  B  <-> 
( A  +  B
)  =  ( C  +  D ) ) )
259, 19, 243bitr2rd 216 1  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( C  e.  CC  /\  D  e.  CC ) )  -> 
( ( A  +  B )  =  ( C  +  D )  <-> 
( C  -  A
)  =  ( B  -  D ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    = wceq 1342    e. wcel 2135  (class class class)co 5837   CCcc 7743    + caddc 7748    - cmin 8061
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-in1 604  ax-in2 605  ax-io 699  ax-5 1434  ax-7 1435  ax-gen 1436  ax-ie1 1480  ax-ie2 1481  ax-8 1491  ax-10 1492  ax-11 1493  ax-i12 1494  ax-bndl 1496  ax-4 1497  ax-17 1513  ax-i9 1517  ax-ial 1521  ax-i5r 1522  ax-14 2138  ax-ext 2146  ax-sep 4095  ax-pow 4148  ax-pr 4182  ax-setind 4509  ax-resscn 7837  ax-1cn 7838  ax-icn 7840  ax-addcl 7841  ax-addrcl 7842  ax-mulcl 7843  ax-addcom 7845  ax-addass 7847  ax-distr 7849  ax-i2m1 7850  ax-0id 7853  ax-rnegex 7854  ax-cnre 7856
This theorem depends on definitions:  df-bi 116  df-3an 969  df-tru 1345  df-fal 1348  df-nf 1448  df-sb 1750  df-eu 2016  df-mo 2017  df-clab 2151  df-cleq 2157  df-clel 2160  df-nfc 2295  df-ne 2335  df-ral 2447  df-rex 2448  df-reu 2449  df-rab 2451  df-v 2724  df-sbc 2948  df-dif 3114  df-un 3116  df-in 3118  df-ss 3125  df-pw 3556  df-sn 3577  df-pr 3578  df-op 3580  df-uni 3785  df-br 3978  df-opab 4039  df-id 4266  df-xp 4605  df-rel 4606  df-cnv 4607  df-co 4608  df-dm 4609  df-iota 5148  df-fun 5185  df-fv 5191  df-riota 5793  df-ov 5840  df-oprab 5841  df-mpo 5842  df-sub 8063
This theorem is referenced by:  subcan  8145  addsubeq4d  8252
  Copyright terms: Public domain W3C validator