Lemma 4 (48)
OpenQAlgorithms.Papers.Independent.Advance50.P28.iid_finite_extractorAll logarithms are natural and is the full distance. Let be a normalized law on a finite nonempty alphabet , and let be the uniform law on symbols. For a map , write for its pushforward. Fix and . Let be the realized empirical types, their word classes, their common atom probability, and . Set and . There exists with
An impossible type has and an empty maximum is zero. The two displayed type sets may overlap. This retains every term of (48).
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P28
noncomputable section
open MeasureTheory Filter
open scoped BigOperators ENNReal Topology
namespace QAlgorithms.Papers.Independent.Advance50.P28
open QAlgorithms.Papers.Independent.Information100.P56 (IsLaw)
attribute [local instance] Classical.propDecidable Classical.decEq
/-- Hayashi, PDF pp.8–9, Lemma 4, (48): all three terms and overlapping type sets. -/
theorem iid_finite_extractor {A : Type*} [Fintype A] [Nonempty A]
(P : A → ℝ) (hP : IsLaw P) (n M : ℕ) (hn : 0 < n) (hM : 0 < M) :
∃ f : (Fin n → A) → Fin M,
extractionError (iid P n) f ≤
2 * (∑ x : Fin n → A, if 1 / (M : ℝ) ≤ iid P n x then iid P n x else 0) +
2 * (∑ q ∈ firstTypes P n M, (M : ℝ) * typeAtom P q * typeMass P n q) +
2 * ((types A n).card : ℝ) * rareTypePeak P n M := by sorry
end QAlgorithms.Papers.Independent.Advance50.P28
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
Let be any finite nonempty type, let satisfy and , and let be positive natural numbers. Write for , let be the finite set of functions arising as , and define
Then there exists a function such that
The first two thresholds are inclusive, while the threshold defining is strict; if its qualifying set is empty, that maximum is . Zero values of are permitted, with in the products defining .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.