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 696

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

Is it true that H(n)/h(n)→∞H(n)/h(n)\to \infty for almost all nn?

Formalised as: for every threshold MM, the set of nn with h(n)>0h(n) > 0 and H(n)/h(n)>MH(n)/h(n) > M has natural density 11. This is false: in fact, H(n)/h(n)=2+o(1)H(n)/h(n) = 2 + o(1) for almost all nn.

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

Formal statement

theorem erdos_696 :
    ¬ ∀ M : ℝ,
      {n : ℕ | (h n : ℝ) > 0 ∧ (H n : ℝ) / (h n : ℝ) > M}.HasDensity 1
Show the full Challenge.lean (84 lines) — definitions included
module

public import FormalConjecturesUtil

/-!
# Erdős Problem 696

*References:*
* [erdosproblems.com/696](https://www.erdosproblems.com/696)
* [Lean proof](https://github.com/davidturturean/erdos-696/blob/4fa1bf2c6ff6f2e0c7024f814614c7455404fdd3/Erdos696/Main.lean#L35), assuming
  the Siegel-Walfisz theorem, the Brun-Titchmarsh inequality, and Mertens' theorem as custom axioms.
-/

@[expose] public section

namespace Erdos696

/--
A strictly-increasing chain of natural numbers $d_1 < d_2 < \dots$ such that consecutive
elements satisfy $d_{i+1} \equiv 1 \pmod{d_i}$, and every element divides $n$ and satisfies
the auxiliary predicate $P$.
-/
def ValidChain (n : ℕ) (P : ℕ → Prop) (s : List ℕ) : Prop :=
  s.IsChain (fun a b => a < b ∧ b ≡ 1 [MOD a]) ∧ ∀ d ∈ s, d ∣ n ∧ P d

open Classical in
/--
$h(n)$ is the largest $\ell$ such that there is a sequence of primes $p_1<\cdots < p_\ell$
all dividing $n$ with $p_{i+1}\equiv 1\pmod{p_i}$.
-/
noncomputable def h (n : ℕ) : ℕ :=
  Nat.findGreatest (fun k => ∃ s : List ℕ, s.length = k ∧ ValidChain n Nat.Prime s) n

open Classical in
/--
$H(n)$ is the largest $u$ such that there is a sequence of integers $d_1<\cdots < d_u$
all dividing $n$ with $d_{i+1}\equiv 1\pmod{d_i}$.
-/
noncomputable def H (n : ℕ) : ℕ :=
  Nat.findGreatest
    (fun k => ∃ s : List ℕ, s.length = k ∧ ValidChain n (fun _ => True) s) n

/-- The prime-chain definition has the expected value at $n = 1$. -/
@[category test, AMS 11]
theorem h_one : h 1 = 0 := by
  classical
  rw [h, Nat.findGreatest_eq_zero_iff]
  intro k hk hk_le
  have hk_eq : k = 1 := by omega
  subst k
  rintro ⟨s, hslen, hvalid⟩
  obtain ⟨p, rfl⟩ := List.length_eq_one_iff.mp hslen
  suffices p = 1 by grind [Nat.not_prime_one, ValidChain]
  exact Nat.dvd_one.mp (hvalid.2 p (by simp)).1

/--
Is it true that $H(n)/h(n)\to \infty$ for almost all $n$?

Formalised as: for every threshold $M$, the set of $n$ with $h(n) > 0$ and $H(n)/h(n) > M$
has natural density $1$. This is false: in fact, $H(n)/h(n) = 2 + o(1)$ for almost all $n$.
-/
@[category research solved, question, AMS 11]
theorem erdos_696 :
    ¬ ∀ M : ℝ,
      {n : ℕ | (h n : ℝ) > 0 ∧ (H n : ℝ) / (h n : ℝ) > M}.HasDensity 1 := by
  sorry

end Erdos696

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

nosorry fetch erdos-696
nosorry submit erdos-696 nosorry/erdos-696/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.