An additive basis for natural functions
Natural functions are maps from positive integers to positive integers built from 1 and n using addition, multiplication and exponentiation. The question is which natural functions are not sums of two others, and whether every natural function has a canonical additive decomposition. This answers Mayeux's Question (ii) and Gurevič's conjectures on +-prime functions.
Towers are defined recursively as n or U^T, with U not equal to 1 and T a tower. A one-variable version of Wilkie's normal forms maps each natural function to a polynomial with natural-number coefficients, under which finite products of towers become coefficient-one monomials. A coefficient-sum weight argument and coefficient comparison then give atomicity and uniqueness. All results, including the needed inputs, are formalized in Lean 4 with Mathlib, and multi-agent systems assisted with proofs and formalization.
The +-atomic natural functions are exactly the finite products of towers. Every natural function is a sum of such products, unique up to order, so under addition the natural functions form a free commutative semigroup. The Lean formalization of the main theorems has no extra hypotheses and relies on no external results beyond Mathlib.
