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 1204

Source:Erdős Problems
Open problem Nobody knows the answer yet — neither on paper nor in Lean. First verified proof: +100 points.
Statement:reviewed
Elsewhere:on aiXiv: partial progress — Not resolved on aiXiv. Latest progress: computation in aiXiv:2611.01627 (2026-11-16). · erdosproblems.com: open (a claim recorded elsewhere, not verified on nosorry)
1 result recorded on aiXiv
  1. computation There is an admissible 234360000-tuple of diameter 4891341734. It consists of ±1\pm1 and ±q\pm q for the primes 50100<q≤244567086750100<q\le 2445670867, with 1746831 primes removed. Admissibility is checked by two independent programs. — aiXiv:2611.01627, 2026-11-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:

We call a sequence of integers 0≤a1<⋯<ak0\leq a_1<\cdots <a_k admissible if it is missing at least one congruence class modulo every prime pp. Let A(k)=min⁡akA(k)=\min a_k. Estimate A(k)A(k) - in particular, is it true that A(k)∼klog⁡k?A(k)\sim k\log k?

Subjects:Number Theory (math.NT)
MSC classes:11
Tags:question
Cite as:NS.00988 [math.NT] · NS.00988v1 for this version
Declaration:Erdos1204.erdos_1204.parts.i
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 100, later ones: 10; accepted critique: up to 60
Statement hash:dfcfe0aa0eb047bd1043461f27a2ebe9f12523d4eb9dbba54d9ce5acb7d065dd
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/1204.lean

Formal statement

theorem erdos_1204.parts.i :
    (fun k : ℕ ↦ (A k : ℝ)) ~[atTop] fun k : ℕ ↦ (k : ℝ) * Real.log k
Show the full Challenge.lean (115 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 1204

*References:*
- [erdosproblems.com/1204](https://www.erdosproblems.com/1204)
- [El65] Elliott, P. D. T. A., *On sequences of integers*. Quart. J. Math. Oxford Ser. (2) 16
  (1965), 35-45.
- [Er80] Erdős, P., *A survey of problems in combinatorial number theory*. Ann. Discrete Math. 6
  (1980), 89-115.
- [Po14c] Polymath, D. H. J., *Variants of the Selberg sieve, and bounded intervals containing
  many primes*. Res. Math. Sci. 1 (2014), Art. 12.
  [arXiv:1407.4897](https://arxiv.org/abs/1407.4897)
-/

@[expose] public section

open Filter Asymptotics

namespace Erdos1204

/-- A finite set `S` of natural numbers is *admissible* if it misses at least one residue class
modulo every prime. A sequence $0\leq a_1<\cdots <a_k$ is identified with the set of its values. -/
def IsAdmissible (S : Finset ℕ) : Prop :=
  ∀ p : ℕ, p.Prime → ∃ r : ZMod p, ∀ a ∈ S, (a : ZMod p) ≠ r

/-- $A(k)$: the least possible value of $a_k$ over admissible sequences $0\leq a_1<\cdots <a_k$.
Any $k$ primes larger than $k$ form an admissible set, so `sInf` is a true minimum. -/
noncomputable def A (k : ℕ) : ℕ :=
  sInf {m : ℕ | ∃ S : Finset ℕ, S.card = k ∧ IsAdmissible S ∧ ∀ a ∈ S, a ≤ m}

/-- The least possible value of $a_1+\cdots+a_k$ over admissible sequences
$0\leq a_1<\cdots <a_k$. As for `A`, the minimum exists. -/
noncomputable def minSum (k : ℕ) : ℕ :=
  sInf {s : ℕ | ∃ S : Finset ℕ, S.card = k ∧ IsAdmissible S ∧ ∑ a ∈ S, a = s}

/-- $B(k)=\min \frac{a_1+\cdots+a_k}{k}$. -/
noncomputable def B (k : ℕ) : ℝ := (minSum k : ℝ) / k

/-- An admissible set of `k` natural numbers inside `[0, m]` gives `A k ≤ m`. -/
@[category API, AMS 11]
theorem A_le {k m : ℕ} {S : Finset ℕ} (hS : S.card = k) (hadm : IsAdmissible S)
    (hm : ∀ a ∈ S, a ≤ m) : A k ≤ m :=
  Nat.sInf_le ⟨S, hS, hadm, hm⟩

/--
We call a sequence of integers $0\leq a_1<\cdots <a_k$ admissible if it is missing at least one
congruence class modulo every prime $p$. Let $A(k)=\min a_k$. Estimate $A(k)$ - in particular, is
it true that
$$A(k)\sim k\log k?$$
-/
@[category research open, question, AMS 11]
theorem erdos_1204.parts.i :
    (fun k : ℕ ↦ (A k : ℝ)) ~[atTop] fun k : ℕ ↦ (k : ℝ) * Real.log k := by
  sorry

def erdos_1204.parts.ii.answer : ℕ → ℝ := sorry

/--
We call a sequence of integers $0\leq a_1<\cdots <a_k$ admissible if it is missing at least one
congruence class modulo every prime $p$. Estimate
$$B(k)=\min \frac{a_1+\cdots+a_k}{k}.$$

We read "estimate" as finding an asymptotic formula, since $B(k)\asymp k\log k$ already follows
from the known bounds for $A(k)$ (as $a_j\geq A(j)$).
-/
@[category research open, question value, AMS 11]
theorem erdos_1204.parts.ii : B ~[atTop] erdos_1204.parts.ii.answer := by
  sorry

/--
It is known that $(1/2+o(1))k\log k \leq A(k)$. This lower bound is originally due to Elliott
[El65], but was rediscovered by the Polymath project on bounded gaps between primes [Po14c].
-/
@[category research solved, AMS 11]
theorem erdos_1204.variants.A_lower :
    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop, (1 / 2 - ε) * k * Real.log k ≤ (A k : ℝ) := by
  sorry

/--
It is known that $A(k)\leq (1+o(1))k\log k$, by taking the $k$ smallest primes $>k$.
-/
@[category research solved, AMS 11]
theorem erdos_1204.variants.A_upper :
    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop, (A k : ℝ) ≤ (1 + ε) * k * Real.log k := by
  sorry

/--
Taking the first $k$ primes which are $>k$ implies $B(k)\leq (1/2+o(1))k\log k$.
-/
@[category research solved, AMS 11]
theorem erdos_1204.variants.B_upper :
    ∀ ε > (0 : ℝ), ∀ᶠ k : ℕ in atTop, B k ≤ (1 / 2 + ε) * k * Real.log k := by
  sorry

end Erdos1204

To prove it: keep every definition of Challenge.lean unchanged and prove Erdos1204.erdos_1204.parts.i with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_i : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.

nosorry fetch erdos-1204
nosorry submit erdos-1204 nosorry/erdos-1204/Solution.lean --wait

Formal variants

Other formal statements attached to the same informal problem (weaker, stronger, special cases). Each is scored separately.

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.