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

Theorem qexpz 13263
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 2496 . 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 10009 . . . . . . 7  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  CC )
43mul01d 9258 . . . . . 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 10581 . . . . . . . . . . 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 10367 . . . . . . . . . 10  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  ZZ )
129, 10, 11expne0d 11522 . . . . . . . . 9  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  ( A ^ N )  =/=  0 )
13 pczcl 13215 . . . . . . . . 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 10270 . . . . . . 7  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <_  ( p  pCnt  ( A ^ N ) ) )
16 pcexp 13226 . . . . . . . 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 4229 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <_  ( N  x.  (
p  pCnt  A )
) )
194, 18eqbrtrd 4225 . . . . 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 9084 . . . . . . 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 13223 . . . . . . . 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 10368 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  (
p  pCnt  A )  e.  RR )
252nnred 10008 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  N  e.  RR )
262nngt0d 10036 . . . . . 6  |-  ( ( ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  /\  A  =/=  0 )  /\  p  e.  Prime )  ->  0  <  N )
27 lemul2 9856 . . . . . 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 2782 . . 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 13247 . . . 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 10286 . . 3  |-  0  e.  ZZ
3635a1i 11 . 2  |-  ( ( A  e.  QQ  /\  N  e.  NN  /\  ( A ^ N )  e.  ZZ )  ->  0  e.  ZZ )
371, 34, 36pm2.61ne 2674 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 1652    e. wcel 1725    =/= wne 2599   A.wral 2698   class class class wbr 4205  (class class class)co 6074   CCcc 8981   RRcr 8982   0cc0 8983    x. cmul 8988    < clt 9113    <_ cle 9114   NNcn 9993   NN0cn0 10214   ZZcz 10275   QQcq 10567   ^cexp 11375   Primecprime 13072    pCnt cpc 13203
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1555  ax-5 1566  ax-17 1626  ax-9 1666  ax-8 1687  ax-13 1727  ax-14 1729  ax-6 1744  ax-7 1749  ax-11 1761  ax-12 1950  ax-ext 2417  ax-sep 4323  ax-nul 4331  ax-pow 4370  ax-pr 4396  ax-un 4694  ax-cnex 9039  ax-resscn 9040  ax-1cn 9041  ax-icn 9042  ax-addcl 9043  ax-addrcl 9044  ax-mulcl 9045  ax-mulrcl 9046  ax-mulcom 9047  ax-addass 9048  ax-mulass 9049  ax-distr 9050  ax-i2m1 9051  ax-1ne0 9052  ax-1rid 9053  ax-rnegex 9054  ax-rrecex 9055  ax-cnre 9056  ax-pre-lttri 9057  ax-pre-lttrn 9058  ax-pre-ltadd 9059  ax-pre-mulgt0 9060  ax-pre-sup 9061
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3or 937  df-3an 938  df-tru 1328  df-ex 1551  df-nf 1554  df-sb 1659  df-eu 2285  df-mo 2286  df-clab 2423  df-cleq 2429  df-clel 2432  df-nfc 2561  df-ne 2601  df-nel 2602  df-ral 2703  df-rex 2704  df-reu 2705  df-rmo 2706  df-rab 2707  df-v 2951  df-sbc 3155  df-csb 3245  df-dif 3316  df-un 3318  df-in 3320  df-ss 3327  df-pss 3329  df-nul 3622  df-if 3733  df-pw 3794  df-sn 3813  df-pr 3814  df-tp 3815  df-op 3816  df-uni 4009  df-int 4044  df-iun 4088  df-br 4206  df-opab 4260  df-mpt 4261  df-tr 4296  df-eprel 4487  df-id 4491  df-po 4496  df-so 4497  df-fr 4534  df-we 4536  df-ord 4577  df-on 4578  df-lim 4579  df-suc 4580  df-om 4839  df-xp 4877  df-rel 4878  df-cnv 4879  df-co 4880  df-dm 4881  df-rn 4882  df-res 4883  df-ima 4884  df-iota 5411  df-fun 5449  df-fn 5450  df-f 5451  df-f1 5452  df-fo 5453  df-f1o 5454  df-fv 5455  df-ov 6077  df-oprab 6078  df-mpt2 6079  df-1st 6342  df-2nd 6343  df-riota 6542  df-recs 6626  df-rdg 6661  df-1o 6717  df-2o 6718  df-oadd 6721  df-er 6898  df-en 7103  df-dom 7104  df-sdom 7105  df-fin 7106  df-sup 7439  df-pnf 9115  df-mnf 9116  df-xr 9117  df-ltxr 9118  df-le 9119  df-sub 9286  df-neg 9287  df-div 9671  df-nn 9994  df-2 10051  df-3 10052  df-n0 10215  df-z 10276  df-uz 10482  df-q 10568  df-rp 10606  df-fz 11037  df-fl 11195  df-mod 11244  df-seq 11317  df-exp 11376  df-cj 11897  df-re 11898  df-im 11899  df-sqr 12033  df-abs 12034  df-dvds 12846  df-gcd 13000  df-prm 13073  df-pc 13204
  Copyright terms: Public domain W3C validator