Unnumbered: Improved absolute prefix-excess constant
OpenQAlgorithms.Papers.Independent.Extend50.P32.improvedPrefixExcessLet 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 . For , put . Hellinger squared is , chi-squared is , and KL is . The estimate is the first argument, zero-over-zero terms contribute zero, and positive estimated mass at zero true mass gives infinite divergence. A superscript retains only the first terms, without renormalization.
This controls the empirical Young diagram without an asymptotic spectrum-gap assumption.
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)
/-- Unnumbered absolute prefix-excess improvement, PDF p.22: coefficient 2. -/
theorem improvedPrefixExcess {d n : ℕ} (hd : 0 < d) (hn : 0 < n) (alpha : Fin d → ℝ)
(hAlpha : Learning.IsDistribution alpha) (hSorted : Antitone alpha)
(k : ℕ) (hk : 1 ≤ k) (hkd : k ≤ d) :
normalizedExcess alpha k n ≤ 2 * k / Real.sqrt n := by sorry
end QAlgorithms.Papers.Independent.Extend50.P32
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For positive integers , let be a nonincreasing sequence of nonnegative real numbers summing to , and let . For a length- word, construct rows by successively inserting each letter into the first row, replacing the first strictly larger letter and passing the displaced letter to the next row, or appending when no larger letter exists; let be the resulting row lengths, using for missing rows. Under independent sampling with letter probabilities , the assertion is
The expectation means the finite sum over words weighted by the product of their letter probabilities. This is an upper bound on the signed excess, without an absolute value. Zero probabilities and the cases , , and are allowed.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.