D29: lower confidence bound on finite-alphabet entropy
OpenQAlgorithms.Papers.Independent.Intake100.P61.iid_entropy_lower_confidenceLet be a probability law on a finite alphabet of size , where is an integer, and let be iid samples with . Write , , and , with . For ,
Both entropies are one-symbol entropies in bits. This is the paper's lower confidence inference from D27–D28. Source correction: is excluded, since its zero radius makes the printed inclusive event certain for a deterministic law. D29 is physically on PDF page 18, despite the plan's page-17 anchor. Independent moderation remains pending.
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P61
noncomputable section
open MeasureTheory Filter
open scoped BigOperators ENNReal Topology
namespace QAlgorithms.Papers.Independent.Intake100.P61
attribute [local instance] Classical.propDecidable Classical.decEq
-- The frozen frequency formula specializes exactly to the source alphabet Fin (2 ^ d).
open QAlgorithms.Papers.Independent.Advance50.P30 (empiricalFrequency)
/-- PDF p.18, D29 following D26–D28 on pp.17–18: lower confidence bound
for one-symbol entropy. n>=2 corrects the false n=1 zero-radius inclusive event.
The singleton alphabet (d=0) is retained. Independent moderation is required. -/
theorem iid_entropy_lower_confidence
(d n : ℕ) (hn : 2 ≤ n) (p : Fin (2 ^ d) → ℝ)
(hp : ∀ a, 0 ≤ p a) (hmass : ∑ a, p a = 1)
(epsilon : ℝ) (heps : 0 < epsilon) (heps1 : epsilon < 1) :
iidWordProbability p n (fun word =>
(-∑ a, p a * Real.logb 2 (p a)) ≤ empiricalEntropy word -
Real.sqrt (2 * (Real.logb 2 n) ^ 2 * Real.log (2 / epsilon) / n)) ≤ epsilon := by sorry
end QAlgorithms.Papers.Independent.Intake100.P61
end
Read-back
What the Lean code literally says, in plain math · gpt-6.1-sol
For any natural numbers with , any function satisfying for every and , and any real , put . For a word of length , put and . Then
Thus the bounded event includes equality at the displayed threshold. Zero probabilities are permitted and contribute zero to entropy, using the totalized convention ; , with its one-symbol alphabet, is also included.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.