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

Theorem rpexp 12107
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 10511 . . . . . 6  |-  ( N  e.  NN  ->  (
0 ^ N )  =  0 )
21oveq1d 5868 . . . . 5  |-  ( N  e.  NN  ->  (
( 0 ^ N
)  gcd  0 )  =  ( 0  gcd  0 ) )
32eqeq1d 2179 . . . 4  |-  ( N  e.  NN  ->  (
( ( 0 ^ N )  gcd  0
)  =  1  <->  (
0  gcd  0 )  =  1 ) )
4 oveq1 5860 . . . . . . 7  |-  ( A  =  0  ->  ( A ^ N )  =  ( 0 ^ N
) )
5 oveq12 5862 . . . . . . 7  |-  ( ( ( A ^ N
)  =  ( 0 ^ N )  /\  B  =  0 )  ->  ( ( A ^ N )  gcd 
B )  =  ( ( 0 ^ N
)  gcd  0 ) )
64, 5sylan 281 . . . . . 6  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( A ^ N )  gcd 
B )  =  ( ( 0 ^ N
)  gcd  0 ) )
76eqeq1d 2179 . . . . 5  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( ( A ^ N )  gcd  B )  =  1  <->  ( ( 0 ^ N )  gcd  0 )  =  1 ) )
8 oveq12 5862 . . . . . 6  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( A  gcd  B )  =  ( 0  gcd  0 ) )
98eqeq1d 2179 . . . . 5  |-  ( ( A  =  0  /\  B  =  0 )  ->  ( ( A  gcd  B )  =  1  <->  ( 0  gcd  0 )  =  1 ) )
107, 9bibi12d 234 . . . 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 156 . . 3  |-  ( N  e.  NN  ->  (
( A  =  0  /\  B  =  0 )  ->  ( (
( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 ) ) )
12113ad2ant3 1015 . 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 12092 . . . . . . 7  |-  ( ( ( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  ->  E. p  e.  Prime  p 
||  ( ( A ^ N )  gcd 
B ) )
14 simpl1 995 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  A  e.  ZZ )
15 simpl3 997 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  N  e.  NN )
1615nnnn0d 9188 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  N  e.  NN0 )
17 zexpcl 10491 . . . . . . . . . . . . . . . . 17  |-  ( ( A  e.  ZZ  /\  N  e.  NN0 )  -> 
( A ^ N
)  e.  ZZ )
1814, 16, 17syl2anc 409 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A ^ N
)  e.  ZZ )
1918adantr 274 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A ^ N )  e.  ZZ )
20 simpl2 996 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  B  e.  ZZ )
2120adantr 274 . . . . . . . . . . . . . . 15  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  B  e.  ZZ )
22 gcddvds 11918 . . . . . . . . . . . . . . 15  |-  ( ( ( A ^ N
)  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( ( A ^ N )  gcd 
B )  ||  ( A ^ N )  /\  ( ( A ^ N )  gcd  B
)  ||  B )
)
2319, 21, 22syl2anc 409 . . . . . . . . . . . . . 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 111 . . . . . . . . . . . . 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 12065 . . . . . . . . . . . . . . 15  |-  ( p  e.  Prime  ->  p  e.  ZZ )
2625adantl 275 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  p  e.  ZZ )
27 simpr 109 . . . . . . . . . . . . . . . . . 18  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  -.  ( A  =  0  /\  B  =  0 ) )
2814zcnd 9335 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  A  e.  CC )
29 expeq0 10507 . . . . . . . . . . . . . . . . . . . 20  |-  ( ( A  e.  CC  /\  N  e.  NN )  ->  ( ( A ^ N )  =  0  <-> 
A  =  0 ) )
3028, 15, 29syl2anc 409 . . . . . . . . . . . . . . . . . . 19  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  =  0  <-> 
A  =  0 ) )
3130anbi1d 462 . . . . . . . . . . . . . . . . . 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 668 . . . . . . . . . . . . . . . . 17  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  -.  ( ( A ^ N )  =  0  /\  B  =  0 ) )
33 gcdn0cl 11917 . . . . . . . . . . . . . . . . 17  |-  ( ( ( ( A ^ N )  e.  ZZ  /\  B  e.  ZZ )  /\  -.  ( ( A ^ N )  =  0  /\  B  =  0 ) )  ->  ( ( A ^ N )  gcd 
B )  e.  NN )
3418, 20, 32, 33syl21anc 1232 . . . . . . . . . . . . . . . 16  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  gcd  B
)  e.  NN )
3534nnzd 9333 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( A ^ N )  gcd  B
)  e.  ZZ )
3635adantr 274 . . . . . . . . . . . . . 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 11790 . . . . . . . . . . . . . 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 1233 . . . . . . . . . . . . 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 426 . . . . . . . . . . . 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 109 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  p  e.  Prime )
41 simpll1 1031 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  A  e.  ZZ )
4215adantr 274 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  N  e.  NN )
43 prmdvdsexp 12102 . . . . . . . . . . . . 13  |-  ( ( p  e.  Prime  /\  A  e.  ZZ  /\  N  e.  NN )  ->  (
p  ||  ( A ^ N )  <->  p  ||  A
) )
4440, 41, 42, 43syl3anc 1233 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
p  ||  ( A ^ N )  <->  p  ||  A
) )
4539, 44sylibd 148 . . . . . . . . . . 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 113 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  (
( A ^ N
)  gcd  B )  ||  B )
47 dvdstr 11790 . . . . . . . . . . . . 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 1233 . . . . . . . . . . . 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 426 . . . . . . . . . . 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 305 . . . . . . . . . 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 11967 . . . . . . . . . . 11  |-  ( ( p  e.  ZZ  /\  A  e.  ZZ  /\  B  e.  ZZ )  ->  (
( p  ||  A  /\  p  ||  B )  ->  p  ||  ( A  gcd  B ) ) )
5226, 41, 21, 51syl3anc 1233 . . . . . . . . . 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 12094 . . . . . . . . . . . . 13  |-  ( p  e.  Prime  ->  -.  p  ||  1 )
54 breq2 3993 . . . . . . . . . . . . . 14  |-  ( ( A  gcd  B )  =  1  ->  (
p  ||  ( A  gcd  B )  <->  p  ||  1
) )
5554notbid 662 . . . . . . . . . . . . 13  |-  ( ( A  gcd  B )  =  1  ->  ( -.  p  ||  ( A  gcd  B )  <->  -.  p  ||  1 ) )
5653, 55syl5ibrcom 156 . . . . . . . . . . . 12  |-  ( p  e.  Prime  ->  ( ( A  gcd  B )  =  1  ->  -.  p  ||  ( A  gcd  B ) ) )
5756necon2ad 2397 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  ( p 
||  ( A  gcd  B )  ->  ( A  gcd  B )  =/=  1
) )
5857adantl 275 . . . . . . . . . 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 57 . . . . . . . . 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 2587 . . . . . . . 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 11917 . . . . . . . . . 10  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  -.  ( A  =  0  /\  B  =  0 ) )  ->  ( A  gcd  B )  e.  NN )
62613adantl3 1150 . . . . . . . . 9  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A  gcd  B
)  e.  NN )
63 eluz2b3 9563 . . . . . . . . . 10  |-  ( ( A  gcd  B )  e.  ( ZZ>= `  2
)  <->  ( ( A  gcd  B )  e.  NN  /\  ( A  gcd  B )  =/=  1 ) )
6463baib 914 . . . . . . . . 9  |-  ( ( A  gcd  B )  e.  NN  ->  (
( A  gcd  B
)  e.  ( ZZ>= ` 
2 )  <->  ( A  gcd  B )  =/=  1
) )
6562, 64syl 14 . . . . . . . 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 168 . . . . . . 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 32 . . . . . 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 12092 . . . . . . 7  |-  ( ( A  gcd  B )  e.  ( ZZ>= `  2
)  ->  E. p  e.  Prime  p  ||  ( A  gcd  B ) )
69 gcddvds 11918 . . . . . . . . . . . . . . 15  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A  gcd  B )  ||  A  /\  ( A  gcd  B ) 
||  B ) )
7041, 21, 69syl2anc 409 . . . . . . . . . . . . . 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 111 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  A )
72 iddvdsexp 11777 . . . . . . . . . . . . . 14  |-  ( ( A  e.  ZZ  /\  N  e.  NN )  ->  A  ||  ( A ^ N ) )
7341, 42, 72syl2anc 409 . . . . . . . . . . . . 13  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  A  ||  ( A ^ N
) )
7462nnzd 9333 . . . . . . . . . . . . . . 15  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( A  gcd  B
)  e.  ZZ )
7574adantr 274 . . . . . . . . . . . . . 14  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  e.  ZZ )
76 dvdstr 11790 . . . . . . . . . . . . . 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 1233 . . . . . . . . . . . . 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 431 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  ( A ^ N ) )
79 dvdstr 11790 . . . . . . . . . . . . 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 1233 . . . . . . . . . . . 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 426 . . . . . . . . . . 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 113 . . . . . . . . . . . 12  |-  ( ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0
) )  /\  p  e.  Prime )  ->  ( A  gcd  B )  ||  B )
83 dvdstr 11790 . . . . . . . . . . . . 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 1233 . . . . . . . . . . . 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 426 . . . . . . . . . . 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 305 . . . . . . . . . 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 11967 . . . . . . . . . . 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 1233 . . . . . . . . . 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 3993 . . . . . . . . . . . . . 14  |-  ( ( ( A ^ N
)  gcd  B )  =  1  ->  (
p  ||  ( ( A ^ N )  gcd 
B )  <->  p  ||  1
) )
9089notbid 662 . . . . . . . . . . . . 13  |-  ( ( ( A ^ N
)  gcd  B )  =  1  ->  ( -.  p  ||  ( ( A ^ N )  gcd  B )  <->  -.  p  ||  1 ) )
9153, 90syl5ibrcom 156 . . . . . . . . . . . 12  |-  ( p  e.  Prime  ->  ( ( ( A ^ N
)  gcd  B )  =  1  ->  -.  p  ||  ( ( A ^ N )  gcd 
B ) ) )
9291necon2ad 2397 . . . . . . . . . . 11  |-  ( p  e.  Prime  ->  ( p 
||  ( ( A ^ N )  gcd 
B )  ->  (
( A ^ N
)  gcd  B )  =/=  1 ) )
9392adantl 275 . . . . . . . . . 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 57 . . . . . . . . 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 2587 . . . . . . . 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 9563 . . . . . . . . . 10  |-  ( ( ( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  <->  ( ( ( A ^ N )  gcd  B
)  e.  NN  /\  ( ( A ^ N )  gcd  B
)  =/=  1 ) )
9796baib 914 . . . . . . . . 9  |-  ( ( ( A ^ N
)  gcd  B )  e.  NN  ->  ( (
( A ^ N
)  gcd  B )  e.  ( ZZ>= `  2 )  <->  ( ( A ^ N
)  gcd  B )  =/=  1 ) )
9834, 97syl 14 . . . . . . . 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 168 . . . . . . 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 32 . . . . . 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 128 . . . . 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 217 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  =/=  1  <->  ( A  gcd  B )  =/=  1 ) )
103 simp1 992 . . . . . . . . . 10  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  A  e.  ZZ )
104 simp3 994 . . . . . . . . . . 11  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  N  e.  NN )
105104nnnn0d 9188 . . . . . . . . . 10  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  N  e.  NN0 )
106103, 105, 17syl2anc 409 . . . . . . . . 9  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  ( A ^ N )  e.  ZZ )
107 simp2 993 . . . . . . . . 9  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  B  e.  ZZ )
108106, 107gcdcld 11923 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( A ^ N
)  gcd  B )  e.  NN0 )
109108nn0zd 9332 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( A ^ N
)  gcd  B )  e.  ZZ )
110 1zzd 9239 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  1  e.  ZZ )
111 zdceq 9287 . . . . . . 7  |-  ( ( ( ( A ^ N )  gcd  B
)  e.  ZZ  /\  1  e.  ZZ )  -> DECID  ( ( A ^ N
)  gcd  B )  =  1 )
112109, 110, 111syl2anc 409 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  -> DECID  ( ( A ^ N )  gcd  B
)  =  1 )
113103, 107gcdcld 11923 . . . . . . . 8  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  ( A  gcd  B )  e. 
NN0 )
114113nn0zd 9332 . . . . . . 7  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  ( A  gcd  B )  e.  ZZ )
115 zdceq 9287 . . . . . . 7  |-  ( ( ( A  gcd  B
)  e.  ZZ  /\  1  e.  ZZ )  -> DECID  ( A  gcd  B )  =  1 )
116114, 110, 115syl2anc 409 . . . . . 6  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  -> DECID  ( A  gcd  B
)  =  1 )
117 nebidc 2420 . . . . . 6  |-  (DECID  ( ( A ^ N )  gcd  B )  =  1  ->  (DECID  ( A  gcd  B )  =  1  ->  ( ( ( ( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 )  <->  ( ( ( A ^ N )  gcd  B )  =/=  1  <->  ( A  gcd  B )  =/=  1 ) ) ) )
118112, 116, 117sylc 62 . . . . 5  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( ( ( A ^ N )  gcd 
B )  =  1  <-> 
( A  gcd  B
)  =  1 )  <-> 
( ( ( A ^ N )  gcd 
B )  =/=  1  <->  ( A  gcd  B )  =/=  1 ) ) )
119118adantr 274 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( ( A ^ N )  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 )  <-> 
( ( ( A ^ N )  gcd 
B )  =/=  1  <->  ( A  gcd  B )  =/=  1 ) ) )
120102, 119mpbird 166 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  /\  -.  ( A  =  0  /\  B  =  0 ) )  -> 
( ( ( A ^ N )  gcd 
B )  =  1  <-> 
( A  gcd  B
)  =  1 ) )
121120ex 114 . 2  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  ( -.  ( A  =  0  /\  B  =  0 )  ->  ( (
( A ^ N
)  gcd  B )  =  1  <->  ( A  gcd  B )  =  1 ) ) )
122 gcdmndc 11899 . . . 4  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  -> DECID  ( A  =  0  /\  B  =  0 ) )
123 exmiddc 831 . . . 4  |-  (DECID  ( A  =  0  /\  B  =  0 )  -> 
( ( A  =  0  /\  B  =  0 )  \/  -.  ( A  =  0  /\  B  =  0
) ) )
124122, 123syl 14 . . 3  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( A  =  0  /\  B  =  0 )  \/  -.  ( A  =  0  /\  B  =  0
) ) )
1251243adant3 1012 . 2  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ  /\  N  e.  NN )  ->  (
( A  =  0  /\  B  =  0 )  \/  -.  ( A  =  0  /\  B  =  0 ) ) )
12612, 121, 125mpjaod 713 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    /\ wa 103    <-> wb 104    \/ wo 703  DECID wdc 829    /\ w3a 973    = wceq 1348    e. wcel 2141    =/= wne 2340   E.wrex 2449   class class class wbr 3989   ` cfv 5198  (class class class)co 5853   CCcc 7772   0cc0 7774   1c1 7775   NNcn 8878   2c2 8929   NN0cn0 9135   ZZcz 9212   ZZ>=cuz 9487   ^cexp 10475    || cdvds 11749    gcd cgcd 11897   Primecprime 12061
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 609  ax-in2 610  ax-io 704  ax-5 1440  ax-7 1441  ax-gen 1442  ax-ie1 1486  ax-ie2 1487  ax-8 1497  ax-10 1498  ax-11 1499  ax-i12 1500  ax-bndl 1502  ax-4 1503  ax-17 1519  ax-i9 1523  ax-ial 1527  ax-i5r 1528  ax-13 2143  ax-14 2144  ax-ext 2152  ax-coll 4104  ax-sep 4107  ax-nul 4115  ax-pow 4160  ax-pr 4194  ax-un 4418  ax-setind 4521  ax-iinf 4572  ax-cnex 7865  ax-resscn 7866  ax-1cn 7867  ax-1re 7868  ax-icn 7869  ax-addcl 7870  ax-addrcl 7871  ax-mulcl 7872  ax-mulrcl 7873  ax-addcom 7874  ax-mulcom 7875  ax-addass 7876  ax-mulass 7877  ax-distr 7878  ax-i2m1 7879  ax-0lt1 7880  ax-1rid 7881  ax-0id 7882  ax-rnegex 7883  ax-precex 7884  ax-cnre 7885  ax-pre-ltirr 7886  ax-pre-ltwlin 7887  ax-pre-lttrn 7888  ax-pre-apti 7889  ax-pre-ltadd 7890  ax-pre-mulgt0 7891  ax-pre-mulext 7892  ax-arch 7893  ax-caucvg 7894
This theorem depends on definitions:  df-bi 116  df-stab 826  df-dc 830  df-3or 974  df-3an 975  df-tru 1351  df-fal 1354  df-nf 1454  df-sb 1756  df-eu 2022  df-mo 2023  df-clab 2157  df-cleq 2163  df-clel 2166  df-nfc 2301  df-ne 2341  df-nel 2436  df-ral 2453  df-rex 2454  df-reu 2455  df-rmo 2456  df-rab 2457  df-v 2732  df-sbc 2956  df-csb 3050  df-dif 3123  df-un 3125  df-in 3127  df-ss 3134  df-nul 3415  df-if 3527  df-pw 3568  df-sn 3589  df-pr 3590  df-op 3592  df-uni 3797  df-int 3832  df-iun 3875  df-br 3990  df-opab 4051  df-mpt 4052  df-tr 4088  df-id 4278  df-po 4281  df-iso 4282  df-iord 4351  df-on 4353  df-ilim 4354  df-suc 4356  df-iom 4575  df-xp 4617  df-rel 4618  df-cnv 4619  df-co 4620  df-dm 4621  df-rn 4622  df-res 4623  df-ima 4624  df-iota 5160  df-fun 5200  df-fn 5201  df-f 5202  df-f1 5203  df-fo 5204  df-f1o 5205  df-fv 5206  df-riota 5809  df-ov 5856  df-oprab 5857  df-mpo 5858  df-1st 6119  df-2nd 6120  df-recs 6284  df-frec 6370  df-1o 6395  df-2o 6396  df-er 6513  df-en 6719  df-sup 6961  df-pnf 7956  df-mnf 7957  df-xr 7958  df-ltxr 7959  df-le 7960  df-sub 8092  df-neg 8093  df-reap 8494  df-ap 8501  df-div 8590  df-inn 8879  df-2 8937  df-3 8938  df-4 8939  df-n0 9136  df-z 9213  df-uz 9488  df-q 9579  df-rp 9611  df-fz 9966  df-fzo 10099  df-fl 10226  df-mod 10279  df-seqfrec 10402  df-exp 10476  df-cj 10806  df-re 10807  df-im 10808  df-rsqrt 10962  df-abs 10963  df-dvds 11750  df-gcd 11898  df-prm 12062
This theorem is referenced by:  rpexp1i  12108  phiprmpw  12176  pockthlem  12308  logbgcd1irr  13679  logbgcd1irraplemexp  13680
  Copyright terms: Public domain W3C validator