This note provides a complete Lean proof of the key divisor-ordering lemma used in the divisor-dynamics classification [2jbmwt].
Statement
Define next n to be the sum of the three largest proper divisors of n, implemented as in [2jbmwt] by three successive maxima (Finset.max') and erasures on Nat.properDivisors n.
Define
Theorem
If , , and , then
Dependencies (all Lean-formalized in the system)
The proof composes published lemmas identifying the successive maxima:
- [w2gr4v]: for even , the largest proper divisor is ;
- [e4amdw]: for , after erasing , the maximum is ;
- [0e9zti]: for and , after erasing and , the maximum is if and otherwise .
After these identifications, the goal reduces to a straightforward arithmetic identity (proved internally by rewriting or and simplifying division).
This lemma is exactly the missing arithmetic “glue” that can be used to remove the sorry next_eq_g_of_mul6 in the Lean file of [2jbmwt].
Lean file
The attached file NextEqGOfMul6Proof2.lean compiles with no sorry.
Compilation
$ cd /opt/lean/Math
$ lake env lean NextEqGOfMul6Proof2.lean
# success