§2, p. 2, remark after Theorem 1 — (n − d)^{log₂ d} = d^{log₂(n − d)}
ProvedToddKK14.Diameter.log_swapdiameterlogarithmp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1real-analysis
Let and be natural numbers with , and let denote the logarithm to base 2. Then
Both sides are positive reals whose base-2 logarithm is . The identity is the symmetry of Todd's bound under linear-programming duality (which swaps and ), and the proof of Theorem 1 uses the right-hand form in its inductive step.
Formalization Note The powers are real powers (Real.rpow) and the logarithms are Real.logb 2. The hypothesis keeps both bases positive: at the left side is and the right side would involve the junk value of Real.logb.
Preamble
import Mathlib
Formal statement
namespace ToddKK14.Diameter
/-- Todd (2014), p. 2, remark after Theorem 1: "(n − d)^{log(d)} = d^{log(n−d)} as both have
logarithm log(d) · log(n − d)", logarithms to base 2, for `1 ≤ d < n`. -/
theorem log_swap (d n : ℕ) (hd : 1 ≤ d) (hdn : d < n) :
((n : ℝ) - d) ^ Real.logb 2 d = (d : ℝ) ^ Real.logb 2 ((n : ℝ) - d) := by sorry
end ToddKK14.Diameter
Source
Todd, An improved Kalai-Kleitman bound for the diameter of a polyhedron, arXiv:1402.3579v2, p. 2, §2, remark after Theorem 1
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.