/-
Copyright 2026 The Formal Conjectures Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-/importFormalConjecturesUtil
[BFM16] Banks, William D. and Freiberg, Tristan and Maynard, James, On limit points of the
sequence of normalized prime gaps. Proc. Lond. Math. Soc. (3) (2016), 515-539.
[Er55] Erdős, Paul, Some remarks on number theory. Riveon Lematematika (1955), 45-48.
[Er65b] Erdős, Paul, Some recent advances and current problems in number theory. Lectures on
Modern Mathematics, Vol. III (1965), 196-244.
[Er85c] Erdős, P., On some of my problems in number theory I would most like to see solved.
Number theory (Ootacamund, 1984) (1985), 74-84.
[Er97c] Erdős, Paul, Some of my favorite problems and results. The mathematics of Paul Erdős,
I (1997), 47-67.
[GPY09] Goldston, Daniel A. and Pintz, János and Yıldırım, Cem Y., Primes in tuples. I.
Ann. of Math. (2) (2009), 819-862.
[HiMa88] Hildebrand, Adolf and Maier, Helmut, Gaps between prime numbers. Proc. Amer. Math.
Soc. (1988), 1-9.
[Me20] Merikoski, Jori, Limit points of normalized prime gaps. J. Lond. Math. Soc. (2) (2020),
99-124.
[Pi16] Pintz, János, Polignac numbers, conjectures of Erdős on gaps between primes, arithmetic
progressions in primes, and the bounded gap conjecture. From arithmetic to zeta-functions
(2016), 367-384.
[Ri56] Ricci, Giovanni, Recherches sur l'allure de la suite ${p_{n+1}-p_n/\log p_n}$.
Colloque sur la Théorie des Nombres, Bruxelles, 1955 (1956), 93-106.
[We31] Westzynthius, E., Über die Verteilung der Zahlen, die zu den n ersten Primzahlen
teilerfremd sind. Commentat. Phys. Math. (1931), 1-37.
The set $S$ of limit points of $\frac{p_{n+1}-p_n}{\log n}$.
Only the finite limit points are collected here; that $\infty$ is also a limit point is
Westzynthius' theorem, recorded separately as erdos_5.variants.westzynthius.
Erdős' question, as well as [HiMa88] and [Pi16], normalises the prime gaps by $\log n$, whereas
[GPY09], [BFM16] and [Me20] normalise by $\log p_n$. Since $\log p_n/\log n \to 1$ the two
normalisations have the same limit points, so all the results below are stated for the
normalisation used here.
Let $C\geq 0$. Is there an infinite sequence of $n_i$ such that
$$\lim_{i\to \infty}\frac{p_{n_i+1}-p_{n_i}}{\log n_i}=C?$$
We formalise "an infinite sequence of $n_i$" as a strictly monotone sequence of indices
n : ℕ → ℕ. Note that the numerator is the gap between the two consecutive primes
$p_{n_i}$ and $p_{n_i+1}$, which is primeGap (n i), and not the gap between the primes
indexed by two consecutive members of the sequence.
Banks, Freiberg, and Maynard [BFM16] showed that at least $12.5%$ of $[0,\infty)$ belongs
to $S$.
This is [BFM16, Theorem 1.1]: for any nine nonnegative reals
$\beta_1\leq\beta_2\leq\cdots\leq\beta_9$, at least one of the differences $\beta_j-\beta_i$
with $i<j$ belongs to $S$.
The $12.5%$ claim itself, as deduced in [BFM16, Corollary 1.2]:
$\lambda([0,T]\cap S)\geq (1-o(1))T/8$ as $T\to\infty$.
Note that the constant $1/8$ is only attained asymptotically and ineffectively; the bound
[BFM16] obtain for all $T>0$ is the weaker $\lambda([0,T]\cap S)>T/22$.
Merikoski [Me20] showed that at least $1/3$ of $[0,\infty)$ belongs to $S$.
This is [Me20, Theorem 1]: for any reals $\beta_1\leq\beta_2\leq\beta_3\leq\beta_4$, at least
one of the differences $\beta_j-\beta_i$ with $i<j$ belongs to $S$. Note that, in contrast with
erdos_5.variants.banks_freiberg_maynard, the $\beta_i$ are not required to be nonnegative.
In [Er65b], [Er85c], and [Er97c] Erdős asks whether $S$ is everywhere dense (but Weisenberg
notes that clearly $S$ is closed so this is equivalent to asking whether $S=[0,\infty]$).
Membership in limitPointSet is exactly the existence of an infinite sequence of indices
along which the normalised prime gaps converge, as in the statement of erdos_5.
The statement of erdos_5 is equivalent to the description of the set of limit points in
erdos_5.variants.limit_point_set; combine with mem_limitPointSet_iff to unfold the
membership into the sequence of indices $n_i$.
The set $S$ of limit points is closed, as Weisenberg notes in the acknowledgements to
erdosproblems.com/5; consequently erdos_5.variants.dense
and erdos_5.variants.limit_point_set ask the same question.
Weisenberg's remark, as reported on erdosproblems.com/5:
since $S$ is closed, asking that $S$ be everywhere dense in $[0,\infty)$ is the same as asking
that $S=[0,\infty)$, so erdos_5.variants.dense and erdos_5.variants.limit_point_set pose the
same question.
⊢ Ici0⊆limitPointSet↔limitPointSet=Ici0exact⟨funh=>limitPointSet_subset_Ici.antisymmh,funh=>h.ge⟩All goals completed! 🐙-- See also Erdős Problem 234, which concerns the density of the integers `n` with-- `(p (n + 1) - p n) / log n < c`.endErdos5