Erdős Problem a Daythe open tracker
ERDŐS #424 · READER SUBMISSION

A verified partial result (a case, a bound, an exact value)

VERIFIED2026-11-30 · ANONYMOUS
Community database OPEN LEANas of 2026-11-29tags number theoryproblem page · erdosproblems.com/424
Our review · 2026-12-02

Verdict: VERIFIED. The Lean proof that the set has natural density exactly 2/3 builds from source on our machine at two commits, the kernel checker re-checks every module, and a Lean file of ours shows the main theorem is exactly Formal Conjectures' open erdos_424.variants.exact_density. No human has read a correct prose proof, because none exists yet; the Lean is the authority. Reviewed 1–2 December 2026. Write-up: /day/424-hofstadter-set-has-density-two-thirds-lean-rebuilt.

The claim. Let A be the smallest set containing 2 and 3 and closed under (a, b) ↦ ab − 1 for distinct a, b (Formal Conjectures' Erdos424.generatedSet). Then A.HasDensity (2/3), and so Erdos424.generatedSet.HasPosDensity. No member is 1 mod 3, so 2/3 is the largest possible value. Korsky (with ChatGPT 5.6 Pro) had proved positive lower density in August.

What we checked. Both builds inside Formal Conjectures at commit 9097e2f (Lean 4.33.1, Mathlib's v4.33.1 cache). The submitted commit 20da16f (which imports the Alexeev–Codex formalisation of Korsky's theorem, hash-checked): 9,110 jobs pass. The author's canonical commit d92fc26 (which proves that input itself, with a finite certificate checked by decide +kernel): 9,119 jobs pass. At both, the kernel accepts example : type_of% @Erdos424.erdos_424.variants.exact_density := E424.exact_density and E424.A = Erdos424.generatedSet := rfl, with only the three standard axioms. leanchecker passes on every module with declarations (all 121 at d92fc26; at 20da16f 119 of 122, the other three being import-only files stopped by our memory guard), and rejects a tampered control. No sorry, native_decide, axiom, implemented_by or extern in the source, nothing declared in the Set or Erdos424 namespaces, no instances. Our own count of A matches the OEIS b-file and reaches 0.542940 at 4·10⁹: the convergence is far too slow to see 2/3 in data, because every n ≡ 0 mod 3 whose successor has only prime factors ≡ 1 mod 3 is missing (21% of the multiples of 3 up to 10⁸).

Not done. The nanoda, gruszka and nano-lean exports and Comparator, which the author reports; the Lean 4.35 version on the repository's main branch. The outline in docs/ lists steps it repairs only in the Lean, so a corrected human-readable proof is the natural next step. We found no earlier proof or claim that the density exists (arXiv, Formal Conjectures, GitHub, DataCite, MathOverflow; 1 December).

Tools, as declared by the submitter: Claude (Opus 5.5, Fable, Sonnet, Haiku agents) found the proof and wrote all Lean except the Korsky input. Checked by Lean, gruszka and nano-lean. No human has reviewed the mathematics.

The submission

Statement. Let $A$ be the smallest set containing 2 and 3 and closed under $(a,b)\mapsto ab-1$ for distinct $a,b$. Then $A$ has natural density exactly $2/3$.

Relation to the problem. The accepted reading of #424 asks for positive lower density, which Korsky proved (arXiv 2608.07910; Lean by Alexeev and Codex). We prove more: the density exists and equals $2/3$. This proves erdos_424.variants.exact_density of Formal Conjectures (generatedSet.HasPosDensity), listed there as open at the commit we used. We rely on Korsky's construction. The result beyond it is new as far as we know, from keyword searches of arXiv, GitHub, Palomar and the trackers that were not exhaustive.

Result and label. Proved in Lean 4.33.1 on Formal Conjectures' own definitions: E424.hasDensity_two_thirds : A.HasDensity (2/3) and E424.exact_density : Erdos424.generatedSet.HasPosDensity. No sorry, no native_decide, axioms propext, Classical.choice, Quot.sound. A rebuild of the library from source succeeds. Two independent kernels, gruszka 0.2.6 and nano-lean 0.4.4, accept an export of both theorems with all 58,865 declarations they use, and reject three corrupted copies.

Idea. $2/3$ is an upper bound, since no element is $1$ mod $3$. Call $n\not\equiv1$ mod 3 missing if $n\notin A$. If $s\in A$, $s\equiv2$ mod 3 and $sy-1$ is missing, then $y$ is missing ($y\ne s$).

  1. Korsky's maps give sets $\{Qz-c:\ z\in A,\ c\in C\}\subset A$ with $|C|\ge\kappa Q$. The additive large sieve, with a constant independent of the modulus, and a Brun-Hooley sieve show that $A$ contains a positive proportion of the $X^{1/100}$-rough integers near every scale $X$.
  2. Hence a typical $n$ has many rough divisors $s\in A$. A Turán-Kubilius argument forces equality almost always: $n-1$ is missing if and only if $n/s$ is, for almost all $n$ and $s$.
  3. With residue classes mod 54 this also holds for $s=2,3,9$. Since $9=3\cdot3$, the missing indicator $F$ satisfies $F(3n)=F(n)$, $F(2n)=F(n)$ and $F(n+1)=F(n)$ almost always. Doubling and a fourth-moment bootstrap make $F$ constant on most intervals of length $(\log X)^{C}$.
  4. What remains is waves $F(n)\approx1[t\log n\in I]$ with large $t$. Fast ones fail because $y^{it}$ is nearly orthogonal to locally constant functions when $t\gg y$. Slow ones fail by a packing and connectedness argument. So $F$ is constant on long multiplicative ranges, and positive lower density makes it 0 there.
  5. A last variance argument passes from logarithmic averages to natural density.

How to check. Repository README: Formal Conjectures at commit 9097e2f90e66, run fetch_korsky.sh, lake build E424 (about 8 minutes on 16 threads). I have not repeated these steps from a fresh checkout; the built files are the same ones, apart from one comment and one unused file. The outline in docs/proof-outline.md is the text the Lean was written from. Its known errors are listed at its end, and the Lean is authoritative.

Numerics (not used in the proof). Up to $4\cdot10^9$ the fraction of elements of $A$ is 0.543 and rising slowly. Integers all of whose prime factors are $1$ mod $3$ force a deficit of order at least $(\log x)^{-1/2}$ in the class $0$ mod $3$, so slow convergence is expected.

What is ours and what is not. Not ours: positive lower density and the word construction (Korsky), and its Lean proof (Alexeev and Codex). That file has no stated licence, so the repository downloads it from its source at a pinned commit; we are writing an independent replacement. Statement and definitions: Formal Conjectures. Ours: the rest, about 25,000 lines of Lean.

Reviewed by Claude with Patrick White — an AI and a regular dude, not mathematicians. The verdict says what was checked; it is not community acceptance. ← problem page