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

Theorem absmulgcd 13006
Description: Distribute absolute value of multiplication over gcd. (Contributed by Paul Chapman, 22-Jun-2011.)
Assertion
Ref Expression
absmulgcd  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( K  x.  M
)  gcd  ( K  x.  N ) )  =  ( abs `  ( K  x.  ( M  gcd  N ) ) ) )

Proof of Theorem absmulgcd
StepHypRef Expression
1 gcdcl 12976 . . . . 5  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( M  gcd  N
)  e.  NN0 )
2 nn0re 10190 . . . . . 6  |-  ( ( M  gcd  N )  e.  NN0  ->  ( M  gcd  N )  e.  RR )
3 nn0ge0 10207 . . . . . 6  |-  ( ( M  gcd  N )  e.  NN0  ->  0  <_ 
( M  gcd  N
) )
42, 3absidd 12184 . . . . 5  |-  ( ( M  gcd  N )  e.  NN0  ->  ( abs `  ( M  gcd  N
) )  =  ( M  gcd  N ) )
51, 4syl 16 . . . 4  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( abs `  ( M  gcd  N ) )  =  ( M  gcd  N ) )
65oveq2d 6060 . . 3  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( ( abs `  K
)  x.  ( abs `  ( M  gcd  N
) ) )  =  ( ( abs `  K
)  x.  ( M  gcd  N ) ) )
763adant1 975 . 2  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( abs `  K
)  x.  ( abs `  ( M  gcd  N
) ) )  =  ( ( abs `  K
)  x.  ( M  gcd  N ) ) )
8 zcn 10247 . . . 4  |-  ( K  e.  ZZ  ->  K  e.  CC )
91nn0cnd 10236 . . . 4  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( M  gcd  N
)  e.  CC )
10 absmul 12058 . . . 4  |-  ( ( K  e.  CC  /\  ( M  gcd  N )  e.  CC )  -> 
( abs `  ( K  x.  ( M  gcd  N ) ) )  =  ( ( abs `  K )  x.  ( abs `  ( M  gcd  N ) ) ) )
118, 9, 10syl2an 464 . . 3  |-  ( ( K  e.  ZZ  /\  ( M  e.  ZZ  /\  N  e.  ZZ ) )  ->  ( abs `  ( K  x.  ( M  gcd  N ) ) )  =  ( ( abs `  K )  x.  ( abs `  ( M  gcd  N ) ) ) )
12113impb 1149 . 2  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  ( abs `  ( K  x.  ( M  gcd  N ) ) )  =  ( ( abs `  K
)  x.  ( abs `  ( M  gcd  N
) ) ) )
13 zcn 10247 . . . . 5  |-  ( M  e.  ZZ  ->  M  e.  CC )
14 zcn 10247 . . . . 5  |-  ( N  e.  ZZ  ->  N  e.  CC )
15 absmul 12058 . . . . . . 7  |-  ( ( K  e.  CC  /\  M  e.  CC )  ->  ( abs `  ( K  x.  M )
)  =  ( ( abs `  K )  x.  ( abs `  M
) ) )
16 absmul 12058 . . . . . . 7  |-  ( ( K  e.  CC  /\  N  e.  CC )  ->  ( abs `  ( K  x.  N )
)  =  ( ( abs `  K )  x.  ( abs `  N
) ) )
1715, 16oveqan12d 6063 . . . . . 6  |-  ( ( ( K  e.  CC  /\  M  e.  CC )  /\  ( K  e.  CC  /\  N  e.  CC ) )  -> 
( ( abs `  ( K  x.  M )
)  gcd  ( abs `  ( K  x.  N
) ) )  =  ( ( ( abs `  K )  x.  ( abs `  M ) )  gcd  ( ( abs `  K )  x.  ( abs `  N ) ) ) )
18173impdi 1239 . . . . 5  |-  ( ( K  e.  CC  /\  M  e.  CC  /\  N  e.  CC )  ->  (
( abs `  ( K  x.  M )
)  gcd  ( abs `  ( K  x.  N
) ) )  =  ( ( ( abs `  K )  x.  ( abs `  M ) )  gcd  ( ( abs `  K )  x.  ( abs `  N ) ) ) )
198, 13, 14, 18syl3an 1226 . . . 4  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( abs `  ( K  x.  M )
)  gcd  ( abs `  ( K  x.  N
) ) )  =  ( ( ( abs `  K )  x.  ( abs `  M ) )  gcd  ( ( abs `  K )  x.  ( abs `  N ) ) ) )
20 zmulcl 10284 . . . . . 6  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ )  ->  ( K  x.  M
)  e.  ZZ )
21 zmulcl 10284 . . . . . 6  |-  ( ( K  e.  ZZ  /\  N  e.  ZZ )  ->  ( K  x.  N
)  e.  ZZ )
22 gcdabs 12992 . . . . . 6  |-  ( ( ( K  x.  M
)  e.  ZZ  /\  ( K  x.  N
)  e.  ZZ )  ->  ( ( abs `  ( K  x.  M
) )  gcd  ( abs `  ( K  x.  N ) ) )  =  ( ( K  x.  M )  gcd  ( K  x.  N
) ) )
2320, 21, 22syl2an 464 . . . . 5  |-  ( ( ( K  e.  ZZ  /\  M  e.  ZZ )  /\  ( K  e.  ZZ  /\  N  e.  ZZ ) )  -> 
( ( abs `  ( K  x.  M )
)  gcd  ( abs `  ( K  x.  N
) ) )  =  ( ( K  x.  M )  gcd  ( K  x.  N )
) )
24233impdi 1239 . . . 4  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( abs `  ( K  x.  M )
)  gcd  ( abs `  ( K  x.  N
) ) )  =  ( ( K  x.  M )  gcd  ( K  x.  N )
) )
25 nn0abscl 12076 . . . . 5  |-  ( K  e.  ZZ  ->  ( abs `  K )  e. 
NN0 )
26 nn0abscl 12076 . . . . . 6  |-  ( M  e.  ZZ  ->  ( abs `  M )  e. 
NN0 )
2726nn0zd 10333 . . . . 5  |-  ( M  e.  ZZ  ->  ( abs `  M )  e.  ZZ )
28 nn0abscl 12076 . . . . . 6  |-  ( N  e.  ZZ  ->  ( abs `  N )  e. 
NN0 )
2928nn0zd 10333 . . . . 5  |-  ( N  e.  ZZ  ->  ( abs `  N )  e.  ZZ )
30 mulgcd 13005 . . . . 5  |-  ( ( ( abs `  K
)  e.  NN0  /\  ( abs `  M )  e.  ZZ  /\  ( abs `  N )  e.  ZZ )  ->  (
( ( abs `  K
)  x.  ( abs `  M ) )  gcd  ( ( abs `  K
)  x.  ( abs `  N ) ) )  =  ( ( abs `  K )  x.  (
( abs `  M
)  gcd  ( abs `  N ) ) ) )
3125, 27, 29, 30syl3an 1226 . . . 4  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( ( abs `  K
)  x.  ( abs `  M ) )  gcd  ( ( abs `  K
)  x.  ( abs `  N ) ) )  =  ( ( abs `  K )  x.  (
( abs `  M
)  gcd  ( abs `  N ) ) ) )
3219, 24, 313eqtr3d 2448 . . 3  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( K  x.  M
)  gcd  ( K  x.  N ) )  =  ( ( abs `  K
)  x.  ( ( abs `  M )  gcd  ( abs `  N
) ) ) )
33 gcdabs 12992 . . . . 5  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( ( abs `  M
)  gcd  ( abs `  N ) )  =  ( M  gcd  N
) )
34333adant1 975 . . . 4  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( abs `  M
)  gcd  ( abs `  N ) )  =  ( M  gcd  N
) )
3534oveq2d 6060 . . 3  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( abs `  K
)  x.  ( ( abs `  M )  gcd  ( abs `  N
) ) )  =  ( ( abs `  K
)  x.  ( M  gcd  N ) ) )
3632, 35eqtrd 2440 . 2  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( K  x.  M
)  gcd  ( K  x.  N ) )  =  ( ( abs `  K
)  x.  ( M  gcd  N ) ) )
377, 12, 363eqtr4rd 2451 1  |-  ( ( K  e.  ZZ  /\  M  e.  ZZ  /\  N  e.  ZZ )  ->  (
( K  x.  M
)  gcd  ( K  x.  N ) )  =  ( abs `  ( K  x.  ( M  gcd  N ) ) ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1721   ` cfv 5417  (class class class)co 6044   CCcc 8948    x. cmul 8955   NN0cn0 10181   ZZcz 10242   abscabs 11998    gcd cgcd 12965
This theorem is referenced by:  coprmdvds  13061
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 1662  ax-8 1683  ax-13 1723  ax-14 1725  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2389  ax-sep 4294  ax-nul 4302  ax-pow 4341  ax-pr 4367  ax-un 4664  ax-cnex 9006  ax-resscn 9007  ax-1cn 9008  ax-icn 9009  ax-addcl 9010  ax-addrcl 9011  ax-mulcl 9012  ax-mulrcl 9013  ax-mulcom 9014  ax-addass 9015  ax-mulass 9016  ax-distr 9017  ax-i2m1 9018  ax-1ne0 9019  ax-1rid 9020  ax-rnegex 9021  ax-rrecex 9022  ax-cnre 9023  ax-pre-lttri 9024  ax-pre-lttrn 9025  ax-pre-ltadd 9026  ax-pre-mulgt0 9027  ax-pre-sup 9028
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 2262  df-mo 2263  df-clab 2395  df-cleq 2401  df-clel 2404  df-nfc 2533  df-ne 2573  df-nel 2574  df-ral 2675  df-rex 2676  df-reu 2677  df-rmo 2678  df-rab 2679  df-v 2922  df-sbc 3126  df-csb 3216  df-dif 3287  df-un 3289  df-in 3291  df-ss 3298  df-pss 3300  df-nul 3593  df-if 3704  df-pw 3765  df-sn 3784  df-pr 3785  df-tp 3786  df-op 3787  df-uni 3980  df-iun 4059  df-br 4177  df-opab 4231  df-mpt 4232  df-tr 4267  df-eprel 4458  df-id 4462  df-po 4467  df-so 4468  df-fr 4505  df-we 4507  df-ord 4548  df-on 4549  df-lim 4550  df-suc 4551  df-om 4809  df-xp 4847  df-rel 4848  df-cnv 4849  df-co 4850  df-dm 4851  df-rn 4852  df-res 4853  df-ima 4854  df-iota 5381  df-fun 5419  df-fn 5420  df-f 5421  df-f1 5422  df-fo 5423  df-f1o 5424  df-fv 5425  df-ov 6047  df-oprab 6048  df-mpt2 6049  df-2nd 6313  df-riota 6512  df-recs 6596  df-rdg 6631  df-er 6868  df-en 7073  df-dom 7074  df-sdom 7075  df-sup 7408  df-pnf 9082  df-mnf 9083  df-xr 9084  df-ltxr 9085  df-le 9086  df-sub 9253  df-neg 9254  df-div 9638  df-nn 9961  df-2 10018  df-3 10019  df-n0 10182  df-z 10243  df-uz 10449  df-rp 10573  df-fl 11161  df-mod 11210  df-seq 11283  df-exp 11342  df-cj 11863  df-re 11864  df-im 11865  df-sqr 11999  df-abs 12000  df-dvds 12812  df-gcd 12966
  Copyright terms: Public domain W3C validator