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

Theorem qexpz 13190
Description: If a power of a rational number is an integer, then the number is an integer. In other words, all n-th roots are irrational unless they are integers (so that the original number is an n-th power). (Contributed by Mario Carneiro, 10-Aug-2015.)
Assertion
Ref Expression
qexpz  |-  ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  ->  A  e.  ZZ )

Proof of Theorem qexpz
Dummy variable  p is distinct from all other variables.
StepHypRef Expression
1 eleq1 2440 . 2  |-  ( A  =  0  ->  ( A  e.  ZZ  <->  0  e.  ZZ ) )
2 simpll2 997 . . . . . . . 8  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  NN )
32nncnd 9941 . . . . . . 7  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  CC )
43mul01d 9190 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  ( N  x.  0 )  =  0 )
5 simpr 448 . . . . . . . . 9  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  p  e.  Prime )
6 simpll3 998 . . . . . . . . 9  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  ( A ^ N )  e.  ZZ )
7 simpll1 996 . . . . . . . . . . 11  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  A  e.  QQ )
8 qcn 10513 . . . . . . . . . . 11  |-  ( A  e.  QQ  ->  A  e.  CC )
97, 8syl 16 . . . . . . . . . 10  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  A  e.  CC )
10 simplr 732 . . . . . . . . . 10  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  A  =/=  0 )
112nnzd 10299 . . . . . . . . . 10  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  ZZ )
129, 10, 11expne0d 11449 . . . . . . . . 9  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  ( A ^ N )  =/=  0 )
13 pczcl 13142 . . . . . . . . 9  |-  ( ( p  e.  Prime  /\  (
( A ^ N
)  e.  ZZ  /\  ( A ^ N )  =/=  0 ) )  ->  ( p  pCnt  ( A ^ N ) )  e.  NN0 )
145, 6, 12, 13syl12anc 1182 . . . . . . . 8  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  (
p  pCnt  ( A ^ N ) )  e. 
NN0 )
1514nn0ge0d 10202 . . . . . . 7  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <_  ( p  pCnt  ( A ^ N ) ) )
16 pcexp 13153 . . . . . . . 8  |-  ( ( p  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  N  e.  ZZ )  ->  (
p  pCnt  ( A ^ N ) )  =  ( N  x.  (
p  pCnt  A )
) )
175, 7, 10, 11, 16syl121anc 1189 . . . . . . 7  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  (
p  pCnt  ( A ^ N ) )  =  ( N  x.  (
p  pCnt  A )
) )
1815, 17breqtrd 4170 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <_  ( N  x.  (
p  pCnt  A )
) )
194, 18eqbrtrd 4166 . . . . 5  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  ( N  x.  0 )  <_  ( N  x.  ( p  pCnt  A ) ) )
20 0re 9017 . . . . . . 7  |-  0  e.  RR
2120a1i 11 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  e.  RR )
22 pcqcl 13150 . . . . . . . 8  |-  ( ( p  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 ) )  -> 
( p  pCnt  A
)  e.  ZZ )
235, 7, 10, 22syl12anc 1182 . . . . . . 7  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  (
p  pCnt  A )  e.  ZZ )
2423zred 10300 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  (
p  pCnt  A )  e.  RR )
252nnred 9940 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  RR )
262nngt0d 9968 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <  N )
27 lemul2 9788 . . . . . 6  |-  ( ( 0  e.  RR  /\  ( p  pCnt  A )  e.  RR  /\  ( N  e.  RR  /\  0  <  N ) )  -> 
( 0  <_  (
p  pCnt  A )  <->  ( N  x.  0 )  <_  ( N  x.  ( p  pCnt  A ) ) ) )
2821, 24, 25, 26, 27syl112anc 1188 . . . . 5  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  (
0  <_  ( p  pCnt  A )  <->  ( N  x.  0 )  <_  ( N  x.  ( p  pCnt  A ) ) ) )
2919, 28mpbird 224 . . . 4  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <_  ( p  pCnt  A
) )
3029ralrimiva 2725 . . 3  |-  ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  ->  A. p  e.  Prime  0  <_  ( p  pCnt  A ) )
31 simpl1 960 . . . 4  |-  ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  ->  A  e.  QQ )
32 pcz 13174 . . . 4  |-  ( A  e.  QQ  ->  ( A  e.  ZZ  <->  A. p  e.  Prime  0  <_  (
p  pCnt  A )
) )
3331, 32syl 16 . . 3  |-  ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  -> 
( A  e.  ZZ  <->  A. p  e.  Prime  0  <_  ( p  pCnt  A
) ) )
3430, 33mpbird 224 . 2  |-  ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  ->  A  e.  ZZ )
35 0z 10218 . . 3  |-  0  e.  ZZ
3635a1i 11 . 2  |-  ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  ->  0  e.  ZZ )
371, 34, 36pm2.61ne 2618 1  |-  ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  ->  A  e.  ZZ )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 177    /\ wa 359    /\ w3a 936    = wceq 1649    e. wcel 1717    =/= wne 2543   A.wral 2642   class class class wbr 4146  (class class class)co 6013   CCcc 8914   RRcr 8915   0cc0 8916    x. cmul 8921    < clt 9046    <_ cle 9047   NNcn 9925   NN0cn0 10146   ZZcz 10207   QQcq 10499   ^cexp 11302   Primecprime 12999    pCnt cpc 13130
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 2361  ax-sep 4264  ax-nul 4272  ax-pow 4311  ax-pr 4337  ax-un 4634  ax-cnex 8972  ax-resscn 8973  ax-1cn 8974  ax-icn 8975  ax-addcl 8976  ax-addrcl 8977  ax-mulcl 8978  ax-mulrcl 8979  ax-mulcom 8980  ax-addass 8981  ax-mulass 8982  ax-distr 8983  ax-i2m1 8984  ax-1ne0 8985  ax-1rid 8986  ax-rnegex 8987  ax-rrecex 8988  ax-cnre 8989  ax-pre-lttri 8990  ax-pre-lttrn 8991  ax-pre-ltadd 8992  ax-pre-mulgt0 8993  ax-pre-sup 8994
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 2235  df-mo 2236  df-clab 2367  df-cleq 2373  df-clel 2376  df-nfc 2505  df-ne 2545  df-nel 2546  df-ral 2647  df-rex 2648  df-reu 2649  df-rmo 2650  df-rab 2651  df-v 2894  df-sbc 3098  df-csb 3188  df-dif 3259  df-un 3261  df-in 3263  df-ss 3270  df-pss 3272  df-nul 3565  df-if 3676  df-pw 3737  df-sn 3756  df-pr 3757  df-tp 3758  df-op 3759  df-uni 3951  df-int 3986  df-iun 4030  df-br 4147  df-opab 4201  df-mpt 4202  df-tr 4237  df-eprel 4428  df-id 4432  df-po 4437  df-so 4438  df-fr 4475  df-we 4477  df-ord 4518  df-on 4519  df-lim 4520  df-suc 4521  df-om 4779  df-xp 4817  df-rel 4818  df-cnv 4819  df-co 4820  df-dm 4821  df-rn 4822  df-res 4823  df-ima 4824  df-iota 5351  df-fun 5389  df-fn 5390  df-f 5391  df-f1 5392  df-fo 5393  df-f1o 5394  df-fv 5395  df-ov 6016  df-oprab 6017  df-mpt2 6018  df-1st 6281  df-2nd 6282  df-riota 6478  df-recs 6562  df-rdg 6597  df-1o 6653  df-2o 6654  df-oadd 6657  df-er 6834  df-en 7039  df-dom 7040  df-sdom 7041  df-fin 7042  df-sup 7374  df-pnf 9048  df-mnf 9049  df-xr 9050  df-ltxr 9051  df-le 9052  df-sub 9218  df-neg 9219  df-div 9603  df-nn 9926  df-2 9983  df-3 9984  df-n0 10147  df-z 10208  df-uz 10414  df-q 10500  df-rp 10538  df-fz 10969  df-fl 11122  df-mod 11171  df-seq 11244  df-exp 11303  df-cj 11824  df-re 11825  df-im 11826  df-sqr 11960  df-abs 11961  df-dvds 12773  df-gcd 12927  df-prm 13000  df-pc 13131
  Copyright terms: Public domain W3C validator