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

Theorem rpexp 12815
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 11153 . . . . . 6  |-  ( N  e.  NN  ->  (
0 ^ N )  =  0 )
21oveq1d 5889 . . . . 5  |-  ( N  e.  NN  ->  (
( 0 ^ N
)  gcd  0 )  =  ( 0  gcd  0 ) )
32eqeq1d 2304 . . . 4  |-  ( N  e.  NN  ->  (
( ( 0 ^ N )  gcd  0
)  =  1  <->  (
0  gcd  0 )  =  1 ) )
4 oveq1 5881 . . . . . . 7  |-  ( A  =  0  ->  ( A ^ N )  =  ( 0 ^ N
) )
5 oveq12 5883 . . . . . . 7  |-  ( ( ( A ^ N
)  =  ( 0 ^ N )  /\  B  =  0 )  ->  ( ( A ^ N )  gcd 
B )  =  ( ( 0 ^ N
)  gcd  0 ) )
64, 5sylan 457 . . . . . 6  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( A ^ N )  gcd 
B )  =  ( ( 0 ^ N
)  gcd  0 ) )
76eqeq1d 2304 . . . . 5  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( ( A ^ N )  gcd  B )  =  1  <->  ( ( 0 ^ N )  gcd  0 )  =  1 ) )
8 oveq12 5883 . . . . . 6  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( A  gcd  B )  =  ( 0  gcd  0 ) )
98eqeq1d 2304 . . . . 5  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( A  gcd  B )  =  1  <->  ( 0  gcd  0 )  =  1 ) )
107, 9bibi12d 312 . . . 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 213 . . 3  |-  ( N  e.  NN  ->  (
( A  =  0  /\  B  =  0 )  ->  ( (
( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 ) ) )
12113ad2ant3 978 . 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 12805 . . . . . . 7  |-  ( ( ( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  ( ( A ^ N )  gcd 
B ) )
14 simpl1 958 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  A  e.  ZZ )
15 simpl3 960 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  N  e.  NN )
1615nnnn0d 10034 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  N  e.  NN0 )
17 zexpcl 11134 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  ZZ  /\  N  e.  NN0 )  -> 
( A ^ N
)  e.  ZZ )
1814, 16, 17syl2anc 642 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A ^ N
)  e.  ZZ )
1918adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A ^ N )  e.  ZZ )
20 simpl2 959 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  B  e.  ZZ )
2120adantr 451 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  B  e.  ZZ )
22 gcddvds 12710 . . . . . . . . . . . . . . 15  |-  ( ( ( A ^ N
)  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A ^ N )  gcd 
B )  ||  ( A ^ N )  /\  ( ( A ^ N )  gcd  B
)  ||  B )
)
2319, 21, 22syl2anc 642 . . . . . . . . . . . . . 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 445 . . . . . . . . . . . . 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 12778 . . . . . . . . . . . . . . 15  |-  ( p  e.  Prime  ->  p  e.  ZZ )
2625adantl 452 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  p  e.  ZZ )
27 simpr 447 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  -.  ( A  =  0  /\  B  =  0 ) )
2814zcnd 10134 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  A  e.  CC )
29 expeq0 11148 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  CC  /\  N  e.  NN )  ->  ( ( A ^ N )  =  0  <-> 
A  =  0 ) )
3028, 15, 29syl2anc 642 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  =  0  <-> 
A  =  0 ) )
3130anbi1d 685 . . . . . . . . . . . . . . . . . 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 292 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  -.  ( ( A ^ N )  =  0  /\  B  =  0 ) )
33 gcdn0cl 12709 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( A ^ N )  e.  ZZ  /\  B  e.  ZZ )  /\  -.  ( ( A ^ N )  =  0  /\  B  =  0 ) )  ->  ( ( A ^ N )  gcd 
B )  e.  NN )
3418, 20, 32, 33syl21anc 1181 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  gcd  B
)  e.  NN )
3534nnzd 10132 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  gcd  B
)  e.  ZZ )
3635adantr 451 . . . . . . . . . . . . . 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 12578 . . . . . . . . . . . . . 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 1182 . . . . . . . . . . . . 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 655 . . . . . . . . . . . 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 447 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  p  e.  Prime )
41 simpll1 994 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  A  e.  ZZ )
4215adantr 451 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  N  e.  NN )
43 prmdvdsexp 12809 . . . . . . . . . . . . 13  |-  ( ( p  e.  Prime  /\  A  e.  ZZ  /\  N  e.  NN )  ->  (
p  ||  ( A ^ N )  <->  p  ||  A
) )
4440, 41, 42, 43syl3anc 1182 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A ^ N )  <->  p  ||  A
) )
4539, 44sylibd 205 . . . . . . . . . . 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 449 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( A ^ N
)  gcd  B )  ||  B )
47 dvdstr 12578 . . . . . . . . . . . . 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 1182 . . . . . . . . . . . 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 655 . . . . . . . . . . 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 519 . . . . . . . . . 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 12738 . . . . . . . . . . 11  |-  ( ( p  e.  ZZ  /\  A  e.  ZZ  /\  B  e.  ZZ )  ->  (
( p  ||  A  /\  p  ||  B )  ->  p  ||  ( A  gcd  B ) ) )
5226, 41, 21, 51syl3anc 1182 . . . . . . . . . 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 12806 . . . . . . . . . . . . 13  |-  ( p  e.  Prime  ->  -.  p  ||  1 )
54 breq2 4043 . . . . . . . . . . . . . 14  |-  ( ( A  gcd  B )  =  1  ->  (
p  ||  ( A  gcd  B )  <->  p  ||  1
) )
5554notbid 285 . . . . . . . . . . . . 13  |-  ( ( A  gcd  B )  =  1  ->  ( -.  p  ||  ( A  gcd  B )  <->  -.  p  ||  1 ) )
5653, 55syl5ibrcom 213 . . . . . . . . . . . 12  |-  ( p  e.  Prime  ->  ( ( A  gcd  B )  =  1  ->  -.  p  ||  ( A  gcd  B ) ) )
5756necon2ad 2507 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  ( p 
||  ( A  gcd  B )  ->  ( A  gcd  B )  =/=  1
) )
5857adantl 452 . . . . . . . . . 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 51 . . . . . . . . 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 2680 . . . . . . . 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 12709 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  ( A  gcd  B )  e.  NN )
62613adantl3 1113 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A  gcd  B
)  e.  NN )
63 eluz2b3 10307 . . . . . . . . . 10  |-  ( ( A  gcd  B )  e.  ( ZZ>= `  2
)  <->  ( ( A  gcd  B )  e.  NN  /\  ( A  gcd  B )  =/=  1 ) )
6463baib 871 . . . . . . . . 9  |-  ( ( A  gcd  B )  e.  NN  ->  (
( A  gcd  B
)  e.  ( ZZ>= ` 
2 )  <->  ( A  gcd  B )  =/=  1
) )
6562, 64syl 15 . . . . . . . 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 225 . . . . . . 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 28 . . . . . 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 12805 . . . . . . 7  |-  ( ( A  gcd  B )  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  ( A  gcd  B ) )
69 gcddvds 12710 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A  gcd  B )  ||  A  /\  ( A  gcd  B ) 
||  B ) )
7041, 21, 69syl2anc 642 . . . . . . . . . . . . . 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 445 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  A )
72 iddvdsexp 12568 . . . . . . . . . . . . . 14  |-  ( ( A  e.  ZZ  /\  N  e.  NN )  ->  A  ||  ( A ^ N ) )
7341, 42, 72syl2anc 642 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  A  ||  ( A ^ N
) )
7462nnzd 10132 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A  gcd  B
)  e.  ZZ )
7574adantr 451 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  e.  ZZ )
76 dvdstr 12578 . . . . . . . . . . . . . 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 1182 . . . . . . . . . . . . 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 660 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  ( A ^ N ) )
79 dvdstr 12578 . . . . . . . . . . . . 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 1182 . . . . . . . . . . . 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 655 . . . . . . . . . . 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 449 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  B )
83 dvdstr 12578 . . . . . . . . . . . . 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 1182 . . . . . . . . . . . 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 655 . . . . . . . . . . 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 519 . . . . . . . . . 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 12738 . . . . . . . . . . 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 1182 . . . . . . . . . 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 4043 . . . . . . . . . . . . . 14  |-  ( ( ( A ^ N
)  gcd  B )  =  1  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  <->  p  ||  1
) )
9089notbid 285 . . . . . . . . . . . . 13  |-  ( ( ( A ^ N
)  gcd  B )  =  1  ->  ( -.  p  ||  ( ( A ^ N )  gcd  B )  <->  -.  p  ||  1 ) )
9153, 90syl5ibrcom 213 . . . . . . . . . . . 12  |-  ( p  e.  Prime  ->  ( ( ( A ^ N
)  gcd  B )  =  1  ->  -.  p  ||  ( ( A ^ N )  gcd 
B ) ) )
9291necon2ad 2507 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  ( p 
||  ( ( A ^ N )  gcd 
B )  ->  (
( A ^ N
)  gcd  B )  =/=  1 ) )
9392adantl 452 . . . . . . . . . 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 51 . . . . . . . . 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 2680 . . . . . . . 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 10307 . . . . . . . . . 10  |-  ( ( ( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  <->  ( ( ( A ^ N )  gcd  B
)  e.  NN  /\  ( ( A ^ N )  gcd  B
)  =/=  1 ) )
9796baib 871 . . . . . . . . 9  |-  ( ( ( A ^ N
)  gcd  B )  e.  NN  ->  ( (
( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  <->  ( ( A ^ N
)  gcd  B )  =/=  1 ) )
9834, 97syl 15 . . . . . . . 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 225 . . . . . . 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 28 . . . . . 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 183 . . . . 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 274 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  =/=  1  <->  ( A  gcd  B )  =/=  1 ) )
103102necon4bid 2525 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  =  1  <-> 
( A  gcd  B
)  =  1 ) )
104103ex 423 . 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 150 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 176    /\ wa 358    /\ w3a 934    = wceq 1632    e. wcel 1696    =/= wne 2459   E.wrex 2557   class class class wbr 4039   ` cfv 5271  (class class class)co 5874   CCcc 8751   0cc0 8753   1c1 8754   NNcn 9762   2c2 9811   NN0cn0 9981   ZZcz 10040   ZZ>=cuz 10246   ^cexp 11120    || cdivides 12547    gcd cgcd 12701   Primecprime 12774
This theorem is referenced by:  rpexp1i  12816  phiprmpw  12860  pockthlem  12968
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528  ax-cnex 8809  ax-resscn 8810  ax-1cn 8811  ax-icn 8812  ax-addcl 8813  ax-addrcl 8814  ax-mulcl 8815  ax-mulrcl 8816  ax-mulcom 8817  ax-addass 8818  ax-mulass 8819  ax-distr 8820  ax-i2m1 8821  ax-1ne0 8822  ax-1rid 8823  ax-rnegex 8824  ax-rrecex 8825  ax-cnre 8826  ax-pre-lttri 8827  ax-pre-lttrn 8828  ax-pre-ltadd 8829  ax-pre-mulgt0 8830  ax-pre-sup 8831
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-nel 2462  df-ral 2561  df-rex 2562  df-reu 2563  df-rmo 2564  df-rab 2565  df-v 2803  df-sbc 3005  df-csb 3095  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-int 3879  df-iun 3923  df-br 4040  df-opab 4094  df-mpt 4095  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-ov 5877  df-oprab 5878  df-mpt2 5879  df-1st 6138  df-2nd 6139  df-riota 6320  df-recs 6404  df-rdg 6439  df-1o 6495  df-2o 6496  df-oadd 6499  df-er 6676  df-en 6880  df-dom 6881  df-sdom 6882  df-fin 6883  df-sup 7210  df-pnf 8885  df-mnf 8886  df-xr 8887  df-ltxr 8888  df-le 8889  df-sub 9055  df-neg 9056  df-div 9440  df-nn 9763  df-2 9820  df-3 9821  df-n0 9982  df-z 10041  df-uz 10247  df-rp 10371  df-fz 10799  df-fl 10941  df-mod 10990  df-seq 11063  df-exp 11121  df-cj 11600  df-re 11601  df-im 11602  df-sqr 11736  df-abs 11737  df-dvds 12548  df-gcd 12702  df-prm 12775
  Copyright terms: Public domain W3C validator