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

Theorem gcdmultiple 12035
Description: The GCD of a multiple of a number is the number itself. (Contributed by Scott Fenton, 12-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
gcdmultiple  |-  ( ( M  e.  NN  /\  N  e.  NN )  ->  ( M  gcd  ( M  x.  N )
)  =  M )

Proof of Theorem gcdmultiple
Dummy variables  k  n are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 5896 . . . . . 6  |-  ( k  =  1  ->  ( M  x.  k )  =  ( M  x.  1 ) )
21oveq2d 5904 . . . . 5  |-  ( k  =  1  ->  ( M  gcd  ( M  x.  k ) )  =  ( M  gcd  ( M  x.  1 ) ) )
32eqeq1d 2196 . . . 4  |-  ( k  =  1  ->  (
( M  gcd  ( M  x.  k )
)  =  M  <->  ( M  gcd  ( M  x.  1 ) )  =  M ) )
43imbi2d 230 . . 3  |-  ( k  =  1  ->  (
( M  e.  NN  ->  ( M  gcd  ( M  x.  k )
)  =  M )  <-> 
( M  e.  NN  ->  ( M  gcd  ( M  x.  1 ) )  =  M ) ) )
5 oveq2 5896 . . . . . 6  |-  ( k  =  n  ->  ( M  x.  k )  =  ( M  x.  n ) )
65oveq2d 5904 . . . . 5  |-  ( k  =  n  ->  ( M  gcd  ( M  x.  k ) )  =  ( M  gcd  ( M  x.  n )
) )
76eqeq1d 2196 . . . 4  |-  ( k  =  n  ->  (
( M  gcd  ( M  x.  k )
)  =  M  <->  ( M  gcd  ( M  x.  n
) )  =  M ) )
87imbi2d 230 . . 3  |-  ( k  =  n  ->  (
( M  e.  NN  ->  ( M  gcd  ( M  x.  k )
)  =  M )  <-> 
( M  e.  NN  ->  ( M  gcd  ( M  x.  n )
)  =  M ) ) )
9 oveq2 5896 . . . . . 6  |-  ( k  =  ( n  + 
1 )  ->  ( M  x.  k )  =  ( M  x.  ( n  +  1
) ) )
109oveq2d 5904 . . . . 5  |-  ( k  =  ( n  + 
1 )  ->  ( M  gcd  ( M  x.  k ) )  =  ( M  gcd  ( M  x.  ( n  +  1 ) ) ) )
1110eqeq1d 2196 . . . 4  |-  ( k  =  ( n  + 
1 )  ->  (
( M  gcd  ( M  x.  k )
)  =  M  <->  ( M  gcd  ( M  x.  (
n  +  1 ) ) )  =  M ) )
1211imbi2d 230 . . 3  |-  ( k  =  ( n  + 
1 )  ->  (
( M  e.  NN  ->  ( M  gcd  ( M  x.  k )
)  =  M )  <-> 
( M  e.  NN  ->  ( M  gcd  ( M  x.  ( n  +  1 ) ) )  =  M ) ) )
13 oveq2 5896 . . . . . 6  |-  ( k  =  N  ->  ( M  x.  k )  =  ( M  x.  N ) )
1413oveq2d 5904 . . . . 5  |-  ( k  =  N  ->  ( M  gcd  ( M  x.  k ) )  =  ( M  gcd  ( M  x.  N )
) )
1514eqeq1d 2196 . . . 4  |-  ( k  =  N  ->  (
( M  gcd  ( M  x.  k )
)  =  M  <->  ( M  gcd  ( M  x.  N
) )  =  M ) )
1615imbi2d 230 . . 3  |-  ( k  =  N  ->  (
( M  e.  NN  ->  ( M  gcd  ( M  x.  k )
)  =  M )  <-> 
( M  e.  NN  ->  ( M  gcd  ( M  x.  N )
)  =  M ) ) )
17 nncn 8941 . . . . . 6  |-  ( M  e.  NN  ->  M  e.  CC )
1817mulridd 7988 . . . . 5  |-  ( M  e.  NN  ->  ( M  x.  1 )  =  M )
1918oveq2d 5904 . . . 4  |-  ( M  e.  NN  ->  ( M  gcd  ( M  x.  1 ) )  =  ( M  gcd  M
) )
20 nnz 9286 . . . . . 6  |-  ( M  e.  NN  ->  M  e.  ZZ )
21 gcdid 12001 . . . . . 6  |-  ( M  e.  ZZ  ->  ( M  gcd  M )  =  ( abs `  M
) )
2220, 21syl 14 . . . . 5  |-  ( M  e.  NN  ->  ( M  gcd  M )  =  ( abs `  M
) )
23 nnre 8940 . . . . . 6  |-  ( M  e.  NN  ->  M  e.  RR )
24 nnnn0 9197 . . . . . . 7  |-  ( M  e.  NN  ->  M  e.  NN0 )
2524nn0ge0d 9246 . . . . . 6  |-  ( M  e.  NN  ->  0  <_  M )
2623, 25absidd 11190 . . . . 5  |-  ( M  e.  NN  ->  ( abs `  M )  =  M )
2722, 26eqtrd 2220 . . . 4  |-  ( M  e.  NN  ->  ( M  gcd  M )  =  M )
2819, 27eqtrd 2220 . . 3  |-  ( M  e.  NN  ->  ( M  gcd  ( M  x.  1 ) )  =  M )
2920adantr 276 . . . . . . . . 9  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  M  e.  ZZ )
30 nnz 9286 . . . . . . . . . 10  |-  ( n  e.  NN  ->  n  e.  ZZ )
31 zmulcl 9320 . . . . . . . . . 10  |-  ( ( M  e.  ZZ  /\  n  e.  ZZ )  ->  ( M  x.  n
)  e.  ZZ )
3220, 30, 31syl2an 289 . . . . . . . . 9  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( M  x.  n
)  e.  ZZ )
33 1z 9293 . . . . . . . . . 10  |-  1  e.  ZZ
34 gcdaddm 11999 . . . . . . . . . 10  |-  ( ( 1  e.  ZZ  /\  M  e.  ZZ  /\  ( M  x.  n )  e.  ZZ )  ->  ( M  gcd  ( M  x.  n ) )  =  ( M  gcd  (
( M  x.  n
)  +  ( 1  x.  M ) ) ) )
3533, 34mp3an1 1334 . . . . . . . . 9  |-  ( ( M  e.  ZZ  /\  ( M  x.  n
)  e.  ZZ )  ->  ( M  gcd  ( M  x.  n
) )  =  ( M  gcd  ( ( M  x.  n )  +  ( 1  x.  M ) ) ) )
3629, 32, 35syl2anc 411 . . . . . . . 8  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( M  gcd  ( M  x.  n )
)  =  ( M  gcd  ( ( M  x.  n )  +  ( 1  x.  M
) ) ) )
37 nncn 8941 . . . . . . . . . 10  |-  ( n  e.  NN  ->  n  e.  CC )
38 ax-1cn 7918 . . . . . . . . . . . 12  |-  1  e.  CC
39 adddi 7957 . . . . . . . . . . . 12  |-  ( ( M  e.  CC  /\  n  e.  CC  /\  1  e.  CC )  ->  ( M  x.  ( n  +  1 ) )  =  ( ( M  x.  n )  +  ( M  x.  1 ) ) )
4038, 39mp3an3 1336 . . . . . . . . . . 11  |-  ( ( M  e.  CC  /\  n  e.  CC )  ->  ( M  x.  (
n  +  1 ) )  =  ( ( M  x.  n )  +  ( M  x.  1 ) ) )
41 mulcom 7954 . . . . . . . . . . . . . 14  |-  ( ( M  e.  CC  /\  1  e.  CC )  ->  ( M  x.  1 )  =  ( 1  x.  M ) )
4238, 41mpan2 425 . . . . . . . . . . . . 13  |-  ( M  e.  CC  ->  ( M  x.  1 )  =  ( 1  x.  M ) )
4342adantr 276 . . . . . . . . . . . 12  |-  ( ( M  e.  CC  /\  n  e.  CC )  ->  ( M  x.  1 )  =  ( 1  x.  M ) )
4443oveq2d 5904 . . . . . . . . . . 11  |-  ( ( M  e.  CC  /\  n  e.  CC )  ->  ( ( M  x.  n )  +  ( M  x.  1 ) )  =  ( ( M  x.  n )  +  ( 1  x.  M ) ) )
4540, 44eqtrd 2220 . . . . . . . . . 10  |-  ( ( M  e.  CC  /\  n  e.  CC )  ->  ( M  x.  (
n  +  1 ) )  =  ( ( M  x.  n )  +  ( 1  x.  M ) ) )
4617, 37, 45syl2an 289 . . . . . . . . 9  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( M  x.  (
n  +  1 ) )  =  ( ( M  x.  n )  +  ( 1  x.  M ) ) )
4746oveq2d 5904 . . . . . . . 8  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( M  gcd  ( M  x.  ( n  +  1 ) ) )  =  ( M  gcd  ( ( M  x.  n )  +  ( 1  x.  M
) ) ) )
4836, 47eqtr4d 2223 . . . . . . 7  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( M  gcd  ( M  x.  n )
)  =  ( M  gcd  ( M  x.  ( n  +  1
) ) ) )
4948eqeq1d 2196 . . . . . 6  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( ( M  gcd  ( M  x.  n
) )  =  M  <-> 
( M  gcd  ( M  x.  ( n  +  1 ) ) )  =  M ) )
5049biimpd 144 . . . . 5  |-  ( ( M  e.  NN  /\  n  e.  NN )  ->  ( ( M  gcd  ( M  x.  n
) )  =  M  ->  ( M  gcd  ( M  x.  (
n  +  1 ) ) )  =  M ) )
5150expcom 116 . . . 4  |-  ( n  e.  NN  ->  ( M  e.  NN  ->  ( ( M  gcd  ( M  x.  n )
)  =  M  -> 
( M  gcd  ( M  x.  ( n  +  1 ) ) )  =  M ) ) )
5251a2d 26 . . 3  |-  ( n  e.  NN  ->  (
( M  e.  NN  ->  ( M  gcd  ( M  x.  n )
)  =  M )  ->  ( M  e.  NN  ->  ( M  gcd  ( M  x.  (
n  +  1 ) ) )  =  M ) ) )
534, 8, 12, 16, 28, 52nnind 8949 . 2  |-  ( N  e.  NN  ->  ( M  e.  NN  ->  ( M  gcd  ( M  x.  N ) )  =  M ) )
5453impcom 125 1  |-  ( ( M  e.  NN  /\  N  e.  NN )  ->  ( M  gcd  ( M  x.  N )
)  =  M )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 104    = wceq 1363    e. wcel 2158   ` cfv 5228  (class class class)co 5888   CCcc 7823   1c1 7826    + caddc 7828    x. cmul 7830   NNcn 8933   ZZcz 9267   abscabs 11020    gcd cgcd 11957
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 615  ax-in2 616  ax-io 710  ax-5 1457  ax-7 1458  ax-gen 1459  ax-ie1 1503  ax-ie2 1504  ax-8 1514  ax-10 1515  ax-11 1516  ax-i12 1517  ax-bndl 1519  ax-4 1520  ax-17 1536  ax-i9 1540  ax-ial 1544  ax-i5r 1545  ax-13 2160  ax-14 2161  ax-ext 2169  ax-coll 4130  ax-sep 4133  ax-nul 4141  ax-pow 4186  ax-pr 4221  ax-un 4445  ax-setind 4548  ax-iinf 4599  ax-cnex 7916  ax-resscn 7917  ax-1cn 7918  ax-1re 7919  ax-icn 7920  ax-addcl 7921  ax-addrcl 7922  ax-mulcl 7923  ax-mulrcl 7924  ax-addcom 7925  ax-mulcom 7926  ax-addass 7927  ax-mulass 7928  ax-distr 7929  ax-i2m1 7930  ax-0lt1 7931  ax-1rid 7932  ax-0id 7933  ax-rnegex 7934  ax-precex 7935  ax-cnre 7936  ax-pre-ltirr 7937  ax-pre-ltwlin 7938  ax-pre-lttrn 7939  ax-pre-apti 7940  ax-pre-ltadd 7941  ax-pre-mulgt0 7942  ax-pre-mulext 7943  ax-arch 7944  ax-caucvg 7945
This theorem depends on definitions:  df-bi 117  df-stab 832  df-dc 836  df-3or 980  df-3an 981  df-tru 1366  df-fal 1369  df-nf 1471  df-sb 1773  df-eu 2039  df-mo 2040  df-clab 2174  df-cleq 2180  df-clel 2183  df-nfc 2318  df-ne 2358  df-nel 2453  df-ral 2470  df-rex 2471  df-reu 2472  df-rmo 2473  df-rab 2474  df-v 2751  df-sbc 2975  df-csb 3070  df-dif 3143  df-un 3145  df-in 3147  df-ss 3154  df-nul 3435  df-if 3547  df-pw 3589  df-sn 3610  df-pr 3611  df-op 3613  df-uni 3822  df-int 3857  df-iun 3900  df-br 4016  df-opab 4077  df-mpt 4078  df-tr 4114  df-id 4305  df-po 4308  df-iso 4309  df-iord 4378  df-on 4380  df-ilim 4381  df-suc 4383  df-iom 4602  df-xp 4644  df-rel 4645  df-cnv 4646  df-co 4647  df-dm 4648  df-rn 4649  df-res 4650  df-ima 4651  df-iota 5190  df-fun 5230  df-fn 5231  df-f 5232  df-f1 5233  df-fo 5234  df-f1o 5235  df-fv 5236  df-riota 5844  df-ov 5891  df-oprab 5892  df-mpo 5893  df-1st 6155  df-2nd 6156  df-recs 6320  df-frec 6406  df-sup 6997  df-pnf 8008  df-mnf 8009  df-xr 8010  df-ltxr 8011  df-le 8012  df-sub 8144  df-neg 8145  df-reap 8546  df-ap 8553  df-div 8644  df-inn 8934  df-2 8992  df-3 8993  df-4 8994  df-n0 9191  df-z 9268  df-uz 9543  df-q 9634  df-rp 9668  df-fz 10023  df-fzo 10157  df-fl 10284  df-mod 10337  df-seqfrec 10460  df-exp 10534  df-cj 10865  df-re 10866  df-im 10867  df-rsqrt 11021  df-abs 11022  df-dvds 11809  df-gcd 11958
This theorem is referenced by:  gcdmultiplez  12036  rpmulgcd  12041
  Copyright terms: Public domain W3C validator