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

Theorem divsubdiv 9656
Description: Subtraction of two ratios. (Contributed by Scott Fenton, 22-Apr-2014.) (Revised by Mario Carneiro, 2-May-2016.)
Assertion
Ref Expression
divsubdiv  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  -  ( B  /  D
) )  =  ( ( ( A  x.  D )  -  ( B  x.  C )
)  /  ( C  x.  D ) ) )

Proof of Theorem divsubdiv
StepHypRef Expression
1 negcl 9232 . . . 4  |-  ( B  e.  CC  ->  -u B  e.  CC )
2 divadddiv 9655 . . . 4  |-  ( ( ( A  e.  CC  /\  -u B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  +  ( -u B  /  D ) )  =  ( ( ( A  x.  D )  +  ( -u B  x.  C ) )  / 
( C  x.  D
) ) )
31, 2sylanl2 633 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  +  ( -u B  /  D ) )  =  ( ( ( A  x.  D )  +  ( -u B  x.  C ) )  / 
( C  x.  D
) ) )
4 simplr 732 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  B  e.  CC )
5 simprrl 741 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  D  e.  CC )
6 simprrr 742 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  D  =/=  0
)
7 divneg 9635 . . . . . 6  |-  ( ( B  e.  CC  /\  D  e.  CC  /\  D  =/=  0 )  ->  -u ( B  /  D )  =  ( -u B  /  D ) )
84, 5, 6, 7syl3anc 1184 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  -u ( B  /  D )  =  (
-u B  /  D
) )
98oveq2d 6030 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  + 
-u ( B  /  D ) )  =  ( ( A  /  C )  +  (
-u B  /  D
) ) )
10 simpll 731 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  A  e.  CC )
11 simprll 739 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  C  e.  CC )
12 simprlr 740 . . . . . 6  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  C  =/=  0
)
13 divcl 9610 . . . . . 6  |-  ( ( A  e.  CC  /\  C  e.  CC  /\  C  =/=  0 )  ->  ( A  /  C )  e.  CC )
1410, 11, 12, 13syl3anc 1184 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( A  /  C )  e.  CC )
15 divcl 9610 . . . . . 6  |-  ( ( B  e.  CC  /\  D  e.  CC  /\  D  =/=  0 )  ->  ( B  /  D )  e.  CC )
164, 5, 6, 15syl3anc 1184 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( B  /  D )  e.  CC )
1714, 16negsubd 9343 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  + 
-u ( B  /  D ) )  =  ( ( A  /  C )  -  ( B  /  D ) ) )
189, 17eqtr3d 2415 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  +  ( -u B  /  D ) )  =  ( ( A  /  C )  -  ( B  /  D ) ) )
193, 18eqtr3d 2415 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( ( A  x.  D )  +  ( -u B  x.  C ) )  / 
( C  x.  D
) )  =  ( ( A  /  C
)  -  ( B  /  D ) ) )
204, 11mulneg1d 9412 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( -u B  x.  C )  =  -u ( B  x.  C
) )
2120oveq2d 6030 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  x.  D )  +  ( -u B  x.  C ) )  =  ( ( A  x.  D )  +  -u ( B  x.  C
) ) )
2210, 5mulcld 9035 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( A  x.  D )  e.  CC )
234, 11mulcld 9035 . . . . 5  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( B  x.  C )  e.  CC )
2422, 23negsubd 9343 . . . 4  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  x.  D )  + 
-u ( B  x.  C ) )  =  ( ( A  x.  D )  -  ( B  x.  C )
) )
2521, 24eqtrd 2413 . . 3  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  x.  D )  +  ( -u B  x.  C ) )  =  ( ( A  x.  D )  -  ( B  x.  C )
) )
2625oveq1d 6029 . 2  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( ( A  x.  D )  +  ( -u B  x.  C ) )  / 
( C  x.  D
) )  =  ( ( ( A  x.  D )  -  ( B  x.  C )
)  /  ( C  x.  D ) ) )
2719, 26eqtr3d 2415 1  |-  ( ( ( A  e.  CC  /\  B  e.  CC )  /\  ( ( C  e.  CC  /\  C  =/=  0 )  /\  ( D  e.  CC  /\  D  =/=  0 ) ) )  ->  ( ( A  /  C )  -  ( B  /  D
) )  =  ( ( ( A  x.  D )  -  ( B  x.  C )
)  /  ( C  x.  D ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1649    e. wcel 1717    =/= wne 2544  (class class class)co 6014   CCcc 8915   0cc0 8917    + caddc 8920    x. cmul 8922    - cmin 9217   -ucneg 9218    / cdiv 9603
This theorem is referenced by:  divsubdivd  9761  rplogsumlem1  21039
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2362  ax-sep 4265  ax-nul 4273  ax-pow 4312  ax-pr 4338  ax-un 4635  ax-resscn 8974  ax-1cn 8975  ax-icn 8976  ax-addcl 8977  ax-addrcl 8978  ax-mulcl 8979  ax-mulrcl 8980  ax-mulcom 8981  ax-addass 8982  ax-mulass 8983  ax-distr 8984  ax-i2m1 8985  ax-1ne0 8986  ax-1rid 8987  ax-rnegex 8988  ax-rrecex 8989  ax-cnre 8990  ax-pre-lttri 8991  ax-pre-lttrn 8992  ax-pre-ltadd 8993  ax-pre-mulgt0 8994
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-eu 2236  df-mo 2237  df-clab 2368  df-cleq 2374  df-clel 2377  df-nfc 2506  df-ne 2546  df-nel 2547  df-ral 2648  df-rex 2649  df-reu 2650  df-rmo 2651  df-rab 2652  df-v 2895  df-sbc 3099  df-csb 3189  df-dif 3260  df-un 3262  df-in 3264  df-ss 3271  df-nul 3566  df-if 3677  df-pw 3738  df-sn 3757  df-pr 3758  df-op 3760  df-uni 3952  df-br 4148  df-opab 4202  df-mpt 4203  df-id 4433  df-po 4438  df-so 4439  df-xp 4818  df-rel 4819  df-cnv 4820  df-co 4821  df-dm 4822  df-rn 4823  df-res 4824  df-ima 4825  df-iota 5352  df-fun 5390  df-fn 5391  df-f 5392  df-f1 5393  df-fo 5394  df-f1o 5395  df-fv 5396  df-ov 6017  df-oprab 6018  df-mpt2 6019  df-riota 6479  df-er 6835  df-en 7040  df-dom 7041  df-sdom 7042  df-pnf 9049  df-mnf 9050  df-xr 9051  df-ltxr 9052  df-le 9053  df-sub 9219  df-neg 9220  df-div 9604
  Copyright terms: Public domain W3C validator