Theorem 1.10: Truncated Hellinger and chi-squared loss
OpenQAlgorithms.Papers.Independent.Extend50.P32.truncatedWeightedLossLet 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)
/-- Theorem 1.10, PDF p.4: the two loss functions are already truncated. -/
theorem truncatedWeightedLoss {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) (metric : WeightedMetric) :
swMeanExt alpha n (fun s => weightedLoss metric k (normalizedShapeRows n s) alpha) ≤
ENNReal.ofReal (46 * (k : ℝ) * d / 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
Let be positive integers, and let be a nonincreasing probability vector: , , and whenever . Let , and choose either the Hellinger or the chi-squared metric. For a word , construct its insertion shape by processing its letters in order, inserting each letter into the first row, replacing and bumping the first strictly larger letter into the next row, and continuing recursively; append the letter when no strictly larger entry exists. Write for the length of row , counting rows from zero and assigning length zero to missing rows, and put . Define
For the chosen loss , the assertion is
in the extended nonnegative reals. Zero coordinates of are allowed; a zero word weight multiplied by an infinite loss contributes zero.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.