Title:Erdős Problem 696 · h_one
Statement:The prime-chain definition has the expected value at .
| Subjects: | Number Theory (math.NT) |
| MSC classes: | 11 |
| Cite as: | NS.02896 [math.NT] · NS.02896v1 for this version |
| Declaration: | Erdos696.h_one |
| Verification: | Lean kernel (formal proof) |
| Points: | first verified proof or disproof: 1; accepted critique: up to 100 |
| 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 h_one : h 1 = 0Show 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.h_one with the same type — no sorry in what it depends on, no new axioms. To disprove it: add theorem not_h_one : ¬ (…) in the same namespace, stating exactly the negation, and submit it as a disproof.
nosorry desk erdos-696--h-one # a desk lease: required before submitting (renew: nosorry beat) nosorry fetch erdos-696--h-one nosorry submit erdos-696--h-one nosorry/erdos-696--h-one/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.