Mathematics / Formalization Note / Number Theory

Lean 4 Proofs of the Pham-Zakharov N^(1/4+o(1)) Upper Bound for Non-Averaging and Non-Dividing Sets (Variants of Erdos 186 and 131)

Adapts Pedro Bessa's (@nijv, Open Math Agents PR #28768) Lean formalization of the Pham-Zakharov / Conlon-Fox-Pham argument (discrete John's theorem, Smith-normal-form projections, Bilu-type structure, subset-sum GAPs, delta-convex dimension descent) and adds about 100 lines: a restated bound pz_nonavg_upper for subsets of {1, ..., N} and the two wrappers that close the Erdos 186 and Erdos 131 variant targets.

Author
Ali Uyar
DOI
10.5281/zenodo.24765112
Scope
Direct proof
Status
Merged on Left to Solve
Original theorem
Huy Tuan Pham and Dmitrii Zakharov, Sharp bound for the Erdos-Straus non-averaging set problem, Geom. Funct. Anal. 35 (2025) 1712-1738, arXiv:2410.14624, Theorem 1: every non-averaging subset of {1, ..., N} has at most N^(1/4+o(1)) elements. With Bosznay's lower bound F(N) >> N^(1/4) (1989) this gives log F(N)/log N -> 1/4 for non-averaging sets. Since every non-dividing set is non-averaging, the same upper bound holds for non-dividing sets, where it answers Erdos's question (is F(N) > N^(1/2-o(1))?) negatively but is not sharp: erdosproblems.com/131 gives the order of growth as N^(1/5+o(1)).
Statement source
Left to Solve (FormalConjectures / OMA statements)
Source
github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/14-pham-zakharov-non-averaging

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

Summary

The two Left to Solve targets erdos_186.variants.pham_zakharov and erdos_131.variants.pham_zakharov from FormalConjectures state Pham and Zakharov's 2024 bound F(N) <= N^(1/4+o(1)) for the largest non-averaging, respectively non-dividing, subset of {1, ..., N}. Both are proved directly in Lean 4 (PR #38560, 4,354 lines; PR #38789, 4,384 lines) and were accepted by the Left to Solve Lean checker. The two files share one engine and contain 4,396 distinct lines; 4,289 lines of the Erdos 186 file are taken unchanged from Pedro Bessa's (@nijv) PR #28768, which formalized the Pham-Zakharov argument for a reduction step of the main Erdos 186 problem. The new code restates the bound for subsets of {1, ..., N} and derives both variant statements, using for Erdos 131 that every non-dividing set is non-averaging and an explicit o(1) witness. The exponent 1/4 is sharp for non-averaging sets (Bosznay) but not for non-dividing sets, whose order of growth is N^(1/5+o(1)).

Context

Pham and Zakharov's bound, together with Bosznay's construction, determines the Erdos-Straus non-averaging exponent as 1/4. These proofs carry the Lean-checked chain from lattice geometry and subset-sum structure through to both Left to Solve variant statements, including the transfer to non-dividing sets.

Root problems on Left to Solve

  • LTS Erdos131.erdos_131.variants.pham_zakharov closed; Left to Solve credits the solution to aliuyar1234
  • LTS Erdos186.erdos_186.variants.pham_zakharov closed by @B221393

Credits

Mathematics: Huy Tuan Pham and Dmitrii Zakharov (upper bound), building on Conlon, Fox and Pham's subset-sum structure theorem; Bosznay (lower bound). Lean engine: adapted under Apache-2.0 from proofs/Erdos186.erdos_186.R1.H2.lean by Pedro Bessa (@nijv, Open Math Agents PR #28768), as both file headers state. Wrapper code produced with AI coding agents operated by the author (PR bodies: 'Agent: t3-code / Model: gpt-6.2-astra'). On Left to Solve, the Erdos 186 variant's solution record names B221393's reduction route (PR #21133, contributors Albin0903 and dito94).

Pull request ledger (2)

  • #38560 Erdos186.erdos_186.variants.pham_zakharov merged
  • #38789 Erdos131.erdos_131.variants.pham_zakharov merged

Cite

@misc{uyar2026_pham_zakharov_non_averaging_lean4,
  author    = {Uyar, Ali},
  title     = {Lean 4 Proofs of the Pham-Zakharov N^(1/4+o(1)) Upper Bound for Non-Averaging and Non-Dividing Sets (Variants of Erdos 186 and 131)},
  year      = {2026},
  publisher = {Zenodo},
  doi       = {10.5281/zenodo.24765112},
  url       = {https://doi.org/10.5281/zenodo.24765112},
  note      = {Lean 4 formalization technical note (Huy Tuan Pham and Dmitrii Zakharov, Sharp bound for the Erdos-Straus non-averaging set problem, Geom. Funct. Anal. 35 (2025) 1712-1738, arXiv:2410.14624, Theorem 1: every non-averaging subset of {1, ..., N} has at most N^(1/4+o(1)) elements. With Bosznay's lower bound F(N) >> N^(1/4) (1989) this gives log F(N)/log N -> 1/4 for non-averaging sets. Since every non-dividing set is non-averaging, the same upper bound holds for non-dividing sets, where it answers Erdos's question (is F(N) > N^(1/2-o(1))?) negatively but is not sharp: erdosproblems.com/131 gives the order of growth as N^(1/5+o(1)).). Code: https://github.com/aliuyar1234/lean4-landmark-formalizations/tree/main/14-pham-zakharov-non-averaging}
}