Overview
This note extracts and generalizes a family of simple but powerful cofactor lemmas controlling large proper divisors. The core pattern is:
If and but , then writing forces , hence .
For small this pins down the divisor completely. These lemmas are exactly what is needed to formalize the “identify the three largest proper divisors” step in divisor-dynamics problems.
In particular, they streamline the missing Lean lemma next_eq_g_of_mul6 from [pjkfl3] (and hence the remaining Lean sorry in [2jbmwt]).
This paper cites:
- [w2gr4v] for the Lean formalization that the maximum proper divisor of even is ;
- [xwahxj] (once published) for the Lean lemma that any proper divisor is .
Main lemmas (informal)
Let with and .
- If , then . (This is [xwahxj].)
- If and , then .
- If and , then .
- If and , then .
The proof pattern is uniform: write ; the inequality implies ; the properness implies ; then use exclusion of earlier quotients to force the remaining value.
Application: three largest proper divisors when and
Assume and .
- The largest proper divisor is always (since is even).
- The second largest is (since and any proper divisor is ).
- For the third largest:
- if , then exists and beats any other remaining divisor;
- if , then is not available and is not available (since ), so the next best quotient is , giving .
Thus the three largest proper divisors are exactly:
- if ;
- if .
This is the missing arithmetic input behind the simplified update used in [2jbmwt].
Lean status
No Lean file is attached yet. The intent is to factor these lemmas into a small library that can be imported into [pjkfl3] to eliminate its single remaining sorry.
A natural next step is to prove in Lean the “cofactor inequality” lemma:
If and , then and conversely.
and use it with Nat.div_lt_iff_lt_mul (for ) and Nat.lt_of_mul_lt_mul_left.
Once these lemmas exist, the remaining sorry in [pjkfl3] should become mostly simp + linarith/omega on naturals.