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

Theorem rplpwr 13058
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 6091 . . . . . . . 8  |-  ( k  =  1  ->  ( A ^ k )  =  ( A ^ 1 ) )
21oveq1d 6098 . . . . . . 7  |-  ( k  =  1  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ 1 )  gcd 
B ) )
32eqeq1d 2446 . . . . . 6  |-  ( k  =  1  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ 1 )  gcd  B )  =  1 ) )
43imbi2d 309 . . . . 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 6091 . . . . . . . 8  |-  ( k  =  n  ->  ( A ^ k )  =  ( A ^ n
) )
65oveq1d 6098 . . . . . . 7  |-  ( k  =  n  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ n )  gcd 
B ) )
76eqeq1d 2446 . . . . . 6  |-  ( k  =  n  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ n
)  gcd  B )  =  1 ) )
87imbi2d 309 . . . . 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 6091 . . . . . . . 8  |-  ( k  =  ( n  + 
1 )  ->  ( A ^ k )  =  ( A ^ (
n  +  1 ) ) )
109oveq1d 6098 . . . . . . 7  |-  ( k  =  ( n  + 
1 )  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ ( n  + 
1 ) )  gcd 
B ) )
1110eqeq1d 2446 . . . . . 6  |-  ( k  =  ( n  + 
1 )  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ (
n  +  1 ) )  gcd  B )  =  1 ) )
1211imbi2d 309 . . . . 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 6091 . . . . . . . 8  |-  ( k  =  N  ->  ( A ^ k )  =  ( A ^ N
) )
1413oveq1d 6098 . . . . . . 7  |-  ( k  =  N  ->  (
( A ^ k
)  gcd  B )  =  ( ( A ^ N )  gcd 
B ) )
1514eqeq1d 2446 . . . . . 6  |-  ( k  =  N  ->  (
( ( A ^
k )  gcd  B
)  =  1  <->  (
( A ^ N
)  gcd  B )  =  1 ) )
1615imbi2d 309 . . . . 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 10010 . . . . . . . . . 10  |-  ( A  e.  NN  ->  A  e.  CC )
1817exp1d 11520 . . . . . . . . 9  |-  ( A  e.  NN  ->  ( A ^ 1 )  =  A )
1918oveq1d 6098 . . . . . . . 8  |-  ( A  e.  NN  ->  (
( A ^ 1 )  gcd  B )  =  ( A  gcd  B ) )
2019adantr 453 . . . . . . 7  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( A ^
1 )  gcd  B
)  =  ( A  gcd  B ) )
2120eqeq1d 2446 . . . . . 6  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( ( ( A ^ 1 )  gcd 
B )  =  1  <-> 
( A  gcd  B
)  =  1 ) )
2221biimpar 473 . . . . 5  |-  ( ( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  ( ( A ^ 1 )  gcd 
B )  =  1 )
23 df-3an 939 . . . . . . . . 9  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  <->  ( ( A  e.  NN  /\  B  e.  NN )  /\  n  e.  NN ) )
24 simpl1 961 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  A  e.  NN )
2524nncnd 10018 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  A  e.  CC )
26 simpl3 963 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  n  e.  NN )
2726nnnn0d 10276 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  n  e.  NN0 )
2825, 27expp1d 11526 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  =  ( ( A ^ n
)  x.  A ) )
29 simp1 958 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  A  e.  NN )
30 nnnn0 10230 . . . . . . . . . . . . . . . . . . . . 21  |-  ( n  e.  NN  ->  n  e.  NN0 )
31303ad2ant3 981 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  n  e.  NN0 )
3229, 31nnexpcld 11546 . . . . . . . . . . . . . . . . . . 19  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  ( A ^ n )  e.  NN )
3332nnzd 10376 . . . . . . . . . . . . . . . . . 18  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  ( A ^ n )  e.  ZZ )
3433adantr 453 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
n )  e.  ZZ )
3534zcnd 10378 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
n )  e.  CC )
3635, 25mulcomd 9111 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( A ^ n )  x.  A )  =  ( A  x.  ( A ^ n ) ) )
3728, 36eqtrd 2470 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  =  ( A  x.  ( A ^ n ) ) )
3837oveq2d 6099 . . . . . . . . . . . . 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 962 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  B  e.  NN )
4032adantr 453 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
n )  e.  NN )
41 nnz 10305 . . . . . . . . . . . . . . . . . 18  |-  ( A  e.  NN  ->  A  e.  ZZ )
42413ad2ant1 979 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  A  e.  ZZ )
43 nnz 10305 . . . . . . . . . . . . . . . . . 18  |-  ( B  e.  NN  ->  B  e.  ZZ )
44433ad2ant2 980 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  B  e.  ZZ )
45 gcdcom 13022 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( A  gcd  B
)  =  ( B  gcd  A ) )
4642, 44, 45syl2anc 644 . . . . . . . . . . . . . . . 16  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  ( A  gcd  B )  =  ( B  gcd  A
) )
4746eqeq1d 2446 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  (
( A  gcd  B
)  =  1  <->  ( B  gcd  A )  =  1 ) )
4847biimpa 472 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( B  gcd  A )  =  1 )
49 rpmulgcd 13057 . . . . . . . . . . . . . 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 1188 . . . . . . . . . . . . 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 2470 . . . . . . . . . . . 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 10014 . . . . . . . . . . . . . . . . . 18  |-  ( n  e.  NN  ->  (
n  +  1 )  e.  NN )
53523ad2ant3 981 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  ->  (
n  +  1 )  e.  NN )
5453adantr 453 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( n  + 
1 )  e.  NN )
5554nnnn0d 10276 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( n  + 
1 )  e.  NN0 )
5624, 55nnexpcld 11546 . . . . . . . . . . . . . 14  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  e.  NN )
5756nnzd 10376 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( A ^
( n  +  1 ) )  e.  ZZ )
5844adantr 453 . . . . . . . . . . . . 13  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  B  e.  ZZ )
59 gcdcom 13022 . . . . . . . . . . . . 13  |-  ( ( ( A ^ (
n  +  1 ) )  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A ^
( n  +  1 ) )  gcd  B
)  =  ( B  gcd  ( A ^
( n  +  1 ) ) ) )
6057, 58, 59syl2anc 644 . . . . . . . . . . . 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 13022 . . . . . . . . . . . . 13  |-  ( ( ( A ^ n
)  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A ^
n )  gcd  B
)  =  ( B  gcd  ( A ^
n ) ) )
6234, 58, 61syl2anc 644 . . . . . . . . . . . 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 2480 . . . . . . . . . . 11  |-  ( ( ( A  e.  NN  /\  B  e.  NN  /\  n  e.  NN )  /\  ( A  gcd  B
)  =  1 )  ->  ( ( A ^ ( n  + 
1 ) )  gcd 
B )  =  ( ( A ^ n
)  gcd  B )
)
6463eqeq1d 2446 . . . . . . . . . 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 216 . . . . . . . . 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 461 . . . . . . . 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 781 . . . . . . 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 426 . . . . . 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 25 . . . . 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 10020 . . . 4  |-  ( N  e.  NN  ->  (
( ( A  e.  NN  /\  B  e.  NN )  /\  ( A  gcd  B )  =  1 )  ->  (
( A ^ N
)  gcd  B )  =  1 ) )
7170exp3a 427 . . 3  |-  ( N  e.  NN  ->  (
( A  e.  NN  /\  B  e.  NN )  ->  ( ( A  gcd  B )  =  1  ->  ( ( A ^ N )  gcd 
B )  =  1 ) ) )
7271com12 30 . 2  |-  ( ( A  e.  NN  /\  B  e.  NN )  ->  ( N  e.  NN  ->  ( ( A  gcd  B )  =  1  -> 
( ( A ^ N )  gcd  B
)  =  1 ) ) )
73723impia 1151 1  |-  ( ( A  e.  NN  /\  B  e.  NN  /\  N  e.  NN )  ->  (
( A  gcd  B
)  =  1  -> 
( ( A ^ N )  gcd  B
)  =  1 ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 360    /\ w3a 937    = wceq 1653    e. wcel 1726  (class class class)co 6083   1c1 8993    + caddc 8995    x. cmul 8997   NNcn 10002   NN0cn0 10223   ZZcz 10284   ^cexp 11384    gcd cgcd 13008
This theorem is referenced by:  rppwr  13059  lgsne0  21119  2sqlem8  21158
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1556  ax-5 1567  ax-17 1627  ax-9 1667  ax-8 1688  ax-13 1728  ax-14 1730  ax-6 1745  ax-7 1750  ax-11 1762  ax-12 1951  ax-ext 2419  ax-sep 4332  ax-nul 4340  ax-pow 4379  ax-pr 4405  ax-un 4703  ax-cnex 9048  ax-resscn 9049  ax-1cn 9050  ax-icn 9051  ax-addcl 9052  ax-addrcl 9053  ax-mulcl 9054  ax-mulrcl 9055  ax-mulcom 9056  ax-addass 9057  ax-mulass 9058  ax-distr 9059  ax-i2m1 9060  ax-1ne0 9061  ax-1rid 9062  ax-rnegex 9063  ax-rrecex 9064  ax-cnre 9065  ax-pre-lttri 9066  ax-pre-lttrn 9067  ax-pre-ltadd 9068  ax-pre-mulgt0 9069  ax-pre-sup 9070
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 938  df-3an 939  df-tru 1329  df-ex 1552  df-nf 1555  df-sb 1660  df-eu 2287  df-mo 2288  df-clab 2425  df-cleq 2431  df-clel 2434  df-nfc 2563  df-ne 2603  df-nel 2604  df-ral 2712  df-rex 2713  df-reu 2714  df-rmo 2715  df-rab 2716  df-v 2960  df-sbc 3164  df-csb 3254  df-dif 3325  df-un 3327  df-in 3329  df-ss 3336  df-pss 3338  df-nul 3631  df-if 3742  df-pw 3803  df-sn 3822  df-pr 3823  df-tp 3824  df-op 3825  df-uni 4018  df-iun 4097  df-br 4215  df-opab 4269  df-mpt 4270  df-tr 4305  df-eprel 4496  df-id 4500  df-po 4505  df-so 4506  df-fr 4543  df-we 4545  df-ord 4586  df-on 4587  df-lim 4588  df-suc 4589  df-om 4848  df-xp 4886  df-rel 4887  df-cnv 4888  df-co 4889  df-dm 4890  df-rn 4891  df-res 4892  df-ima 4893  df-iota 5420  df-fun 5458  df-fn 5459  df-f 5460  df-f1 5461  df-fo 5462  df-f1o 5463  df-fv 5464  df-ov 6086  df-oprab 6087  df-mpt2 6088  df-2nd 6352  df-riota 6551  df-recs 6635  df-rdg 6670  df-er 6907  df-en 7112  df-dom 7113  df-sdom 7114  df-sup 7448  df-pnf 9124  df-mnf 9125  df-xr 9126  df-ltxr 9127  df-le 9128  df-sub 9295  df-neg 9296  df-div 9680  df-nn 10003  df-2 10060  df-3 10061  df-n0 10224  df-z 10285  df-uz 10491  df-rp 10615  df-fl 11204  df-mod 11253  df-seq 11326  df-exp 11385  df-cj 11906  df-re 11907  df-im 11908  df-sqr 12042  df-abs 12043  df-dvds 12855  df-gcd 13009
  Copyright terms: Public domain W3C validator