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

Theorem rplpwr 14066
Description: If  A and  B are relatively prime, then so are  A ^ N and  B. (Contributed by Scott Fenton, 12-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
rplpwr  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  N  e.  NN )  ->  (
( A  gcd  B
)  =  1  -> 
( ( A ^ N )  gcd  B
)  =  1 ) )

Proof of Theorem rplpwr
Dummy variables  n  k are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 oveq2 6285 . . . . . . . 8  |-  ( k  =  1  ->  ( A ^ k )  =  ( A ^ 1 ) )
21oveq1d 6292 . . . . . . 7  |-  ( k  =  1  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ 1 )  gcd 
B ) )
32eqeq1d 2443 . . . . . 6  |-  ( k  =  1  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ 1 )  gcd  B )  =  1 ) )
43imbi2d 316 . . . . 5  |-  ( k  =  1  ->  (
( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ k
)  gcd  B )  =  1 )  <->  ( (
( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  ( ( A ^ 1 )  gcd 
B )  =  1 ) ) )
5 oveq2 6285 . . . . . . . 8  |-  ( k  =  n  ->  ( A ^ k )  =  ( A ^ n
) )
65oveq1d 6292 . . . . . . 7  |-  ( k  =  n  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ n )  gcd 
B ) )
76eqeq1d 2443 . . . . . 6  |-  ( k  =  n  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ n
)  gcd  B )  =  1 ) )
87imbi2d 316 . . . . 5  |-  ( k  =  n  ->  (
( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ k
)  gcd  B )  =  1 )  <->  ( (
( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  ( ( A ^ n )  gcd 
B )  =  1 ) ) )
9 oveq2 6285 . . . . . . . 8  |-  ( k  =  ( n  + 
1 )  ->  ( A ^ k )  =  ( A ^ (
n  +  1 ) ) )
109oveq1d 6292 . . . . . . 7  |-  ( k  =  ( n  + 
1 )  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ ( n  + 
1 ) )  gcd 
B ) )
1110eqeq1d 2443 . . . . . 6  |-  ( k  =  ( n  + 
1 )  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ (
n  +  1 ) )  gcd  B )  =  1 ) )
1211imbi2d 316 . . . . 5  |-  ( k  =  ( n  + 
1 )  ->  (
( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ k
)  gcd  B )  =  1 )  <->  ( (
( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  ( ( A ^ ( n  + 
1 ) )  gcd 
B )  =  1 ) ) )
13 oveq2 6285 . . . . . . . 8  |-  ( k  =  N  ->  ( A ^ k )  =  ( A ^ N
) )
1413oveq1d 6292 . . . . . . 7  |-  ( k  =  N  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ N )  gcd 
B ) )
1514eqeq1d 2443 . . . . . 6  |-  ( k  =  N  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ N
)  gcd  B )  =  1 ) )
1615imbi2d 316 . . . . 5  |-  ( k  =  N  ->  (
( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ k
)  gcd  B )  =  1 )  <->  ( (
( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  ( ( A ^ N )  gcd 
B )  =  1 ) ) )
17 nncn 10545 . . . . . . . . . 10  |-  ( A  e.  NN  ->  A  e.  CC )
1817exp1d 12279 . . . . . . . . 9  |-  ( A  e.  NN  ->  ( A ^ 1 )  =  A )
1918oveq1d 6292 . . . . . . . 8  |-  ( A  e.  NN  ->  (
( A ^ 1 )  gcd  B )  =  ( A  gcd  B ) )
2019adantr 465 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A ^
1 )  gcd  B
)  =  ( A  gcd  B ) )
2120eqeq1d 2443 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( ( A ^ 1 )  gcd 
B )  =  1  <-> 
( A  gcd  B
)  =  1 ) )
2221biimpar 485 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  ( ( A ^ 1 )  gcd 
B )  =  1 )
23 df-3an 974 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  <->  ( ( A  e.  NN  /\  B  e.  NN )  /\  n  e.  NN ) )
24 simpl1 998 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  A  e.  NN )
2524nncnd 10553 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  A  e.  CC )
26 simpl3 1000 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  n  e.  NN )
2726nnnn0d 10853 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  n  e.  NN0 )
2825, 27expp1d 12285 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  =  ( ( A ^ n
)  x.  A ) )
29 simp1 995 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  A  e.  NN )
30 nnnn0 10803 . . . . . . . . . . . . . . . . . . . . 21  |-  ( n  e.  NN  ->  n  e.  NN0 )
31303ad2ant3 1018 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  n  e.  NN0 )
3229, 31nnexpcld 12305 . . . . . . . . . . . . . . . . . . 19  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  ( A ^ n )  e.  NN )
3332nnzd 10968 . . . . . . . . . . . . . . . . . 18  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  ( A ^ n )  e.  ZZ )
3433adantr 465 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
n )  e.  ZZ )
3534zcnd 10970 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
n )  e.  CC )
3635, 25mulcomd 9615 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( A ^ n )  x.  A )  =  ( A  x.  ( A ^ n ) ) )
3728, 36eqtrd 2482 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  =  ( A  x.  ( A ^ n ) ) )
3837oveq2d 6293 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( B  gcd  ( A ^ ( n  +  1 ) ) )  =  ( B  gcd  ( A  x.  ( A ^ n ) ) ) )
39 simpl2 999 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  B  e.  NN )
4032adantr 465 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
n )  e.  NN )
41 nnz 10887 . . . . . . . . . . . . . . . . . 18  |-  ( A  e.  NN  ->  A  e.  ZZ )
42413ad2ant1 1016 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  A  e.  ZZ )
43 nnz 10887 . . . . . . . . . . . . . . . . . 18  |-  ( B  e.  NN  ->  B  e.  ZZ )
44433ad2ant2 1017 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  B  e.  ZZ )
45 gcdcom 14030 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( A  gcd  B
)  =  ( B  gcd  A ) )
4642, 44, 45syl2anc 661 . . . . . . . . . . . . . . . 16  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  ( A  gcd  B )  =  ( B  gcd  A
) )
4746eqeq1d 2443 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  (
( A  gcd  B
)  =  1  <->  ( B  gcd  A )  =  1 ) )
4847biimpa 484 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( B  gcd  A )  =  1 )
49 rpmulgcd 14065 . . . . . . . . . . . . . 14  |-  ( ( ( B  e.  NN  /\  A  e.  NN  /\  ( A ^ n )  e.  NN )  /\  ( B  gcd  A )  =  1 )  -> 
( B  gcd  ( A  x.  ( A ^ n ) ) )  =  ( B  gcd  ( A ^
n ) ) )
5039, 24, 40, 48, 49syl31anc 1230 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( B  gcd  ( A  x.  ( A ^ n ) ) )  =  ( B  gcd  ( A ^
n ) ) )
5138, 50eqtrd 2482 . . . . . . . . . . . 12  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( B  gcd  ( A ^ ( n  +  1 ) ) )  =  ( B  gcd  ( A ^
n ) ) )
52 peano2nn 10549 . . . . . . . . . . . . . . . . . 18  |-  ( n  e.  NN  ->  (
n  +  1 )  e.  NN )
53523ad2ant3 1018 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  (
n  +  1 )  e.  NN )
5453adantr 465 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( n  + 
1 )  e.  NN )
5554nnnn0d 10853 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( n  + 
1 )  e.  NN0 )
5624, 55nnexpcld 12305 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  e.  NN )
5756nnzd 10968 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  e.  ZZ )
5844adantr 465 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  B  e.  ZZ )
59 gcdcom 14030 . . . . . . . . . . . . 13  |-  ( ( ( A ^ (
n  +  1 ) )  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A ^
( n  +  1 ) )  gcd  B
)  =  ( B  gcd  ( A ^
( n  +  1 ) ) ) )
6057, 58, 59syl2anc 661 . . . . . . . . . . . 12  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( A ^ ( n  + 
1 ) )  gcd 
B )  =  ( B  gcd  ( A ^ ( n  + 
1 ) ) ) )
61 gcdcom 14030 . . . . . . . . . . . . 13  |-  ( ( ( A ^ n
)  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A ^
n )  gcd  B
)  =  ( B  gcd  ( A ^
n ) ) )
6234, 58, 61syl2anc 661 . . . . . . . . . . . 12  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( A ^ n )  gcd 
B )  =  ( B  gcd  ( A ^ n ) ) )
6351, 60, 623eqtr4d 2492 . . . . . . . . . . 11  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( A ^ ( n  + 
1 ) )  gcd 
B )  =  ( ( A ^ n
)  gcd  B )
)
6463eqeq1d 2443 . . . . . . . . . 10  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( ( A ^ ( n  +  1 ) )  gcd  B )  =  1  <->  ( ( A ^ n )  gcd 
B )  =  1 ) )
6564biimprd 223 . . . . . . . . 9  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( ( A ^ n )  gcd  B )  =  1  ->  ( ( A ^ ( n  + 
1 ) )  gcd 
B )  =  1 ) )
6623, 65sylanbr 473 . . . . . . . 8  |-  ( ( ( ( A  e.  NN  /\  B  e.  NN )  /\  n  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( ( A ^
n )  gcd  B
)  =  1  -> 
( ( A ^
( n  +  1 ) )  gcd  B
)  =  1 ) )
6766an32s 802 . . . . . . 7  |-  ( ( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  /\  n  e.  NN )  ->  (
( ( A ^
n )  gcd  B
)  =  1  -> 
( ( A ^
( n  +  1 ) )  gcd  B
)  =  1 ) )
6867expcom 435 . . . . . 6  |-  ( n  e.  NN  ->  (
( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( ( A ^
n )  gcd  B
)  =  1  -> 
( ( A ^
( n  +  1 ) )  gcd  B
)  =  1 ) ) )
6968a2d 26 . . . . 5  |-  ( n  e.  NN  ->  (
( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ n
)  gcd  B )  =  1 )  -> 
( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ (
n  +  1 ) )  gcd  B )  =  1 ) ) )
704, 8, 12, 16, 22, 69nnind 10555 . . . 4  |-  ( N  e.  NN  ->  (
( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ N
)  gcd  B )  =  1 ) )
7170expd 436 . . 3  |-  ( N  e.  NN  ->  (
( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  =  1  ->  ( ( A ^ N )  gcd 
B )  =  1 ) ) )
7271com12 31 . 2  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( N  e.  NN  ->  ( ( A  gcd  B )  =  1  -> 
( ( A ^ N )  gcd  B
)  =  1 ) ) )
73723impia 1192 1  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  N  e.  NN )  ->  (
( A  gcd  B
)  =  1  -> 
( ( A ^ N )  gcd  B
)  =  1 ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    /\ w3a 972    = wceq 1381    e. wcel 1802  (class class class)co 6277   1c1 9491    + caddc 9493    x. cmul 9495   NNcn 10537   NN0cn0 10796   ZZcz 10865   ^cexp 12140    gcd cgcd 14016
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1603  ax-4 1616  ax-5 1689  ax-6 1732  ax-7 1774  ax-8 1804  ax-9 1806  ax-10 1821  ax-11 1826  ax-12 1838  ax-13 1983  ax-ext 2419  ax-sep 4554  ax-nul 4562  ax-pow 4611  ax-pr 4672  ax-un 6573  ax-cnex 9546  ax-resscn 9547  ax-1cn 9548  ax-icn 9549  ax-addcl 9550  ax-addrcl 9551  ax-mulcl 9552  ax-mulrcl 9553  ax-mulcom 9554  ax-addass 9555  ax-mulass 9556  ax-distr 9557  ax-i2m1 9558  ax-1ne0 9559  ax-1rid 9560  ax-rnegex 9561  ax-rrecex 9562  ax-cnre 9563  ax-pre-lttri 9564  ax-pre-lttrn 9565  ax-pre-ltadd 9566  ax-pre-mulgt0 9567  ax-pre-sup 9568
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 973  df-3an 974  df-tru 1384  df-ex 1598  df-nf 1602  df-sb 1725  df-eu 2270  df-mo 2271  df-clab 2427  df-cleq 2433  df-clel 2436  df-nfc 2591  df-ne 2638  df-nel 2639  df-ral 2796  df-rex 2797  df-reu 2798  df-rmo 2799  df-rab 2800  df-v 3095  df-sbc 3312  df-csb 3418  df-dif 3461  df-un 3463  df-in 3465  df-ss 3472  df-pss 3474  df-nul 3768  df-if 3923  df-pw 3995  df-sn 4011  df-pr 4013  df-tp 4015  df-op 4017  df-uni 4231  df-iun 4313  df-br 4434  df-opab 4492  df-mpt 4493  df-tr 4527  df-eprel 4777  df-id 4781  df-po 4786  df-so 4787  df-fr 4824  df-we 4826  df-ord 4867  df-on 4868  df-lim 4869  df-suc 4870  df-xp 4991  df-rel 4992  df-cnv 4993  df-co 4994  df-dm 4995  df-rn 4996  df-res 4997  df-ima 4998  df-iota 5537  df-fun 5576  df-fn 5577  df-f 5578  df-f1 5579  df-fo 5580  df-f1o 5581  df-fv 5582  df-riota 6238  df-ov 6280  df-oprab 6281  df-mpt2 6282  df-om 6682  df-2nd 6782  df-recs 7040  df-rdg 7074  df-er 7309  df-en 7515  df-dom 7516  df-sdom 7517  df-sup 7899  df-pnf 9628  df-mnf 9629  df-xr 9630  df-ltxr 9631  df-le 9632  df-sub 9807  df-neg 9808  df-div 10208  df-nn 10538  df-2 10595  df-3 10596  df-n0 10797  df-z 10866  df-uz 11086  df-rp 11225  df-fl 11903  df-mod 11971  df-seq 12082  df-exp 12141  df-cj 12906  df-re 12907  df-im 12908  df-sqrt 13042  df-abs 13043  df-dvds 13859  df-gcd 14017
This theorem is referenced by:  rppwr  14067  lgsne0  23473  2sqlem8  23512
  Copyright terms: Public domain W3C validator