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

Theorem pcqdiv 14012
Description: Division property of the prime power function. (Contributed by Mario Carneiro, 10-Aug-2015.)
Assertion
Ref Expression
pcqdiv  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  ( A  /  B ) )  =  ( ( P 
pCnt  A )  -  ( P  pCnt  B ) ) )

Proof of Theorem pcqdiv
StepHypRef Expression
1 simp2l 1014 . . . . . . 7  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  A  e.  QQ )
2 qcn 11054 . . . . . . 7  |-  ( A  e.  QQ  ->  A  e.  CC )
31, 2syl 16 . . . . . 6  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  A  e.  CC )
4 simp3l 1016 . . . . . . 7  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  B  e.  QQ )
5 qcn 11054 . . . . . . 7  |-  ( B  e.  QQ  ->  B  e.  CC )
64, 5syl 16 . . . . . 6  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  B  e.  CC )
7 simp3r 1017 . . . . . 6  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  B  =/=  0 )
83, 6, 7divcan1d 10195 . . . . 5  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( ( A  /  B )  x.  B
)  =  A )
98oveq2d 6192 . . . 4  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  (
( A  /  B
)  x.  B ) )  =  ( P 
pCnt  A ) )
10 simp1 988 . . . . 5  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  P  e.  Prime )
11 qdivcl 11061 . . . . . 6  |-  ( ( A  e.  QQ  /\  B  e.  QQ  /\  B  =/=  0 )  ->  ( A  /  B )  e.  QQ )
121, 4, 7, 11syl3anc 1219 . . . . 5  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( A  /  B
)  e.  QQ )
13 simp2r 1015 . . . . . 6  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  ->  A  =/=  0 )
143, 6, 13, 7divne0d 10210 . . . . 5  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( A  /  B
)  =/=  0 )
15 pcqmul 14008 . . . . 5  |-  ( ( P  e.  Prime  /\  (
( A  /  B
)  e.  QQ  /\  ( A  /  B
)  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  (
( A  /  B
)  x.  B ) )  =  ( ( P  pCnt  ( A  /  B ) )  +  ( P  pCnt  B
) ) )
1610, 12, 14, 4, 7, 15syl122anc 1228 . . . 4  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  (
( A  /  B
)  x.  B ) )  =  ( ( P  pCnt  ( A  /  B ) )  +  ( P  pCnt  B
) ) )
179, 16eqtr3d 2492 . . 3  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  A
)  =  ( ( P  pCnt  ( A  /  B ) )  +  ( P  pCnt  B
) ) )
1817oveq1d 6191 . 2  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( ( P  pCnt  A )  -  ( P 
pCnt  B ) )  =  ( ( ( P 
pCnt  ( A  /  B ) )  +  ( P  pCnt  B
) )  -  ( P  pCnt  B ) ) )
19 pcqcl 14011 . . . . 5  |-  ( ( P  e.  Prime  /\  (
( A  /  B
)  e.  QQ  /\  ( A  /  B
)  =/=  0 ) )  ->  ( P  pCnt  ( A  /  B
) )  e.  ZZ )
2010, 12, 14, 19syl12anc 1217 . . . 4  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  ( A  /  B ) )  e.  ZZ )
2120zcnd 10835 . . 3  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  ( A  /  B ) )  e.  CC )
22 pcqcl 14011 . . . . 5  |-  ( ( P  e.  Prime  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  B
)  e.  ZZ )
23223adant2 1007 . . . 4  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  B
)  e.  ZZ )
2423zcnd 10835 . . 3  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  B
)  e.  CC )
2521, 24pncand 9807 . 2  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( ( ( P 
pCnt  ( A  /  B ) )  +  ( P  pCnt  B
) )  -  ( P  pCnt  B ) )  =  ( P  pCnt  ( A  /  B ) ) )
2618, 25eqtr2d 2491 1  |-  ( ( P  e.  Prime  /\  ( A  e.  QQ  /\  A  =/=  0 )  /\  ( B  e.  QQ  /\  B  =/=  0 ) )  -> 
( P  pCnt  ( A  /  B ) )  =  ( ( P 
pCnt  A )  -  ( P  pCnt  B ) ) )
Colors of variables: wff setvar class
Syntax hints:    -> wi 4    /\ wa 369    /\ w3a 965    = wceq 1370    e. wcel 1757    =/= wne 2641  (class class class)co 6176   CCcc 9367   0cc0 9369    + caddc 9372    x. cmul 9374    - cmin 9682    / cdiv 10080   ZZcz 10733   QQcq 11040   Primecprime 13851    pCnt cpc 13991
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1709  ax-7 1729  ax-8 1759  ax-9 1761  ax-10 1776  ax-11 1781  ax-12 1793  ax-13 1944  ax-ext 2429  ax-sep 4497  ax-nul 4505  ax-pow 4554  ax-pr 4615  ax-un 6458  ax-cnex 9425  ax-resscn 9426  ax-1cn 9427  ax-icn 9428  ax-addcl 9429  ax-addrcl 9430  ax-mulcl 9431  ax-mulrcl 9432  ax-mulcom 9433  ax-addass 9434  ax-mulass 9435  ax-distr 9436  ax-i2m1 9437  ax-1ne0 9438  ax-1rid 9439  ax-rnegex 9440  ax-rrecex 9441  ax-cnre 9442  ax-pre-lttri 9443  ax-pre-lttrn 9444  ax-pre-ltadd 9445  ax-pre-mulgt0 9446  ax-pre-sup 9447
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1702  df-eu 2263  df-mo 2264  df-clab 2436  df-cleq 2442  df-clel 2445  df-nfc 2598  df-ne 2643  df-nel 2644  df-ral 2797  df-rex 2798  df-reu 2799  df-rmo 2800  df-rab 2801  df-v 3056  df-sbc 3271  df-csb 3373  df-dif 3415  df-un 3417  df-in 3419  df-ss 3426  df-pss 3428  df-nul 3722  df-if 3876  df-pw 3946  df-sn 3962  df-pr 3964  df-tp 3966  df-op 3968  df-uni 4176  df-int 4213  df-iun 4257  df-br 4377  df-opab 4435  df-mpt 4436  df-tr 4470  df-eprel 4716  df-id 4720  df-po 4725  df-so 4726  df-fr 4763  df-we 4765  df-ord 4806  df-on 4807  df-lim 4808  df-suc 4809  df-xp 4930  df-rel 4931  df-cnv 4932  df-co 4933  df-dm 4934  df-rn 4935  df-res 4936  df-ima 4937  df-iota 5465  df-fun 5504  df-fn 5505  df-f 5506  df-f1 5507  df-fo 5508  df-f1o 5509  df-fv 5510  df-riota 6137  df-ov 6179  df-oprab 6180  df-mpt2 6181  df-om 6563  df-1st 6663  df-2nd 6664  df-recs 6918  df-rdg 6952  df-1o 7006  df-2o 7007  df-oadd 7010  df-er 7187  df-en 7397  df-dom 7398  df-sdom 7399  df-fin 7400  df-sup 7778  df-pnf 9507  df-mnf 9508  df-xr 9509  df-ltxr 9510  df-le 9511  df-sub 9684  df-neg 9685  df-div 10081  df-nn 10410  df-2 10467  df-3 10468  df-n0 10667  df-z 10734  df-uz 10949  df-q 11041  df-rp 11079  df-fl 11729  df-mod 11796  df-seq 11894  df-exp 11953  df-cj 12676  df-re 12677  df-im 12678  df-sqr 12812  df-abs 12813  df-dvds 13624  df-gcd 13779  df-prm 13852  df-pc 13992
This theorem is referenced by:  pcrec  14013
  Copyright terms: Public domain W3C validator