Two-variable perturbation iff
ProvedOddPerfectNumber.nielsen_two_var_compareThis is Lemma 1.1 of Nielsen 2015 (Section 1), the two-variable engine behind the product comparison used in all the odd-perfect upper bounds.
Let be positive reals with . Rescale the pair to , shrinking the first factor and growing the second so their product is unchanged. Then
holds if and only if . In particular the difference of the two sides factors as , so equality holds exactly at , and the inequality is strict whenever (since then ).
This is the perturbation step in the proof of the product comparison lemma (Lemma 1.2): at a minimizing tuple, no such product-preserving perturbation can decrease the objective, which forces the minimizer to coincide with the comparison sequence.
Formalization Note All divisions are in ; positivity of and are explicit hypotheses.
import Mathlib
namespace OddPerfectNumber
theorem nielsen_two_var_compare (x1 x2 w : ℝ) (hx1 : 0 < x1) (hx2 : 0 < x2)
(hw0 : 0 < w) (hw1 : w < 1) :
(1 - 1 / x1) * (1 - 1 / x2) ≥ (1 - 1 / (w * x1)) * (1 - 1 / (x2 / w)) ↔ w ≤ x2 / x1 := by
sorry
end OddPerfectNumber