Metamath Proof Explorer


Theorem pcdvdstr

Description: The prime count increases under the divisibility relation. (Contributed by Mario Carneiro, 13-Mar-2014)

Ref Expression
Assertion pcdvdstr P A B A B P pCnt A P pCnt B

Proof

Step Hyp Ref Expression
1 0z 0
2 zq 0 0
3 1 2 ax-mp 0
4 pcxcl P 0 P pCnt 0 *
5 3 4 mpan2 P P pCnt 0 *
6 5 xrleidd P P pCnt 0 P pCnt 0
7 6 ad2antrr P A B A B A = 0 P pCnt 0 P pCnt 0
8 simpr P A B A B A = 0 A = 0
9 8 oveq2d P A B A B A = 0 P pCnt A = P pCnt 0
10 simplr3 P A B A B A = 0 A B
11 8 10 eqbrtrrd P A B A B A = 0 0 B
12 simplr2 P A B A B A = 0 B
13 0dvds B 0 B B = 0
14 12 13 syl P A B A B A = 0 0 B B = 0
15 11 14 mpbid P A B A B A = 0 B = 0
16 15 oveq2d P A B A B A = 0 P pCnt B = P pCnt 0
17 7 9 16 3brtr4d P A B A B A = 0 P pCnt A P pCnt B
18 simpll P A B A B A 0 P
19 simplr1 P A B A B A 0 A
20 simpr P A B A B A 0 A 0
21 pczdvds P A A 0 P P pCnt A A
22 18 19 20 21 syl12anc P A B A B A 0 P P pCnt A A
23 simplr3 P A B A B A 0 A B
24 prmnn P P
25 24 ad2antrr P A B A B A 0 P
26 pczcl P A A 0 P pCnt A 0
27 18 19 20 26 syl12anc P A B A B A 0 P pCnt A 0
28 25 27 nnexpcld P A B A B A 0 P P pCnt A
29 28 nnzd P A B A B A 0 P P pCnt A
30 simplr2 P A B A B A 0 B
31 dvdstr P P pCnt A A B P P pCnt A A A B P P pCnt A B
32 29 19 30 31 syl3anc P A B A B A 0 P P pCnt A A A B P P pCnt A B
33 22 23 32 mp2and P A B A B A 0 P P pCnt A B
34 pcdvdsb P B P pCnt A 0 P pCnt A P pCnt B P P pCnt A B
35 18 30 27 34 syl3anc P A B A B A 0 P pCnt A P pCnt B P P pCnt A B
36 33 35 mpbird P A B A B A 0 P pCnt A P pCnt B
37 17 36 pm2.61dane P A B A B P pCnt A P pCnt B