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

Theorem halfaddsub 10563
Description: Sum and difference of half-sum and half-difference. (Contributed by Paul Chapman, 12-Oct-2007.)
Assertion
Ref Expression
halfaddsub  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( ( A  +  B )  /  2 )  +  ( ( A  -  B )  /  2
) )  =  A  /\  ( ( ( A  +  B )  /  2 )  -  ( ( A  -  B )  /  2
) )  =  B ) )

Proof of Theorem halfaddsub
StepHypRef Expression
1 ppncan 9656 . . . . . 6  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  A  e.  CC )  ->  (
( A  +  B
)  +  ( A  -  B ) )  =  ( A  +  A ) )
213anidm13 1276 . . . . 5  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( A  +  B )  +  ( A  -  B ) )  =  ( A  +  A ) )
3 2times 10445 . . . . . 6  |-  ( A  e.  CC  ->  (
2  x.  A )  =  ( A  +  A ) )
43adantr 465 . . . . 5  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( 2  x.  A
)  =  ( A  +  A ) )
52, 4eqtr4d 2478 . . . 4  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( A  +  B )  +  ( A  -  B ) )  =  ( 2  x.  A ) )
65oveq1d 6111 . . 3  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( A  +  B )  +  ( A  -  B
) )  /  2
)  =  ( ( 2  x.  A )  /  2 ) )
7 addcl 9369 . . . 4  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( A  +  B
)  e.  CC )
8 subcl 9614 . . . 4  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( A  -  B
)  e.  CC )
9 2cnne0 10541 . . . . 5  |-  ( 2  e.  CC  /\  2  =/=  0 )
10 divdir 10022 . . . . 5  |-  ( ( ( A  +  B
)  e.  CC  /\  ( A  -  B
)  e.  CC  /\  ( 2  e.  CC  /\  2  =/=  0 ) )  ->  ( (
( A  +  B
)  +  ( A  -  B ) )  /  2 )  =  ( ( ( A  +  B )  / 
2 )  +  ( ( A  -  B
)  /  2 ) ) )
119, 10mp3an3 1303 . . . 4  |-  ( ( ( A  +  B
)  e.  CC  /\  ( A  -  B
)  e.  CC )  ->  ( ( ( A  +  B )  +  ( A  -  B ) )  / 
2 )  =  ( ( ( A  +  B )  /  2
)  +  ( ( A  -  B )  /  2 ) ) )
127, 8, 11syl2anc 661 . . 3  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( A  +  B )  +  ( A  -  B
) )  /  2
)  =  ( ( ( A  +  B
)  /  2 )  +  ( ( A  -  B )  / 
2 ) ) )
13 2cn 10397 . . . . 5  |-  2  e.  CC
14 2ne0 10419 . . . . 5  |-  2  =/=  0
15 divcan3 10023 . . . . 5  |-  ( ( A  e.  CC  /\  2  e.  CC  /\  2  =/=  0 )  ->  (
( 2  x.  A
)  /  2 )  =  A )
1613, 14, 15mp3an23 1306 . . . 4  |-  ( A  e.  CC  ->  (
( 2  x.  A
)  /  2 )  =  A )
1716adantr 465 . . 3  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( 2  x.  A )  /  2
)  =  A )
186, 12, 173eqtr3d 2483 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( A  +  B )  / 
2 )  +  ( ( A  -  B
)  /  2 ) )  =  A )
19 pnncan 9655 . . . . . 6  |-  ( ( A  e.  CC  /\  B  e.  CC  /\  B  e.  CC )  ->  (
( A  +  B
)  -  ( A  -  B ) )  =  ( B  +  B ) )
20193anidm23 1277 . . . . 5  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( A  +  B )  -  ( A  -  B )
)  =  ( B  +  B ) )
21 2times 10445 . . . . . 6  |-  ( B  e.  CC  ->  (
2  x.  B )  =  ( B  +  B ) )
2221adantl 466 . . . . 5  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( 2  x.  B
)  =  ( B  +  B ) )
2320, 22eqtr4d 2478 . . . 4  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( A  +  B )  -  ( A  -  B )
)  =  ( 2  x.  B ) )
2423oveq1d 6111 . . 3  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( A  +  B )  -  ( A  -  B
) )  /  2
)  =  ( ( 2  x.  B )  /  2 ) )
25 divsubdir 10032 . . . . 5  |-  ( ( ( A  +  B
)  e.  CC  /\  ( A  -  B
)  e.  CC  /\  ( 2  e.  CC  /\  2  =/=  0 ) )  ->  ( (
( A  +  B
)  -  ( A  -  B ) )  /  2 )  =  ( ( ( A  +  B )  / 
2 )  -  (
( A  -  B
)  /  2 ) ) )
269, 25mp3an3 1303 . . . 4  |-  ( ( ( A  +  B
)  e.  CC  /\  ( A  -  B
)  e.  CC )  ->  ( ( ( A  +  B )  -  ( A  -  B ) )  / 
2 )  =  ( ( ( A  +  B )  /  2
)  -  ( ( A  -  B )  /  2 ) ) )
277, 8, 26syl2anc 661 . . 3  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( A  +  B )  -  ( A  -  B
) )  /  2
)  =  ( ( ( A  +  B
)  /  2 )  -  ( ( A  -  B )  / 
2 ) ) )
28 divcan3 10023 . . . . 5  |-  ( ( B  e.  CC  /\  2  e.  CC  /\  2  =/=  0 )  ->  (
( 2  x.  B
)  /  2 )  =  B )
2913, 14, 28mp3an23 1306 . . . 4  |-  ( B  e.  CC  ->  (
( 2  x.  B
)  /  2 )  =  B )
3029adantl 466 . . 3  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( 2  x.  B )  /  2
)  =  B )
3124, 27, 303eqtr3d 2483 . 2  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( A  +  B )  / 
2 )  -  (
( A  -  B
)  /  2 ) )  =  B )
3218, 31jca 532 1  |-  ( ( A  e.  CC  /\  B  e.  CC )  ->  ( ( ( ( A  +  B )  /  2 )  +  ( ( A  -  B )  /  2
) )  =  A  /\  ( ( ( A  +  B )  /  2 )  -  ( ( A  -  B )  /  2
) )  =  B ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    = wceq 1369    e. wcel 1756    =/= wne 2611  (class class class)co 6096   CCcc 9285   0cc0 9287    + caddc 9290    x. cmul 9292    - cmin 9600    / cdiv 9998   2c2 10376
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1591  ax-4 1602  ax-5 1670  ax-6 1708  ax-7 1728  ax-8 1758  ax-9 1760  ax-10 1775  ax-11 1780  ax-12 1792  ax-13 1943  ax-ext 2423  ax-sep 4418  ax-nul 4426  ax-pow 4475  ax-pr 4536  ax-un 6377  ax-resscn 9344  ax-1cn 9345  ax-icn 9346  ax-addcl 9347  ax-addrcl 9348  ax-mulcl 9349  ax-mulrcl 9350  ax-mulcom 9351  ax-addass 9352  ax-mulass 9353  ax-distr 9354  ax-i2m1 9355  ax-1ne0 9356  ax-1rid 9357  ax-rnegex 9358  ax-rrecex 9359  ax-cnre 9360  ax-pre-lttri 9361  ax-pre-lttrn 9362  ax-pre-ltadd 9363  ax-pre-mulgt0 9364
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1372  df-ex 1587  df-nf 1590  df-sb 1701  df-eu 2257  df-mo 2258  df-clab 2430  df-cleq 2436  df-clel 2439  df-nfc 2573  df-ne 2613  df-nel 2614  df-ral 2725  df-rex 2726  df-reu 2727  df-rmo 2728  df-rab 2729  df-v 2979  df-sbc 3192  df-csb 3294  df-dif 3336  df-un 3338  df-in 3340  df-ss 3347  df-nul 3643  df-if 3797  df-pw 3867  df-sn 3883  df-pr 3885  df-op 3889  df-uni 4097  df-br 4298  df-opab 4356  df-mpt 4357  df-id 4641  df-po 4646  df-so 4647  df-xp 4851  df-rel 4852  df-cnv 4853  df-co 4854  df-dm 4855  df-rn 4856  df-res 4857  df-ima 4858  df-iota 5386  df-fun 5425  df-fn 5426  df-f 5427  df-f1 5428  df-fo 5429  df-f1o 5430  df-fv 5431  df-riota 6057  df-ov 6099  df-oprab 6100  df-mpt2 6101  df-er 7106  df-en 7316  df-dom 7317  df-sdom 7318  df-pnf 9425  df-mnf 9426  df-xr 9427  df-ltxr 9428  df-le 9429  df-sub 9602  df-neg 9603  df-div 9999  df-2 10385
This theorem is referenced by:  addsin  13459  subsin  13460  addcos  13463  subcos  13464  ioo2bl  20375  dcubic  22246
  Copyright terms: Public domain W3C validator