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

Theorem divalglem0 12519
Description: Lemma for divalg 12529. (Contributed by Paul Chapman, 21-Mar-2011.)
Hypotheses
Ref Expression
divalglem0.1  |-  N  e.  ZZ
divalglem0.2  |-  D  e.  ZZ
Assertion
Ref Expression
divalglem0  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  ( D  ||  ( N  -  R )  ->  D  ||  ( N  -  ( R  -  ( K  x.  ( abs `  D ) ) ) ) ) )

Proof of Theorem divalglem0
StepHypRef Expression
1 divalglem0.2 . . . . . 6  |-  D  e.  ZZ
2 iddvds 12469 . . . . . . 7  |-  ( D  e.  ZZ  ->  D  ||  D )
3 dvdsabsb 12475 . . . . . . . 8  |-  ( ( D  e.  ZZ  /\  D  e.  ZZ )  ->  ( D  ||  D  <->  D 
||  ( abs `  D
) ) )
43anidms 629 . . . . . . 7  |-  ( D  e.  ZZ  ->  ( D  ||  D  <->  D  ||  ( abs `  D ) ) )
52, 4mpbid 203 . . . . . 6  |-  ( D  e.  ZZ  ->  D  ||  ( abs `  D
) )
61, 5ax-mp 10 . . . . 5  |-  D  ||  ( abs `  D )
7 nn0abscl 11727 . . . . . . . 8  |-  ( D  e.  ZZ  ->  ( abs `  D )  e. 
NN0 )
81, 7ax-mp 10 . . . . . . 7  |-  ( abs `  D )  e.  NN0
98nn0zi 9980 . . . . . 6  |-  ( abs `  D )  e.  ZZ
10 dvdsmultr2 12491 . . . . . 6  |-  ( ( D  e.  ZZ  /\  K  e.  ZZ  /\  ( abs `  D )  e.  ZZ )  ->  ( D  ||  ( abs `  D
)  ->  D  ||  ( K  x.  ( abs `  D ) ) ) )
111, 9, 10mp3an13 1273 . . . . 5  |-  ( K  e.  ZZ  ->  ( D  ||  ( abs `  D
)  ->  D  ||  ( K  x.  ( abs `  D ) ) ) )
126, 11mpi 18 . . . 4  |-  ( K  e.  ZZ  ->  D  ||  ( K  x.  ( abs `  D ) ) )
1312adantl 454 . . 3  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  D  ||  ( K  x.  ( abs `  D
) ) )
14 divalglem0.1 . . . . 5  |-  N  e.  ZZ
15 zsubcl 9993 . . . . 5  |-  ( ( N  e.  ZZ  /\  R  e.  ZZ )  ->  ( N  -  R
)  e.  ZZ )
1614, 15mpan 654 . . . 4  |-  ( R  e.  ZZ  ->  ( N  -  R )  e.  ZZ )
17 zmulcl 9998 . . . . 5  |-  ( ( K  e.  ZZ  /\  ( abs `  D )  e.  ZZ )  -> 
( K  x.  ( abs `  D ) )  e.  ZZ )
189, 17mpan2 655 . . . 4  |-  ( K  e.  ZZ  ->  ( K  x.  ( abs `  D ) )  e.  ZZ )
19 dvds2add 12487 . . . . 5  |-  ( ( D  e.  ZZ  /\  ( N  -  R
)  e.  ZZ  /\  ( K  x.  ( abs `  D ) )  e.  ZZ )  -> 
( ( D  ||  ( N  -  R
)  /\  D  ||  ( K  x.  ( abs `  D ) ) )  ->  D  ||  (
( N  -  R
)  +  ( K  x.  ( abs `  D
) ) ) ) )
201, 19mp3an1 1269 . . . 4  |-  ( ( ( N  -  R
)  e.  ZZ  /\  ( K  x.  ( abs `  D ) )  e.  ZZ )  -> 
( ( D  ||  ( N  -  R
)  /\  D  ||  ( K  x.  ( abs `  D ) ) )  ->  D  ||  (
( N  -  R
)  +  ( K  x.  ( abs `  D
) ) ) ) )
2116, 18, 20syl2an 465 . . 3  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  ( ( D  ||  ( N  -  R
)  /\  D  ||  ( K  x.  ( abs `  D ) ) )  ->  D  ||  (
( N  -  R
)  +  ( K  x.  ( abs `  D
) ) ) ) )
2213, 21mpan2d 658 . 2  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  ( D  ||  ( N  -  R )  ->  D  ||  ( ( N  -  R )  +  ( K  x.  ( abs `  D ) ) ) ) )
23 zcn 9961 . . . 4  |-  ( R  e.  ZZ  ->  R  e.  CC )
2418zcnd 10050 . . . 4  |-  ( K  e.  ZZ  ->  ( K  x.  ( abs `  D ) )  e.  CC )
25 zcn 9961 . . . . . 6  |-  ( N  e.  ZZ  ->  N  e.  CC )
2614, 25ax-mp 10 . . . . 5  |-  N  e.  CC
27 subsub 9010 . . . . 5  |-  ( ( N  e.  CC  /\  R  e.  CC  /\  ( K  x.  ( abs `  D ) )  e.  CC )  ->  ( N  -  ( R  -  ( K  x.  ( abs `  D ) ) ) )  =  ( ( N  -  R )  +  ( K  x.  ( abs `  D ) ) ) )
2826, 27mp3an1 1269 . . . 4  |-  ( ( R  e.  CC  /\  ( K  x.  ( abs `  D ) )  e.  CC )  -> 
( N  -  ( R  -  ( K  x.  ( abs `  D
) ) ) )  =  ( ( N  -  R )  +  ( K  x.  ( abs `  D ) ) ) )
2923, 24, 28syl2an 465 . . 3  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  ( N  -  ( R  -  ( K  x.  ( abs `  D
) ) ) )  =  ( ( N  -  R )  +  ( K  x.  ( abs `  D ) ) ) )
3029breq2d 3975 . 2  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  ( D  ||  ( N  -  ( R  -  ( K  x.  ( abs `  D ) ) ) )  <->  D  ||  (
( N  -  R
)  +  ( K  x.  ( abs `  D
) ) ) ) )
3122, 30sylibrd 227 1  |-  ( ( R  e.  ZZ  /\  K  e.  ZZ )  ->  ( D  ||  ( N  -  R )  ->  D  ||  ( N  -  ( R  -  ( K  x.  ( abs `  D ) ) ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    <-> wb 178    /\ wa 360    = wceq 1619    e. wcel 1621   class class class wbr 3963   ` cfv 4638  (class class class)co 5757   CCcc 8668    + caddc 8673    x. cmul 8675    - cmin 8970   NN0cn0 9897   ZZcz 9956   abscabs 11649    || cdivides 12458
This theorem is referenced by:  divalglem5  12523
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1927  ax-ext 2237  ax-sep 4081  ax-nul 4089  ax-pow 4126  ax-pr 4152  ax-un 4449  ax-cnex 8726  ax-resscn 8727  ax-1cn 8728  ax-icn 8729  ax-addcl 8730  ax-addrcl 8731  ax-mulcl 8732  ax-mulrcl 8733  ax-mulcom 8734  ax-addass 8735  ax-mulass 8736  ax-distr 8737  ax-i2m1 8738  ax-1ne0 8739  ax-1rid 8740  ax-rnegex 8741  ax-rrecex 8742  ax-cnre 8743  ax-pre-lttri 8744  ax-pre-lttrn 8745  ax-pre-ltadd 8746  ax-pre-mulgt0 8747  ax-pre-sup 8748
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1884  df-eu 2121  df-mo 2122  df-clab 2243  df-cleq 2249  df-clel 2252  df-nfc 2381  df-ne 2421  df-nel 2422  df-ral 2520  df-rex 2521  df-reu 2522  df-rab 2523  df-v 2742  df-sbc 2936  df-csb 3024  df-dif 3097  df-un 3099  df-in 3101  df-ss 3108  df-pss 3110  df-nul 3398  df-if 3507  df-pw 3568  df-sn 3587  df-pr 3588  df-tp 3589  df-op 3590  df-uni 3769  df-iun 3848  df-br 3964  df-opab 4018  df-mpt 4019  df-tr 4054  df-eprel 4242  df-id 4246  df-po 4251  df-so 4252  df-fr 4289  df-we 4291  df-ord 4332  df-on 4333  df-lim 4334  df-suc 4335  df-om 4594  df-xp 4640  df-rel 4641  df-cnv 4642  df-co 4643  df-dm 4644  df-rn 4645  df-res 4646  df-ima 4647  df-fun 4648  df-fn 4649  df-f 4650  df-f1 4651  df-fo 4652  df-f1o 4653  df-fv 4654  df-ov 5760  df-oprab 5761  df-mpt2 5762  df-2nd 6022  df-iota 6190  df-riota 6237  df-recs 6321  df-rdg 6356  df-er 6593  df-en 6797  df-dom 6798  df-sdom 6799  df-sup 7127  df-pnf 8802  df-mnf 8803  df-xr 8804  df-ltxr 8805  df-le 8806  df-sub 8972  df-neg 8973  df-div 9357  df-n 9680  df-2 9737  df-3 9738  df-n0 9898  df-z 9957  df-uz 10163  df-rp 10287  df-seq 10978  df-exp 11036  df-cj 11514  df-re 11515  df-im 11516  df-sqr 11650  df-abs 11651  df-divides 12459
  Copyright terms: Public domain W3C validator