Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 3.6: Modified multinomial expected prefix excess

Open
QAlgorithms.Papers.Independent.Extend50.P32.modifiedMultinomialPrefix

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

prove2quantum

Let d≥1d\ge1d≥1 and let α=(α1,…,αd)\alpha=(\alpha_1,\ldots,\alpha_d)α=(α1​,…,αd​) be a nonincreasing probability vector with nonnegative entries. Draw an iid word of length nnn with letter law α\alphaα and let λ\lambdaλ be its weak-insertion RSK shape, padded to ddd rows. For 1≤k≤d1\le k\le d1≤k≤d, write λ≤k=∑i=1kλi\lambda_{\le k}=\sum_{i=1}^k\lambda_iλ≤k​=∑i=1k​λi​, α≤k=∑i=1kαi\alpha_{\le k}=\sum_{i=1}^k\alpha_iα≤k​=∑i=1k​αi​, α≥k=∑i=kdαi\alpha_{\ge k}=\sum_{i=k}^d\alpha_iα≥k​=∑i=kd​αi​, and α>k=∑i=k+1dαi\alpha_{>k}=\sum_{i=k+1}^d\alpha_iα>k​=∑i=k+1d​αi​. Assume n≥1n\ge1n≥1 and all αi\alpha_iαi​ are distinct. For an ordinary multinomial histogram hhh, the modified multinomial signed weight multiplies its probability by 1+∑i<j(αjhi/αi−hj)/(n(αi−αj))1+\sum_{i<j}(\alpha_j h_i/\alpha_i-h_j)/(n(\alpha_i-\alpha_j))1+∑i<j​(αj​hi​/αi​−hj​)/(n(αi​−αj​)). This cancelled expression permits a zero last mass; these signed weights are not probabilities. The excess is Excess⁡k(α)=∑i≤k<jαj/(αi−αj)\operatorname{Excess}_k(\alpha)=\sum_{i\le k<j}\alpha_j/(\alpha_i-\alpha_j)Excessk​(α)=∑i≤k<j​αj​/(αi​−αj​).

Eh∼ModMult⁡(n,α)[h≤k−nα≤k]=Excess⁡k(α).\mathbb E_{h\sim\operatorname{ModMult}(n,\alpha)}\bigl[h_{\le k}-n\alpha_{\le k}\bigr]=\operatorname{Excess}_k(\alpha).Eh∼ModMult(n,α)​[h≤k​−nα≤k​]=Excessk​(α).

This quantifies the excess of the leading rows above their linear multinomial scale.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P32
Formal statement
noncomputable section

open MeasureTheory Filter

open scoped BigOperators ENNReal Matrix ComplexOrder Topology

namespace QAlgorithms.Papers.Independent.Extend50.P32

open QAlgorithms.Papers.Independent.Support50.P38 (wordMass tv)

-- For the density matrices below, the characteristic-polynomial identity
-- preserves all eigenvalues with multiplicity and is equivalent to unitary
-- diagonalization with these real eigenvalues. No accuracy is assumed.

open QAlgorithms.Papers.Independent.Gap20.P17 (HasSpectrum)

/-- Proposition 3.6, PDF pp.14-15. Printed: a constant E_k^(n)(alpha) inside
the expectation. Corrected: centered histogram PREFIX statistic, as the
rowwise proof and telescoping require. n>0 is the domain of phi's 1/n;
alpha_d=0 is retained by cancellation. Independent moderation required. -/
theorem modifiedMultinomialPrefix {d n : ℕ} (hd : 0 < d) (hn : 0 < n)
    (alpha : Fin d → ℝ) (hAlpha : Learning.IsDistribution alpha)
    (hSorted : Antitone alpha) (hDistinct : Function.Injective alpha)
    (k : ℕ) (hk : 1 ≤ k) (hkd : k ≤ d) :
    modifiedMean alpha n (fun h => prefixMass h k - prefixMass alpha k * n) = (spectralPrefixExcessLimit alpha k).toReal := by sorry

end QAlgorithms.Papers.Independent.Extend50.P32

end
Source
Efficient quantum tomography II, arXiv:1612.00034v1, PDF p. 14, Proposition 3.6
Read-back

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

Let d,n>0d,n>0d,n>0, let α0,…,αd−1\alpha_0,\ldots,\alpha_{d-1}α0​,…,αd−1​ be nonnegative, sum to one, be nonincreasing, and be pairwise distinct, and let 1≤k≤d1\le k\le d1≤k≤d. For a length-nnn word www over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, let hi(w)h_i(w)hi​(w) count occurrences of letter iii, and define the real multiplier

mα,n(h)=1+∑0≤i<j<dαjhi/αi−hj(αi−αj)n.m_{\alpha,n}(h)= 1+\sum_{0\le i<j<d} \frac{\alpha_jh_i/\alpha_i-h_j}{(\alpha_i-\alpha_j)n}.mα,n​(h)=1+0≤i<j<d∑​(αi​−αj​)nαj​hi​/αi​−hj​​.

The assertion is

∑w(∏t<nαwt)mα,n(h(w))(∑i<khi(w)−n∑i<kαi)=Λkreal,\sum_w\left(\prod_{t<n}\alpha_{w_t}\right) m_{\alpha,n}(h(w)) \left(\sum_{i<k}h_i(w)-n\sum_{i<k}\alpha_i\right) =\Lambda_k^{\mathrm{real}},w∑​(t<n∏​αwt​​)mα,n​(h(w))(i<k∑​hi​(w)−ni<k∑​αi​)=Λkreal​,

where

Λk=∑0≤i<kk≤j<d{+∞,αi=αj,max⁡{αj/(αi−αj),0},αi≠αj,\Lambda_k= \sum_{\substack{0\le i<k\\k\le j<d}} \begin{cases} +\infty,&\alpha_i=\alpha_j,\\ \max\{\alpha_j/(\alpha_i-\alpha_j),0\},&\alpha_i\ne\alpha_j, \end{cases}Λk​=0≤i<kk≤j<d​∑​{+∞,max{αj​/(αi​−αj​),0},​αi​=αj​,αi​=αj​,​

and Λkreal\Lambda_k^{\mathrm{real}}Λkreal​ is its conversion from the extended nonnegative reals to the reals, which sends +∞+\infty+∞ to zero. Here pairwise distinctness and sorting make every cross-cut denominator positive and Λk\Lambda_kΛk​ finite; they also make αi>0\alpha_i>0αi​>0 whenever i<ji<ji<j occurs in the multiplier. A zero final coordinate is allowed, and k=dk=dk=d gives an empty sum for Λk\Lambda_kΛk​.

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

    Confirmed by the moderator at approval.

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