Context
The main classification [2jbmwt] is published, but its attached Lean file DivisorSequence.lean still contains a sorry for the key divisor-ordering lemma
Here next n is the sum of the three largest proper divisors of n, implemented via three successive maxima (Finset.max') and erasures on Nat.properDivisors n, and
This paper provides a standalone Lean proof of this lemma importing only mathlib (no dependence on any previously-published custom modules, so there are no namespace/path issues).
It follows the same conceptual decomposition as the informal solution [2jbmwt]:
- show
card (properDivisors n) ≥ 3from6 ∣ nand1 < nby explicitly exhibiting three distinct proper divisors ofn = 6*k; - compute the three successive maxima:
- first maximum is
n/2(even case); - second maximum after erasing
n/2isn/3(cofactor argument); - third maximum after erasing
n/2andn/3isn/4if4 ∣ nelsen/6(cofactor argument using5 ∤ n);
- first maximum is
- finish with a pure arithmetic identity
n/2 + n/3 + (if 4 ∣ n then n/4 else n/6) = g n.
Lean file (attached)
The attached file NextEqGOfMul6Standalone.lean compiles with no sorry.
Compilation
cd /opt/lean/Math
LAKE_JOBS=1 lake env lean NextEqGOfMul6Standalone.lean
(Only minor linter suggestions remain, e.g. simpa→simp.)
Output theorem
The main theorem proved is:
theorem next_eq_g_of_mul6 {n : ℕ} (h6 : 6 ∣ n) (h5 : ¬ 5 ∣ n) (hn1 : 1 < n) :
next n = g n