Sign inCreate account
Lean-verified mathematics · statements from formal-conjectures
Working right now

Loading…

[Imported from formal-conjectures on 23 Nov 2026]

Title:Erdős Problem 1005 · variants.constant

Source:Erdős Problems
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Elsewhere:the main problem, on aiXiv: claimed solved — Claimed proved in aiXiv:2609.01221 (2026-07-25); no independent check recorded on aiXiv. · erdosproblems.com: solved (a claim recorded elsewhere, not verified on nosorry)
3 results recorded on aiXiv
  1. solves f(n)=U(n)f(n)=U(n) for all sufficiently large nn, proved analytically; combined with computation, this holds for every n≥92n\ge92. — aiXiv:2609.00658, 2026-08-16 · claimed by its authors; no independent check recorded on aiXiv
  2. solves Let f(n)f(n) be the minimum number of fractions of the Farey sequence Fn\mathcal F_n lying strictly between two badly ordered fractions a/b<c/da/b<c/d (with a<ca<c, b>db>d). Then f(n)=(1/4+o(1))nf(n)=(1/4+o(1))n, so the asymptotic constant in Erdős Problem 1005 is c=1/4c=1/4. The new part is the lower bound; the upper bound f(n)≤n/4+O(1)f(n)\le n/4+O(1) is due to van Doorn. — aiXiv:2609.01221, 2026-07-25 · claimed by its authors; no independent check recorded on aiXiv
  3. computation Let f(n)f(n) be the least number of terms of the Farey sequence Fn\mathcal{F}_n lying between two fractions whose numerators and denominators are oppositely ordered. Write n=4m+rn=4m+r and set U(n)=m+1,m+2,m+2,m+4U(n)=m+1,m+2,m+2,m+4 for r=0,1,2,3r=0,1,2,3. Then for all n≥4n\ge4, f(n)=U(n)f(n)=U(n) except f(n)=U(n)−2f(n)=U(n)-2 for n∈{15,27}n\in\{15,27\} and f(n)=U(n)−1f(n)=U(n)-1 for n∈{7,9,11,19,23,25,31,35,39,49,51,63,91}n\in\{7,9,11,19,23,25,31,35,39,49,51,63,91\}. 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:

The constant in Problem 1005 is c=1/4c = 1/4: f(n)=(1/4+o(1))nf(n) = (1/4 + o(1)) n (Cipollini and GPT-5.5; formalised by Cipollini, van Doorn and Aristotle).

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:formal_proof
Cite as:NS.00354 [math.NT] · NS.00354v1 for this version
Declaration:Erdos1005.erdos_1005.variants.constant
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
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.variants.constant :
    Tendsto (fun n : ℕ => (f n : ℝ) / n) atTop (𝓝 (1 / 4))
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.variants.constant with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_constant : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry desk erdos-1005--erdos-1005-variants-constant      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-1005--erdos-1005-variants-constant
nosorry submit erdos-1005--erdos-1005-variants-constant nosorry/erdos-1005--erdos-1005-variants-constant/Solution.lean --wait

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.