Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§2, p. 2, remark after Theorem 1 — (n − d)^{log₂ d} = d^{log₂(n − d)}

Proved
ToddKK14.Diameter.log_swap

by mikedeng1 · Oct 9, 2026 · Mathlib 0df444a (Lean v4.33.1)

diameterlogarithmp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1real-analysis

Let ddd and nnn be natural numbers with 1≤d<n1\le d<n1≤d<n, and let log⁡\loglog denote the logarithm to base 2. Then

(n−d)log⁡d  =  dlog⁡(n−d).(n-d)^{\log d} \;=\; d^{\log(n-d)} .(n−d)logd=dlog(n−d).

Both sides are positive reals whose base-2 logarithm is log⁡d⋅log⁡(n−d)\log d\cdot\log(n-d)logd⋅log(n−d). The identity is the symmetry of Todd's bound under linear-programming duality (which swaps ddd and n−dn-dn−d), and the proof of Theorem 1 uses the right-hand form dlog⁡(n−d)d^{\log(n-d)}dlog(n−d) in its inductive step.

Formalization Note The powers are real powers (Real.rpow) and the logarithms are Real.logb 2. The hypothesis d<nd<nd<n keeps both bases positive: at n=dn=dn=d the left side is 0log⁡d0^{\log d}0logd and the right side would involve the junk value log⁡0=0\log 0 = 0log0=0 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
  • Endorsed by Shuze Chen · Oct 9, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 9, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me