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

Theorem rpexp 13048
Description: If two numbers  A and  B are relatively prime, then they are still relatively prime if raised to a power. (Contributed by Mario Carneiro, 24-Feb-2014.)
Assertion
Ref Expression
rpexp  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( ( A ^ N )  gcd  B
)  =  1  <->  ( A  gcd  B )  =  1 ) )

Proof of Theorem rpexp
Dummy variable  p is distinct from all other variables.
StepHypRef Expression
1 0exp 11343 . . . . . 6  |-  ( N  e.  NN  ->  (
0 ^ N )  =  0 )
21oveq1d 6036 . . . . 5  |-  ( N  e.  NN  ->  (
( 0 ^ N
)  gcd  0 )  =  ( 0  gcd  0 ) )
32eqeq1d 2396 . . . 4  |-  ( N  e.  NN  ->  (
( ( 0 ^ N )  gcd  0
)  =  1  <->  (
0  gcd  0 )  =  1 ) )
4 oveq1 6028 . . . . . . 7  |-  ( A  =  0  ->  ( A ^ N )  =  ( 0 ^ N
) )
5 oveq12 6030 . . . . . . 7  |-  ( ( ( A ^ N
)  =  ( 0 ^ N )  /\  B  =  0 )  ->  ( ( A ^ N )  gcd 
B )  =  ( ( 0 ^ N
)  gcd  0 ) )
64, 5sylan 458 . . . . . 6  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( A ^ N )  gcd 
B )  =  ( ( 0 ^ N
)  gcd  0 ) )
76eqeq1d 2396 . . . . 5  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( ( A ^ N )  gcd  B )  =  1  <->  ( ( 0 ^ N )  gcd  0 )  =  1 ) )
8 oveq12 6030 . . . . . 6  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( A  gcd  B )  =  ( 0  gcd  0 ) )
98eqeq1d 2396 . . . . 5  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( A  gcd  B )  =  1  <->  ( 0  gcd  0 )  =  1 ) )
107, 9bibi12d 313 . . . 4  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( ( ( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 )  <->  ( ( ( 0 ^ N )  gcd  0 )  =  1  <->  ( 0  gcd  0 )  =  1 ) ) )
113, 10syl5ibrcom 214 . . 3  |-  ( N  e.  NN  ->  (
( A  =  0  /\  B  =  0 )  ->  ( (
( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 ) ) )
12113ad2ant3 980 . 2  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( A  =  0  /\  B  =  0 )  ->  ( (
( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 ) ) )
13 exprmfct 13038 . . . . . . 7  |-  ( ( ( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  ( ( A ^ N )  gcd 
B ) )
14 simpl1 960 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  A  e.  ZZ )
15 simpl3 962 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  N  e.  NN )
1615nnnn0d 10207 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  N  e.  NN0 )
17 zexpcl 11324 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  ZZ  /\  N  e.  NN0 )  -> 
( A ^ N
)  e.  ZZ )
1814, 16, 17syl2anc 643 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A ^ N
)  e.  ZZ )
1918adantr 452 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A ^ N )  e.  ZZ )
20 simpl2 961 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  B  e.  ZZ )
2120adantr 452 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  B  e.  ZZ )
22 gcddvds 12943 . . . . . . . . . . . . . . 15  |-  ( ( ( A ^ N
)  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A ^ N )  gcd 
B )  ||  ( A ^ N )  /\  ( ( A ^ N )  gcd  B
)  ||  B )
)
2319, 21, 22syl2anc 643 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( ( A ^ N )  gcd  B
)  ||  ( A ^ N )  /\  (
( A ^ N
)  gcd  B )  ||  B ) )
2423simpld 446 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( A ^ N
)  gcd  B )  ||  ( A ^ N
) )
25 prmz 13011 . . . . . . . . . . . . . . 15  |-  ( p  e.  Prime  ->  p  e.  ZZ )
2625adantl 453 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  p  e.  ZZ )
27 simpr 448 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  -.  ( A  =  0  /\  B  =  0 ) )
2814zcnd 10309 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  A  e.  CC )
29 expeq0 11338 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  CC  /\  N  e.  NN )  ->  ( ( A ^ N )  =  0  <-> 
A  =  0 ) )
3028, 15, 29syl2anc 643 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  =  0  <-> 
A  =  0 ) )
3130anbi1d 686 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  =  0  /\  B  =  0 )  <->  ( A  =  0  /\  B  =  0 ) ) )
3227, 31mtbird 293 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  -.  ( ( A ^ N )  =  0  /\  B  =  0 ) )
33 gcdn0cl 12942 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( A ^ N )  e.  ZZ  /\  B  e.  ZZ )  /\  -.  ( ( A ^ N )  =  0  /\  B  =  0 ) )  ->  ( ( A ^ N )  gcd 
B )  e.  NN )
3418, 20, 32, 33syl21anc 1183 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  gcd  B
)  e.  NN )
3534nnzd 10307 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  gcd  B
)  e.  ZZ )
3635adantr 452 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( A ^ N
)  gcd  B )  e.  ZZ )
37 dvdstr 12811 . . . . . . . . . . . . . 14  |-  ( ( p  e.  ZZ  /\  ( ( A ^ N )  gcd  B
)  e.  ZZ  /\  ( A ^ N )  e.  ZZ )  -> 
( ( p  ||  ( ( A ^ N )  gcd  B
)  /\  ( ( A ^ N )  gcd 
B )  ||  ( A ^ N ) )  ->  p  ||  ( A ^ N ) ) )
3826, 36, 19, 37syl3anc 1184 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( p  ||  (
( A ^ N
)  gcd  B )  /\  ( ( A ^ N )  gcd  B
)  ||  ( A ^ N ) )  ->  p  ||  ( A ^ N ) ) )
3924, 38mpan2d 656 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  ->  p  ||  ( A ^ N
) ) )
40 simpr 448 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  p  e.  Prime )
41 simpll1 996 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  A  e.  ZZ )
4215adantr 452 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  N  e.  NN )
43 prmdvdsexp 13042 . . . . . . . . . . . . 13  |-  ( ( p  e.  Prime  /\  A  e.  ZZ  /\  N  e.  NN )  ->  (
p  ||  ( A ^ N )  <->  p  ||  A
) )
4440, 41, 42, 43syl3anc 1184 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A ^ N )  <->  p  ||  A
) )
4539, 44sylibd 206 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  ->  p  ||  A ) )
4623simprd 450 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( A ^ N
)  gcd  B )  ||  B )
47 dvdstr 12811 . . . . . . . . . . . . 13  |-  ( ( p  e.  ZZ  /\  ( ( A ^ N )  gcd  B
)  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( p  ||  ( ( A ^ N )  gcd  B
)  /\  ( ( A ^ N )  gcd 
B )  ||  B
)  ->  p  ||  B
) )
4826, 36, 21, 47syl3anc 1184 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( p  ||  (
( A ^ N
)  gcd  B )  /\  ( ( A ^ N )  gcd  B
)  ||  B )  ->  p  ||  B ) )
4946, 48mpan2d 656 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  ->  p  ||  B ) )
5045, 49jcad 520 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  ->  (
p  ||  A  /\  p  ||  B ) ) )
51 dvdsgcd 12971 . . . . . . . . . . 11  |-  ( ( p  e.  ZZ  /\  A  e.  ZZ  /\  B  e.  ZZ )  ->  (
( p  ||  A  /\  p  ||  B )  ->  p  ||  ( A  gcd  B ) ) )
5226, 41, 21, 51syl3anc 1184 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( p  ||  A  /\  p  ||  B )  ->  p  ||  ( A  gcd  B ) ) )
53 nprmdvds1 13039 . . . . . . . . . . . . 13  |-  ( p  e.  Prime  ->  -.  p  ||  1 )
54 breq2 4158 . . . . . . . . . . . . . 14  |-  ( ( A  gcd  B )  =  1  ->  (
p  ||  ( A  gcd  B )  <->  p  ||  1
) )
5554notbid 286 . . . . . . . . . . . . 13  |-  ( ( A  gcd  B )  =  1  ->  ( -.  p  ||  ( A  gcd  B )  <->  -.  p  ||  1 ) )
5653, 55syl5ibrcom 214 . . . . . . . . . . . 12  |-  ( p  e.  Prime  ->  ( ( A  gcd  B )  =  1  ->  -.  p  ||  ( A  gcd  B ) ) )
5756necon2ad 2599 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  ( p 
||  ( A  gcd  B )  ->  ( A  gcd  B )  =/=  1
) )
5857adantl 453 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A  gcd  B )  ->  ( A  gcd  B )  =/=  1 ) )
5950, 52, 583syld 53 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  ->  ( A  gcd  B )  =/=  1 ) )
6059rexlimdva 2774 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( E. p  e. 
Prime  p  ||  ( ( A ^ N )  gcd  B )  -> 
( A  gcd  B
)  =/=  1 ) )
61 gcdn0cl 12942 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  ( A  gcd  B )  e.  NN )
62613adantl3 1115 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A  gcd  B
)  e.  NN )
63 eluz2b3 10482 . . . . . . . . . 10  |-  ( ( A  gcd  B )  e.  ( ZZ>= `  2
)  <->  ( ( A  gcd  B )  e.  NN  /\  ( A  gcd  B )  =/=  1 ) )
6463baib 872 . . . . . . . . 9  |-  ( ( A  gcd  B )  e.  NN  ->  (
( A  gcd  B
)  e.  ( ZZ>= ` 
2 )  <->  ( A  gcd  B )  =/=  1
) )
6562, 64syl 16 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A  gcd  B )  e.  ( ZZ>= ` 
2 )  <->  ( A  gcd  B )  =/=  1
) )
6660, 65sylibrd 226 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( E. p  e. 
Prime  p  ||  ( ( A ^ N )  gcd  B )  -> 
( A  gcd  B
)  e.  ( ZZ>= ` 
2 ) ) )
6713, 66syl5 30 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  e.  (
ZZ>= `  2 )  -> 
( A  gcd  B
)  e.  ( ZZ>= ` 
2 ) ) )
68 exprmfct 13038 . . . . . . 7  |-  ( ( A  gcd  B )  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  ( A  gcd  B ) )
69 gcddvds 12943 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A  gcd  B )  ||  A  /\  ( A  gcd  B ) 
||  B ) )
7041, 21, 69syl2anc 643 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( A  gcd  B
)  ||  A  /\  ( A  gcd  B ) 
||  B ) )
7170simpld 446 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  A )
72 iddvdsexp 12801 . . . . . . . . . . . . . 14  |-  ( ( A  e.  ZZ  /\  N  e.  NN )  ->  A  ||  ( A ^ N ) )
7341, 42, 72syl2anc 643 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  A  ||  ( A ^ N
) )
7462nnzd 10307 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A  gcd  B
)  e.  ZZ )
7574adantr 452 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  e.  ZZ )
76 dvdstr 12811 . . . . . . . . . . . . . 14  |-  ( ( ( A  gcd  B
)  e.  ZZ  /\  A  e.  ZZ  /\  ( A ^ N )  e.  ZZ )  ->  (
( ( A  gcd  B )  ||  A  /\  A  ||  ( A ^ N ) )  -> 
( A  gcd  B
)  ||  ( A ^ N ) ) )
7775, 41, 19, 76syl3anc 1184 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( ( A  gcd  B )  ||  A  /\  A  ||  ( A ^ N ) )  -> 
( A  gcd  B
)  ||  ( A ^ N ) ) )
7871, 73, 77mp2and 661 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  ( A ^ N ) )
79 dvdstr 12811 . . . . . . . . . . . . 13  |-  ( ( p  e.  ZZ  /\  ( A  gcd  B )  e.  ZZ  /\  ( A ^ N )  e.  ZZ )  ->  (
( p  ||  ( A  gcd  B )  /\  ( A  gcd  B ) 
||  ( A ^ N ) )  ->  p  ||  ( A ^ N ) ) )
8026, 75, 19, 79syl3anc 1184 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( p  ||  ( A  gcd  B )  /\  ( A  gcd  B ) 
||  ( A ^ N ) )  ->  p  ||  ( A ^ N ) ) )
8178, 80mpan2d 656 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A  gcd  B )  ->  p  ||  ( A ^ N
) ) )
8270simprd 450 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  B )
83 dvdstr 12811 . . . . . . . . . . . . 13  |-  ( ( p  e.  ZZ  /\  ( A  gcd  B )  e.  ZZ  /\  B  e.  ZZ )  ->  (
( p  ||  ( A  gcd  B )  /\  ( A  gcd  B ) 
||  B )  ->  p  ||  B ) )
8426, 75, 21, 83syl3anc 1184 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( p  ||  ( A  gcd  B )  /\  ( A  gcd  B ) 
||  B )  ->  p  ||  B ) )
8582, 84mpan2d 656 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A  gcd  B )  ->  p  ||  B ) )
8681, 85jcad 520 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A  gcd  B )  ->  (
p  ||  ( A ^ N )  /\  p  ||  B ) ) )
87 dvdsgcd 12971 . . . . . . . . . . 11  |-  ( ( p  e.  ZZ  /\  ( A ^ N )  e.  ZZ  /\  B  e.  ZZ )  ->  (
( p  ||  ( A ^ N )  /\  p  ||  B )  ->  p  ||  ( ( A ^ N )  gcd 
B ) ) )
8826, 19, 21, 87syl3anc 1184 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( p  ||  ( A ^ N )  /\  p  ||  B )  ->  p  ||  ( ( A ^ N )  gcd 
B ) ) )
89 breq2 4158 . . . . . . . . . . . . . 14  |-  ( ( ( A ^ N
)  gcd  B )  =  1  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  <->  p  ||  1
) )
9089notbid 286 . . . . . . . . . . . . 13  |-  ( ( ( A ^ N
)  gcd  B )  =  1  ->  ( -.  p  ||  ( ( A ^ N )  gcd  B )  <->  -.  p  ||  1 ) )
9153, 90syl5ibrcom 214 . . . . . . . . . . . 12  |-  ( p  e.  Prime  ->  ( ( ( A ^ N
)  gcd  B )  =  1  ->  -.  p  ||  ( ( A ^ N )  gcd 
B ) ) )
9291necon2ad 2599 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  ( p 
||  ( ( A ^ N )  gcd 
B )  ->  (
( A ^ N
)  gcd  B )  =/=  1 ) )
9392adantl 453 . . . . . . . . . 10  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  ->  (
( A ^ N
)  gcd  B )  =/=  1 ) )
9486, 88, 933syld 53 . . . . . . . . 9  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A  gcd  B )  ->  (
( A ^ N
)  gcd  B )  =/=  1 ) )
9594rexlimdva 2774 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( E. p  e. 
Prime  p  ||  ( A  gcd  B )  -> 
( ( A ^ N )  gcd  B
)  =/=  1 ) )
96 eluz2b3 10482 . . . . . . . . . 10  |-  ( ( ( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  <->  ( ( ( A ^ N )  gcd  B
)  e.  NN  /\  ( ( A ^ N )  gcd  B
)  =/=  1 ) )
9796baib 872 . . . . . . . . 9  |-  ( ( ( A ^ N
)  gcd  B )  e.  NN  ->  ( (
( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  <->  ( ( A ^ N
)  gcd  B )  =/=  1 ) )
9834, 97syl 16 . . . . . . . 8  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  e.  (
ZZ>= `  2 )  <->  ( ( A ^ N )  gcd 
B )  =/=  1
) )
9995, 98sylibrd 226 . . . . . . 7  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( E. p  e. 
Prime  p  ||  ( A  gcd  B )  -> 
( ( A ^ N )  gcd  B
)  e.  ( ZZ>= ` 
2 ) ) )
10068, 99syl5 30 . . . . . 6  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A  gcd  B )  e.  ( ZZ>= ` 
2 )  ->  (
( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )
) )
10167, 100impbid 184 . . . . 5  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  e.  (
ZZ>= `  2 )  <->  ( A  gcd  B )  e.  (
ZZ>= `  2 ) ) )
102101, 98, 653bitr3d 275 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  =/=  1  <->  ( A  gcd  B )  =/=  1 ) )
103102necon4bid 2617 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  =  1  <-> 
( A  gcd  B
)  =  1 ) )
104103ex 424 . 2  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  ( -.  ( A  =  0  /\  B  =  0 )  ->  ( (
( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 ) ) )
10512, 104pm2.61d 152 1  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( ( A ^ N )  gcd  B
)  =  1  <->  ( A  gcd  B )  =  1 ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    =/= wne 2551   E.wrex 2651   class class class wbr 4154   ` cfv 5395  (class class class)co 6021   CCcc 8922   0cc0 8924   1c1 8925   NNcn 9933   2c2 9982   NN0cn0 10154   ZZcz 10215   ZZ>=cuz 10421   ^cexp 11310    || cdivides 12780    gcd cgcd 12934   Primecprime 13007
This theorem is referenced by:  rpexp1i  13049  phiprmpw  13093  pockthlem  13201
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 1661  ax-8 1682  ax-13 1719  ax-14 1721  ax-6 1736  ax-7 1741  ax-11 1753  ax-12 1939  ax-ext 2369  ax-sep 4272  ax-nul 4280  ax-pow 4319  ax-pr 4345  ax-un 4642  ax-cnex 8980  ax-resscn 8981  ax-1cn 8982  ax-icn 8983  ax-addcl 8984  ax-addrcl 8985  ax-mulcl 8986  ax-mulrcl 8987  ax-mulcom 8988  ax-addass 8989  ax-mulass 8990  ax-distr 8991  ax-i2m1 8992  ax-1ne0 8993  ax-1rid 8994  ax-rnegex 8995  ax-rrecex 8996  ax-cnre 8997  ax-pre-lttri 8998  ax-pre-lttrn 8999  ax-pre-ltadd 9000  ax-pre-mulgt0 9001  ax-pre-sup 9002
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 2243  df-mo 2244  df-clab 2375  df-cleq 2381  df-clel 2384  df-nfc 2513  df-ne 2553  df-nel 2554  df-ral 2655  df-rex 2656  df-reu 2657  df-rmo 2658  df-rab 2659  df-v 2902  df-sbc 3106  df-csb 3196  df-dif 3267  df-un 3269  df-in 3271  df-ss 3278  df-pss 3280  df-nul 3573  df-if 3684  df-pw 3745  df-sn 3764  df-pr 3765  df-tp 3766  df-op 3767  df-uni 3959  df-int 3994  df-iun 4038  df-br 4155  df-opab 4209  df-mpt 4210  df-tr 4245  df-eprel 4436  df-id 4440  df-po 4445  df-so 4446  df-fr 4483  df-we 4485  df-ord 4526  df-on 4527  df-lim 4528  df-suc 4529  df-om 4787  df-xp 4825  df-rel 4826  df-cnv 4827  df-co 4828  df-dm 4829  df-rn 4830  df-res 4831  df-ima 4832  df-iota 5359  df-fun 5397  df-fn 5398  df-f 5399  df-f1 5400  df-fo 5401  df-f1o 5402  df-fv 5403  df-ov 6024  df-oprab 6025  df-mpt2 6026  df-1st 6289  df-2nd 6290  df-riota 6486  df-recs 6570  df-rdg 6605  df-1o 6661  df-2o 6662  df-oadd 6665  df-er 6842  df-en 7047  df-dom 7048  df-sdom 7049  df-fin 7050  df-sup 7382  df-pnf 9056  df-mnf 9057  df-xr 9058  df-ltxr 9059  df-le 9060  df-sub 9226  df-neg 9227  df-div 9611  df-nn 9934  df-2 9991  df-3 9992  df-n0 10155  df-z 10216  df-uz 10422  df-rp 10546  df-fz 10977  df-fl 11130  df-mod 11179  df-seq 11252  df-exp 11311  df-cj 11832  df-re 11833  df-im 11834  df-sqr 11968  df-abs 11969  df-dvds 12781  df-gcd 12935  df-prm 13008
  Copyright terms: Public domain W3C validator