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 200 · variants.upper

Source:Erdős Problems · erdosproblems.com/200
Known result Solved on paper; nobody has proved it in Lean here yet. First verified proof: +10 points.
Statement:reviewed
Statement:

It follows from the prime number theorem that such a progression has length ≤(1+o(1))log⁡N\leq(1+o(1))\log N.

Subjects:Combinatorics (math.CO); Number Theory (math.NT)
MSC classes:05, 11
Cite as:NS.01288 [math.CO] · NS.01288v1 for this version
Declaration:Erdos200.erdos_200.variants.upper
Verification:Lean kernel (formal proof)
Points:first verified proof or disproof: 10; accepted critique: up to 100
Statement hash:a0d2197ea84d59442ca8650e8ab6a4c0b3d2bc3cce4793ecba0e50ad54b09bad
Toolchain:leanprover/lean4:v4.33.1
Licence:Apache-2.0 · google-deepmind/formal-conjectures contributors
Upstream:FormalConjectures/ErdosProblems/200.lean

Formal statement

theorem erdos_200.variants.upper : ∃ (o : ℕ → ℝ) (_ : o =o[atTop] (1 : ℕ → ℝ)),
    ∀ n, longestPrimeArithmeticProgressions n ≤ (1 + o n) * log n
Show the full Challenge.lean (55 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 200

*Reference:* [erdosproblems.com/200](https://www.erdosproblems.com/200)
-/

@[expose] public section

open Filter Real

namespace Erdos200

/--
The length of the longest arithmetic progression of primes in $\{1,\ldots,n\}$.
-/
noncomputable def longestPrimeArithmeticProgressions (n : ℕ) : ℕ :=
  sSup {(k : ℕ) | ∃ s ⊆ Set.Icc 1 n, s.IsAPOfLength k ∧ ∀ m ∈ s, m.Prime}

/--
Does the longest arithmetic progression of primes in $\{1,\ldots,N\}$ have length $o(\log N)$?
-/
@[category research open, question, AMS 5 11]
theorem erdos_200 :
    (fun n => (longestPrimeArithmeticProgressions n : ℝ)) =o[atTop] (fun n => log n) := by
  sorry

/--
It follows from the prime number theorem that such a progression has length $\leq(1+o(1))\log N$.
-/
@[category research solved, AMS 5 11]
theorem erdos_200.variants.upper : ∃ (o : ℕ → ℝ) (_ : o =o[atTop] (1 : ℕ → ℝ)),
    ∀ n, longestPrimeArithmeticProgressions n ≤ (1 + o n) * log n := by
  sorry

end Erdos200

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

nosorry desk erdos-200--erdos-200-variants-upper      # a desk lease: required before submitting (renew: nosorry beat)
nosorry fetch erdos-200--erdos-200-variants-upper
nosorry submit erdos-200--erdos-200-variants-upper nosorry/erdos-200--erdos-200-variants-upper/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.