Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 29: Exact entropy–distance locus: maximum entropy at TV=Delta is log M-min_m d(m/M+Delta/2||m/M); minimum TV at a fixed entropy in [h_(k-1),h_k) is 2(1-(k+theta)/M), with explicit attaining la

Open
QAlgorithms.Papers.Independent.Intakenext100.P28.entropy_distance_locus

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

prove2quantum

Let M>1M>1M>1 be an integer and UUU uniform on MMM symbols. For 0<Δ≤2(1−1/M)0<\Delta\le2(1-1/M)0<Δ≤2(1−1/M),

max⁡∣P−U∣=ΔH(P)=log⁡bM−min⁡1≤m≤M−⌈ΔM/2⌉d(m/M+Δ/2∥m/M).\max_{|P-U|=\Delta}H(P)=\log_bM- \min_{1\le m\le M-\lceil\Delta M/2\rceil}d(m/M+\Delta/2\|m/M).∣P−U∣=Δmax​H(P)=logb​M−1≤m≤M−⌈ΔM/2⌉min​d(m/M+Δ/2∥m/M).

For a minimizing mmm, the maximizing law has mmm masses 1/M+Δ/(2m)1/M+\Delta/(2m)1/M+Δ/(2m) and the remaining masses 1/M−Δ/[2(M−m)]1/M-\Delta/[2(M-m)]1/M−Δ/[2(M−m)]. Define h0=0h_0=0h0​=0, hM−1=log⁡bMh_{M-1}=\log_bMhM−1​=logb​M, and hk=h(k/M)+(k/M)log⁡bkh_k=h(k/M)+(k/M)\log_bkhk​=h(k/M)+(k/M)logb​k for 1≤k≤M−21\le k\le M-21≤k≤M−2, where hhh is binary entropy. If H∈[hk−1,hk)H\in[h_{k-1},h_k)H∈[hk−1​,hk​), 1≤k≤M−11\le k\le M-11≤k≤M−1, then

min⁡H(P)=H∣P−U∣=2(1−(k+θ)/M).\min_{H(P)=H}|P-U|=2(1-(k+\theta)/M).H(P)=Hmin​∣P−U∣=2(1−(k+θ)/M).

Here 0≤θ<10\le\theta<10≤θ<1 is chosen so the attaining law has entropy HHH: its masses are 1−(k−1+θ)/M1-(k-1+\theta)/M1−(k−1+θ)/M, then k−1k-1k−1 masses 1/M1/M1/M, then θ/M\theta/Mθ/M, then zeros. The statement includes existence of all optimizing parameters and attaining laws, covering (376)–(381). The excluded endpoint H=log⁡bMH=\log_bMH=logb​M is realized by the uniform law with distance zero.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P28
Formal statement
noncomputable section

open MeasureTheory Set Filter

open scoped ENNReal NNReal Topology BigOperators ProbabilityTheory

namespace QAlgorithms.Papers.Independent.Intakenext100.P28

universe u

attribute [local instance] Classical.propDecidable

/-- Theorem 29: Exact shannonEntropyBase–distance locus: maximum shannonEntropyBase at TV=Delta is log M-min_m d(m/M+Delta/2||m/M); minimum TV at a fixed shannonEntropyBase in [h_(k-1),h_k) is 2(1-(k+theta)/M), with explicit attaining laws. Sason--Verdu, arXiv:1508.00335v7, PDF p.52.  -/
theorem entropy_distance_locus
    (b : LogBase) (n : ℕ) (hn : 1 < n) :
    (∀ d : ℝ, 0 < d → d ≤ 2 * (1 - 1 / (n : ℝ)) →
      ∃ m : ℕ, 1 ≤ m ∧ m ≤ n - ⌈d * n / 2⌉₊ ∧
        (∀ j : ℕ, 1 ≤ j → j ≤ n - ⌈d * n / 2⌉₊ →
          binaryKL b ((m : ℝ) / n + d / 2) ((m : ℝ) / n) ≤
            binaryKL b ((j : ℝ) / n + d / 2) ((j : ℝ) / n)) ∧
        FiniteProbabilityLaw (entropyMaxLaw n m d) ∧ finiteTV (entropyMaxLaw n m d) (uniformLaw n) = d ∧
        shannonEntropyBase b (entropyMaxLaw n m d) = logB b n - binaryKL b ((m : ℝ) / n + d / 2) ((m : ℝ) / n) ∧
        (∀ p : Fin n → ℝ, FiniteProbabilityLaw p → finiteTV p (uniformLaw n) = d →
          shannonEntropyBase b p ≤ shannonEntropyBase b (entropyMaxLaw n m d))) ∧
    (∀ (k : ℕ) (H : ℝ), 1 ≤ k → k ≤ n - 1 →
      uniformEntropyThreshold b n (k - 1) ≤ H → H < uniformEntropyThreshold b n k →
      ∃ t : ℝ, 0 ≤ t ∧ t < 1 ∧ FiniteProbabilityLaw (entropyMinLaw n k t) ∧
        shannonEntropyBase b (entropyMinLaw n k t) = H ∧
        finiteTV (entropyMinLaw n k t) (uniformLaw n) = 2 * (1 - ((k : ℝ) + t) / n) ∧
        (∀ p : Fin n → ℝ, FiniteProbabilityLaw p → shannonEntropyBase b p = H →
          2 * (1 - ((k : ℝ) + t) / n) ≤ finiteTV p (uniformLaw n))) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P28

end
Source
fff-divergence Inequalities, arXiv:1508.00335v7, PDF p. 52, Theorem 29
Read-back

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

Let b>1b>1b>1 and let n≥2n\geq2n≥2 be a natural number. For real xxx, put Lb(x)=ln⁡x/ln⁡bL_b(x)=\ln x/\ln bLb​(x)=lnx/lnb, using the total real logarithm, in particular ln⁡0=0\ln0=0ln0=0; real division by zero is also defined to be zero. For a real vector p=(pi)i=0n−1p=(p_i)_{i=0}^{n-1}p=(pi​)i=0n−1​, call ppp a probability vector when every coordinate is nonnegative and ∑ipi=1\sum_i p_i=1∑i​pi​=1, and define

ui=1n,V(p,u)=∑i∣pi−1n∣,Hb(p)=−∑ipiLb(pi),Kb(x,y)=xLb(x/y)+(1−x)Lb((1−x)/(1−y)).u_i=\frac1n,\qquad V(p,u)=\sum_i\left|p_i-\frac1n\right|,\qquad H_b(p)=-\sum_i p_iL_b(p_i),\qquad K_b(x,y)=xL_b(x/y)+(1-x)L_b((1-x)/(1-y)).ui​=n1​,V(p,u)=i∑​​pi​−n1​​,Hb​(p)=−i∑​pi​Lb​(pi​),Kb​(x,y)=xLb​(x/y)+(1−x)Lb​((1−x)/(1−y)).

The declaration asserts two statements. First, for every real ddd with 0<d≤2(1−1/n)0<d\leq2(1-1/n)0<d≤2(1−1/n), there exists a natural number mmm with 1≤m≤n−⌈dn/2⌉N1\leq m\leq n-\lceil dn/2\rceil_{\mathbb N}1≤m≤n−⌈dn/2⌉N​ such that

Kb(m/n+d/2,m/n)≤Kb(j/n+d/2,j/n)for every natural j with 1≤j≤n−⌈dn/2⌉N.K_b(m/n+d/2,m/n)\leq K_b(j/n+d/2,j/n) \quad\text{for every natural }j\text{ with }1\leq j\leq n-\lceil dn/2\rceil_{\mathbb N}.Kb​(m/n+d/2,m/n)≤Kb​(j/n+d/2,j/n)for every natural j with 1≤j≤n−⌈dn/2⌉N​.

Here ⌈⋅⌉N\lceil\cdot\rceil_{\mathbb N}⌈⋅⌉N​ is the natural-number ceiling, and subtraction between natural numbers is truncated at zero. For this mmm, the vector

Mi={1/n+d/(2m),i<m,1/n−d/(2(n−m)),i≥mM_i= \begin{cases} 1/n+d/(2m),&i<m,\\ 1/n-d/(2(n-m)),&i\geq m \end{cases}Mi​={1/n+d/(2m),1/n−d/(2(n−m)),​i<m,i≥m​

is a probability vector, satisfies V(M,u)=dV(M,u)=dV(M,u)=d and Hb(M)=Lb(n)−Kb(m/n+d/2,m/n)H_b(M)=L_b(n)-K_b(m/n+d/2,m/n)Hb​(M)=Lb​(n)−Kb​(m/n+d/2,m/n), and satisfies Hb(p)≤Hb(M)H_b(p)\leq H_b(M)Hb​(p)≤Hb​(M) for every probability vector ppp with V(p,u)=dV(p,u)=dV(p,u)=d. Second, define hb(s)=−sLb(s)−(1−s)Lb(1−s)h_b(s)=-sL_b(s)-(1-s)L_b(1-s)hb​(s)=−sLb​(s)−(1−s)Lb​(1−s) and, for a natural number rrr, define

Tr={0,r=0,Lb(n),r≠0 and r=n−1,hb(r/n)+(r/n)Lb(r),otherwise.T_r= \begin{cases} 0,&r=0,\\ L_b(n),&r\ne0\text{ and }r=n-1,\\ h_b(r/n)+(r/n)L_b(r),&\text{otherwise}. \end{cases}Tr​=⎩⎨⎧​0,Lb​(n),hb​(r/n)+(r/n)Lb​(r),​r=0,r=0 and r=n−1,otherwise.​

For every natural kkk with 1≤k≤n−11\leq k\leq n-11≤k≤n−1 and every real HHH with Tk−1≤H<TkT_{k-1}\leq H<T_kTk−1​≤H<Tk​, there exists a real ttt with 0≤t<10\leq t<10≤t<1 such that the vector

Ni={1−(k−1+t)/n,i=0,1/n,1≤i<k,t/n,i=k,0,i>kN_i= \begin{cases} 1-(k-1+t)/n,&i=0,\\ 1/n,&1\leq i<k,\\ t/n,&i=k,\\ 0,&i>k \end{cases}Ni​=⎩⎨⎧​1−(k−1+t)/n,1/n,t/n,0,​i=0,1≤i<k,i=k,i>k​

is a probability vector, satisfies Hb(N)=HH_b(N)=HHb​(N)=H and V(N,u)=2(1−(k+t)/n)V(N,u)=2(1-(k+t)/n)V(N,u)=2(1−(k+t)/n), and satisfies 2(1−(k+t)/n)≤V(p,u)2(1-(k+t)/n)\leq V(p,u)2(1−(k+t)/n)≤V(p,u) for every probability vector ppp with Hb(p)=HH_b(p)=HHb​(p)=H. Neither of the asserted choices mmm and ttt is stated to be unique; the first assertion excludes d=0d=0d=0, while its upper endpoint is included, and the second assertion includes t=0t=0t=0 but excludes t=1t=1t=1.

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

    Confirmed by the moderator at approval.

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