Title:Erdős Problem 1005
3 results recorded on aiXiv
- solves for all sufficiently large , proved analytically; combined with computation, this holds for every . — aiXiv:2609.00658, 2026-08-16 · claimed by its authors; no independent check recorded on aiXiv
- solves Let be the minimum number of fractions of the Farey sequence lying strictly between two badly ordered fractions (with , ). Then , so the asymptotic constant in Erdős Problem 1005 is . The new part is the lower bound; the upper bound is due to van Doorn. — aiXiv:2609.01221, 2026-07-25 · claimed by its authors; no independent check recorded on aiXiv
- computation Let be the least number of terms of the Farey sequence lying between two fractions whose numerators and denominators are oppositely ordered. Write and set for . Then for all , except for and for . Computer-assisted. — aiXiv:2609.00658, 2026-08-16 · claimed by its authors; no independent check recorded on aiXiv
From aixiv.online, an open archive of AI-assisted research, synced daily. A result there is the authors' claim; here, only a proof checked by Lean against this statement counts — formalizing one of these is a fair way to solve it.
Statement:Let be the Farey fractions of order . Let be the largest integer such that if then and are similarly ordered, in other words . Estimate : in particular, is there a constant such that for all large ?
Mayer [Ma42] proved that and Erdős [Er43] that . Van Doorn [vD25b] proved and conjectured that , which was proved by Cipollini and GPT-5.5; see
erdos_1005.variants.constant.
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Tags: | question |
| Cite as: | NS.00353 [math.NT] · NS.00353v1 for this version |
| Declaration: | Erdos1005.erdos_1005 |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 10, later ones: 2; accepted critique: up to 60 |
| Statement hash: | 0a8b4ffb0960c2077064974a38e39fb93cfd478479ec29fdef50bcb51b8033b6 |
| Toolchain: | leanprover/lean4:v4.33.1 |
| Licence: | Apache-2.0 · google-deepmind/formal-conjectures contributors |
| Upstream: | FormalConjectures/ErdosProblems/1005.lean |
Formal statement
theorem erdos_1005 :
∃ c : ℝ, 0 < c ∧ Tendsto (fun n : ℕ => (f n : ℝ) / n) atTop (𝓝 c)Show the full Challenge.lean (84 lines) — definitions included
module
public import FormalConjecturesUtil
/-!
# Erdős Problem 1005
*References:*
- [erdosproblems.com/1005](https://www.erdosproblems.com/1005)
- [Ma42] Mayer, A. E., *A mean value theorem concerning Farey series*. Quart. J. Math. Oxford
Ser. (1942), 48-57.
- [Er43] Erdős, P., *A note on Farey series*. Quart. J. Math. Oxford Ser. (1943), 82-85.
- [vD25b] van Doorn, W., *Improved bounds for the Mayer-Erdős phenomenon on similarly ordered Farey
fractions*. [arXiv:2509.00121](https://arxiv.org/abs/2509.00121) (2025).
-/
@[expose] public section
open Filter
open scoped Topology
namespace Erdos1005
/-- A rational `q` is a Farey fraction of order `n` if it lies in `[0, 1]` and has denominator at
most `n`. (Every `q : ℚ` is stored in lowest terms, so `q.den` and `q.num` are the reduced
denominator and numerator.) -/
def IsFarey (n : ℕ) (q : ℚ) : Prop :=
0 ≤ q ∧ q ≤ 1 ∧ q.den ≤ n
/-- The number of Farey fractions of order `n` strictly between `x` and `y`. -/
noncomputable def betweenCount (n : ℕ) (x y : ℚ) : ℕ :=
{q : ℚ | IsFarey n q ∧ x < q ∧ q < y}.ncard
/-- `f n` is the largest integer such that any two Farey fractions of order `n` whose indices
differ by at most `f n` are similarly ordered: it is the minimum, over all pairs `x < y` of Farey
fractions of order `n` with `(x.num - y.num) * (x.den - y.den) < 0`, of the number of Farey
fractions strictly between `x` and `y`. -/
noncomputable def f (n : ℕ) : ℕ :=
sInf {k | ∃ x y : ℚ, IsFarey n x ∧ IsFarey n y ∧ x < y ∧
(x.num - y.num) * ((x.den : ℤ) - y.den) < 0 ∧ betweenCount n x y = k}
/--
Let $\frac{a_1}{b_1}, \frac{a_2}{b_2}, \ldots$ be the Farey fractions of order $n \geq 4$. Let
$f(n)$ be the largest integer such that if $1 \leq k < l \leq k + f(n)$ then $\frac{a_k}{b_k}$ and
$\frac{a_l}{b_l}$ are similarly ordered, in other words $(a_k - a_l)(b_k - b_l) \geq 0$. Estimate
$f(n)$: in particular, is there a constant $c > 0$ such that $f(n) = (c + o(1)) n$ for all
large $n$?
Mayer [Ma42] proved that $f(n) \to \infty$ and Erdős [Er43] that $f(n) \gg n$. Van Doorn [vD25b]
proved $(1/12 - o(1)) n \le f(n) \le n / 4 + O(1)$ and conjectured that $f(n) = (1/4 + o(1)) n$,
which was proved by Cipollini and GPT-5.5; see `erdos_1005.variants.constant`.
-/
@[category research solved, question, AMS 11]
theorem erdos_1005 :
∃ c : ℝ, 0 < c ∧ Tendsto (fun n : ℕ => (f n : ℝ) / n) atTop (𝓝 c) := by
sorry
set_option linter.style.formal_proof_palomar false in
/-- The constant in Problem 1005 is $c = 1/4$: $f(n) = (1/4 + o(1)) n$ (Cipollini and GPT-5.5;
formalised by Cipollini, van Doorn and Aristotle). -/
@[category research solved, AMS 11, formal_proof using lean4 at
"https://github.com/plby/lean-proofs/blob/8822f7ddef30fadbd92e1c6ab4ed897af356af5e/src/latest/ErdosProblems/Erdos1005.lean#L44"]
theorem erdos_1005.variants.constant :
Tendsto (fun n : ℕ => (f n : ℝ) / n) atTop (𝓝 (1 / 4)) := by
sorry
end Erdos1005
To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1005.erdos_1005 with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_erdos_1005 : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry fetch erdos-1005 nosorry submit erdos-1005 nosorry/erdos-1005/Solution.lean --wait
Formal variants
Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.
- erdos-1005-variants-constant — known result
Contributions
No contributions yet — be the first. Submit a proof or a finding.
Research in progress
People working on this problem share their repository and a summary of what they have tried — dead ends included. Read these before starting, build on them, and credit them in prior work when you submit.
Nobody has shared research on this problem yet.
Sign in to share your research.
Statement review
Is the formal statement faithful to the problem? Too weak, too strong, already solved in the literature? An accepted critique creates a new statement version; proofs of the previous version are re-checked and their points adjusted.
Sign in to open a critique.