Mathematics / Formalization Note / Combinatorics & Graph Theory

Erdős Problem 1 at n = 9 in Lean 4: Kernel-Checked Refutation of max A ≤ 148 and a Reduction of f(9) ≥ 161

Reduction step Erdos1.erdos_1.variants.least_N_9.R1.H2.R1 (PR #28501), accepted by the Left to Solve Lean checker and merged. It refutes N = 148 by kernel computation: threshold-rank growth tables, an octree certificate for the third-largest element, dynamic-programming tables verified layer by layer, and a bitset branch-and-bound search proved complete and evaluated in 76 leaf theorems, all by decide +kernel. The second-moment and subset-sum-total lemmas are taken from ysanatomic's R2 reduction. As of 2 December 2026, Left to Solve's solution records credit H2, H3 and H4 to alanglinais7 (closed via his further reductions, PRs #49937, #49950, #49967); H1, the parent step R1.H2 and the root least_N_9 are open.

Author
Ali Uyar
DOI
10.5281/zenodo.24765174
Scope
Reduction
Status
Merged on Left to Solve
Original theorem
Erdős Problem 1 asks whether every n-element sum-distinct set A ⊆ {1, ..., N} forces N ≫ 2^n (erdosproblems.com now reports this conjecture as disproved). Its finite variant least_N_9 states the known value f(9) = 161 (OEIS A276661): the least N admitting a 9-element sum-distinct subset of {1, ..., N} is 161. The witness is the Conway-Guy set {77, 117, 137, 148, 154, 157, 159, 160, 161}; per OEIS, Lunnon (1988) found the values up to n = 8 and J. P. Grossman found f(9) = 161.
Statement source
Left to Solve (FormalConjectures / OMA statements)
Source
github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/31-erdos-1-sum-distinct-n9

Machine-checked in Lean 4 ✓ Accepted and merged on Left to Solve.

Summary

Merged Left to Solve PR #28501 (Erdos1.erdos_1.variants.least_N_9.R1.H2.R1, 1,625 Lean lines, 176 declarations) proves, with every finite computation checked by decide +kernel, that every 9-element sum-distinct set satisfies max A >= 149, sum of squares >= 87,381 and sum >= 511, and that if in addition max A <= 160 then the second-largest element is at least 143 and the third-largest at least 128. It reduces the lower bound 161 <= N to four hypotheses H1-H4 on max A in [149, 160]. The target is the finite variant least_N_9 of Erdős Problem 1, which states the known value f(9) = 161 (OEIS A276661): the least N admitting a 9-element sum-distinct subset of {1, ..., N}. Left to Solve now credits H2-H4 to alanglinais7, while H1, and with it f(9) >= 161, is open. The paper also reports local, unsubmitted follow-up work on H1 and H2: some lemmas checked by a local Lean build, and an unverified full candidate for H2 whose kernel check was killed at 30 minutes.

Context

Exhaustive finite refutations of this size are hard to fit into Lean's kernel without native_decide, which the Left to Solve rules forbid. This step does it: rank-growth tables, packed dynamic-programming certificates and a bitset search keep the whole N <= 148 case within kernel evaluation.

Root problems on Left to Solve

  • LTS Erdos1.erdos_1.variants.least_N_9 not closed on Left to Solve (185/353 steps solved)

Credits

Lines 11-132 (second-moment and subset-sum-total lemmas) are adapted from the R2 reduction by ysanatomic, as the file's comment states ("The second-moment and total-span arguments are from the R2 reduction by @ysanatomic."). The target R1.H2 comes from luciusacarr's R1 reduction. f(9) = 161 and the optimal Conway-Guy set are due to Conway-Guy, Lunnon and J. P. Grossman (per OEIS A276661). The author's local notes attribute the observation that the down-set recurrence gives max A >= 148 and b >= 143 for max A <= 160 to an earlier participant, jared-jasinski (no public source located). Proof produced with AI coding agents operated by the author (PR body: Agent t3-code, Model gpt-6.2-astra); the PR body names no other contributors.

Pull request ledger (1)

  • #28501 Erdos1.erdos_1.variants.least_N_9.R1.H2.R1 merged

Cite

@misc{uyar2026_erdos_1_sum_distinct_n9_lean4,
  author    = {Uyar, Ali},
  title     = {Erdős Problem 1 at n = 9 in Lean 4: Kernel-Checked Refutation of max A ≤ 148 and a Reduction of f(9) ≥ 161},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24765174},
  url       = {https://doi.org/10.5281/zenodo.24765174},
  note      = {Lean 4 formalization technical note (Erdős Problem 1 asks whether every n-element sum-distinct set A ⊆ {1, ..., N} forces N ≫ 2^n (erdosproblems.com now reports this conjecture as disproved). Its finite variant least_N_9 states the known value f(9) = 161 (OEIS A276661): the least N admitting a 9-element sum-distinct subset of {1, ..., N} is 161. The witness is the Conway-Guy set {77, 117, 137, 148, 154, 157, 159, 160, 161}; per OEIS, Lunnon (1988) found the values up to n = 8 and J. P. Grossman found f(9) = 161.). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/31-erdos-1-sum-distinct-n9}
}