Description: The difference of the prime-counting function ppi at two points counts the number of primes in an interval. (Contributed by Mario Carneiro, 21-Sep-2014)
Ref | Expression | ||
---|---|---|---|
Assertion | ppidif | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | eluzelz | |
|
2 | eluzel2 | |
|
3 | 2z | |
|
4 | ifcl | |
|
5 | 2 3 4 | sylancl | |
6 | 3 | a1i | |
7 | 2 | zred | |
8 | 2re | |
|
9 | min2 | |
|
10 | 7 8 9 | sylancl | |
11 | eluz2 | |
|
12 | 5 6 10 11 | syl3anbrc | |
13 | ppival2g | |
|
14 | 1 12 13 | syl2anc | |
15 | min1 | |
|
16 | 7 8 15 | sylancl | |
17 | eluz2 | |
|
18 | 5 2 16 17 | syl3anbrc | |
19 | id | |
|
20 | elfzuzb | |
|
21 | 18 19 20 | sylanbrc | |
22 | fzsplit | |
|
23 | 21 22 | syl | |
24 | 23 | ineq1d | |
25 | indir | |
|
26 | 24 25 | eqtrdi | |
27 | 26 | fveq2d | |
28 | fzfi | |
|
29 | inss1 | |
|
30 | ssfi | |
|
31 | 28 29 30 | mp2an | |
32 | fzfi | |
|
33 | inss1 | |
|
34 | ssfi | |
|
35 | 32 33 34 | mp2an | |
36 | 7 | ltp1d | |
37 | fzdisj | |
|
38 | 36 37 | syl | |
39 | 38 | ineq1d | |
40 | inindir | |
|
41 | 0in | |
|
42 | 39 40 41 | 3eqtr3g | |
43 | hashun | |
|
44 | 31 35 42 43 | mp3an12i | |
45 | 14 27 44 | 3eqtrd | |
46 | ppival2g | |
|
47 | 2 12 46 | syl2anc | |
48 | 45 47 | oveq12d | |
49 | hashcl | |
|
50 | 31 49 | ax-mp | |
51 | 50 | nn0cni | |
52 | hashcl | |
|
53 | 35 52 | ax-mp | |
54 | 53 | nn0cni | |
55 | pncan2 | |
|
56 | 51 54 55 | mp2an | |
57 | 48 56 | eqtrdi | |