Formalizing Singer Sidon Constructions and Sidon Set Infrastructure in Lean 4
Abstract
Erd\H{o}s Problem 30 asks for sharp asymptotics of the Sidon extremal function , and Singer's construction is the classical source of lower-bound examples matching the main term. We present a Lean 4 formalization of Singer's Sidon set construction, together with reusable Sidon-set infrastructure for additive combinatorics. For every prime power , we prove the existence of a Sidon set modulo of cardinality ; the prime-field case is the base presentation. The proof proceeds through a non-trivial algebraic chain: construction of the base field and its degree-three extension, analysis of the trace kernel as a 2-dimensional subspace over the base field, a geometric argument via subspace intersections establishing the multiplicative Sidon property in the quotient group, and a transfer from quotient multiplication to modular integer addition. Around this central result, we develop a reusable Sidon set library. It comprises interval and modular Sidon sets, the extremal function , Lindstr\"om's cross-difference inequality, a Johnson-route shift-incidence upper bound of the form , representation-function identities, and unconditional two-sided bounds with exact floor-rounded finite statements for . We further formalize a conditional reduction: subpolynomial prime gaps together with a full subpolynomial upper-error hypothesis for imply the Erd\H{o}s Problem 30 estimate for every . The Singer/Sidon modules and transfer lemmas comprise 7,541 lines of Lean 4 with zero active uses of sorry. We describe the mathematical lessons learned, focusing on how formalization clarifies the precise scope of classical arguments and forces explicit treatment of the passage from the field-theoretic construction to integer Sidon predicates.
Cite
@article{arxiv.2605.03274,
title = {Formalizing Singer Sidon Constructions and Sidon Set Infrastructure in Lean 4},
author = {David B. Hulak and Arthur F. Ramos and Ruy J. G. B. de Queiroz},
journal= {arXiv preprint arXiv:2605.03274},
year = {2026}
}
Comments
25 pages, LaTeX; expanded from prime-field to prime-power Singer constructions; added the prime-power theorem and prime-power lower-bound reduction; exposition revised throughout