Proposition 3.6: Modified multinomial expected prefix excess
OpenQAlgorithms.Papers.Independent.Extend50.P32.modifiedMultinomialPrefixLet and let be a nonincreasing probability vector with nonnegative entries. Draw an iid word of length with letter law and let be its weak-insertion RSK shape, padded to rows. For , write , , , and . Assume and all are distinct. For an ordinary multinomial histogram , the modified multinomial signed weight multiplies its probability by . This cancelled expression permits a zero last mass; these signed weights are not probabilities. The excess is .
This quantifies the excess of the leading rows above their linear multinomial scale.
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P32
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
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let , let be nonnegative, sum to one, be nonincreasing, and be pairwise distinct, and let . For a length- word over , let count occurrences of letter , and define the real multiplier
The assertion is
where
and is its conversion from the extended nonnegative reals to the reals, which sends to zero. Here pairwise distinctness and sorting make every cross-cut denominator positive and finite; they also make whenever occurs in the multiplier. A zero final coordinate is allowed, and gives an empty sum for .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.