Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 15: attained maximal logarithmic second moment at fixed entropy

Open
QAlgorithms.Papers.Independent.Advance50.P21.fixedEntropy_secondMoment_max

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let d≥1d\ge1d≥1 and H0∈[0,log⁡d]H_0\in[0,\log d]H0​∈[0,logd]. For a probability vector qqq, let H(q)=−∑iqilog⁡qiH(q)=-\sum_iq_i\log q_iH(q)=−∑i​qi​logqi​ and L(q)=∑iqi(log⁡qi)2L(q)=\sum_iq_i(\log q_i)^2L(q)=∑i​qi​(logqi​)2, with continuous zero-weight values. There exists x∈[0,1/d]x\in[0,1/d]x∈[0,1/d] such that, writing r=d−1r=d-1r=d−1 and y=1−rxy=1-rxy=1−rx, the vector q∗=(x,…,x,y)q_*=(x,\ldots,x,y)q∗​=(x,…,x,y) has x≤yx\le yx≤y and H(q∗)=H0H(q_*)=H_0H(q∗​)=H0​, and

max⁡q: H(q)=H0L(q)=L(q∗)=rx(1−rx)(log⁡x−log⁡(1−rx))2+H02.\max_{q:\,H(q)=H_0}L(q)=L(q_*)=rx(1-rx)\bigl(\log x-\log(1-rx)\bigr)^2+H_0^2.q:H(q)=H0​max​L(q)=L(q∗​)=rx(1−rx)(logx−log(1−rx))2+H02​.

The maximum is over all normalized nonnegative ddd-coordinate distributions and is attained. The variance term has value zero at x=0x=0x=0. This reduces the fixed-entropy maximization to a one-variable family, including the uniform endpoint.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P21
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P21

open scoped BigOperators Matrix ComplexConjugate

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P26 (Mat)

open QAlgorithms.Papers.Independent.Information100.P56 (entropy)

open QAlgorithms.Papers.Independent.Information100.P76 (swapMatrix)

open QAlgorithms.Papers.Independent.Dependency50.P16 (simplex orderedSpectrum majorizedBy)

open QAlgorithms.Papers.Independent.Information100.P08 (Ensemble)

open QAlgorithms.Papers.Independent.Information100.P49 (thermalEntropy)

open QAlgorithms.Papers.Independent.Claimed50.P11 (thermalEntropyInverse)

/-- PDF p.20, Lemma 15, (6.31)–(6.32), with endpoint repair justified pp.21–22.
Printed x<y is changed to x<=y: H0=ln d has the uniform maximizer x=y=1/d.
The maximum is attained, and the x=0 value uses the continuous variance extension. -/
theorem fixedEntropy_secondMoment_max {d : ℕ} (hd : 0 < d) (H0 : ℝ)
    (hH0 : H0 ∈ Set.Icc (0 : ℝ) (Real.log (d : ℝ))) :
    ∃ x : ℝ, x ∈ Set.Icc (0 : ℝ) (1 / (d : ℝ)) ∧
      x ≤ 1 - (d - 1 : ℕ) * x ∧
      oneHeavy d x ∈ simplex d ∧ simplexShannonNats (oneHeavy d x) = H0 ∧
      IsGreatest {v : ℝ | ∃ q ∈ simplex d, simplexShannonNats q = H0 ∧ v = logSecondMoment q}
        (logSecondMoment (oneHeavy d x)) ∧
      logSecondMoment (oneHeavy d x) = peakVariance d x + H0 ^ 2 := by sorry

end QAlgorithms.Papers.Independent.Advance50.P21

end
Source
Entropy power inequalities for qudits, arXiv:1503.04213v3, PDF p. 20, Lemma 15: attained maximal logarithmic second moment at fixed entropy
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

For every natural number d>0d>0d>0 and every real H0∈[0,log⁡d]H_0\in[0,\log d]H0​∈[0,logd], there exists a real x∈[0,1/d]x\in[0,1/d]x∈[0,1/d] with x≤1−(d−1)xx\le1-(d-1)xx≤1−(d−1)x such that the vector q(x)∈Rdq^{(x)}\in\mathbb R^dq(x)∈Rd, whose last coordinate is 1−(d−1)x1-(d-1)x1−(d−1)x and whose other coordinates are xxx, has nonnegative coordinates summing to 111 and entropy H(q(x))=H0H(q^{(x)})=H_0H(q(x))=H0​, where

H(q)=−∑iqilog⁡qi,M2(q)=∑iqi(log⁡qi)2.H(q)=-\sum_iq_i\log q_i,\qquad M_2(q)=\sum_iq_i(\log q_i)^2.H(q)=−i∑​qi​logqi​,M2​(q)=i∑​qi​(logqi​)2.

Moreover, M2(q(x))M_2(q^{(x)})M2​(q(x)) is the greatest element of {M2(q):qi≥0, ∑iqi=1, H(q)=H0}\{M_2(q):q_i\ge0,\ \sum_iq_i=1,\ H(q)=H_0\}{M2​(q):qi​≥0, ∑i​qi​=1, H(q)=H0​}, and

M2(q(x))=Vd(x)+H02,Vd(x)={0,x=0,(d−1)x(1−(d−1)x)(log⁡x−log⁡(1−(d−1)x))2,x≠0.M_2(q^{(x)})=V_d(x)+H_0^2, \qquad V_d(x)= \begin{cases} 0,&x=0,\\ (d-1)x(1-(d-1)x)\bigl(\log x-\log(1-(d-1)x)\bigr)^2,&x\ne0. \end{cases}M2​(q(x))=Vd​(x)+H02​,Vd​(x)={0,(d−1)x(1−(d−1)x)(logx−log(1−(d−1)x))2,​x=0,x=0.​

Logarithms are natural, and zero coordinates contribute 000 to the entropy and second-moment sums. The statement includes d=1d=1d=1, when H0=0H_0=0H0​=0 and the single coordinate of q(x)q^{(x)}q(x) is 111, and includes both endpoints of the permitted entropy interval; it does not assert uniqueness of xxx.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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