I want to prove (or see a proof) that the prime gap function is not monotonic. (but not using extremely difficult theory like Zhangs proof please)
The idea for proof is to first suppose it is monotonic and find the slowest possible asymptotic growth it could have.
The get a contradiction by showing that even this is still "too fast" compared to say the chebychev bound $x/\log(x)$.
Lemma: A sequence of primes with gap $d$ can't be longer than $d+2$.
So we suppose the prime gap function $g(n)$ grows as slow as possible, like this:
1, 2, 2, 2, 2, 4, 4, 4, 4, 4, 4, 6, ...
Then I found that we would have $\pi(\sum g(n)) = n$, so $\pi(\sum_{d=2k} (d+2)^2) = \sum_{d=2k} d+2$. The first sum being $O(n^3)$ and the second $O(n^2)$. Inserting $n = x^{1/3}$ gives $\pi(x) = O(n^{2/3})$.
This gives us $x/x^{1/3}$ which sadly doesn't beat $x/\log(x)$.
Is this proof strategy doomed then? Or is there a way to repair it? Alternatively does anyone have an accessable reference which has this proof?
There is no problem as the inequality holds the other way round. One should combine a hypothetical upper bound of order $x/x^{1/3}$ on the prime counting function, obtained under the assumption of monotone gaps, with a lower bound on the prime counting function to get a contradiction.
The point is if the gaps would grow monotonically they would be large so it is natural there would be too few primes then.