Lemma 8, p. 11 — uniform concentration of sample means with confidence levels δℓ growing with the sample size
ProvedMNLTrisection.Adaptive.lemma_8Let be i.i.d. real random variables with mean and almost surely. For every ,
Unlike Hoeffding's inequality with a union bound, the effective failure level grows with the sample size, so later confidence intervals are shorter; this is what removes the factor in Theorem 3.
Formalization Note The sample is independent copies of a draw from a probability measure , observed through a measurable (the encoding of the platform's Hoeffding inequality, UnderstandingML.hoeffding_inequality), and . The probability is the product measure of the event. When the logarithm is negative and the square root is in Lean; this happens only when , where the bound is void. The page's "for all " in the hypothesis is a typo for .
import Mathlib import Definitions.Def_UnderstandingML_Framework import Definitions.Def_MNLTrisection_Adaptive_Model
namespace MNLTrisection.Adaptive
open MeasureTheory UnderstandingML
/-- **Lemma 8** (p. 11). Let `X₁, …, X_L` be i.i.d. with mean `μ` and `a ≤ X_i ≤ b` almost
surely. For any `δ ∈ (0, 1]`,
`Pr[∀ ℓ ∈ [L], |(1/ℓ) ∑_{i=1}^ℓ X_i − μ| ≤ √(2(b − a)² ln(8/(δℓ))/ℓ)] ≥ 1 − Lδ`.
The sample is the product law of `L` copies of a distribution `D`, observed through a measurable
`X : Ω → ℝ`; `μ = ∫ X dD`. -/
theorem lemma_8 {Ω : Type*} [MeasurableSpace Ω] (D : Measure Ω) [IsProbabilityMeasure D]
(X : Ω → ℝ) (hX : Measurable X) {a b : ℝ} (hab : ∀ᵐ ω ∂D, a ≤ X ω ∧ X ω ≤ b)
(L : ℕ) {δ : ℝ} (hδ : 0 < δ) (hδ1 : δ ≤ 1) :
ENNReal.ofReal (1 - L * δ) ≤
iidLaw D L {ω | ∀ ℓ : ℕ, 1 ≤ ℓ → ℓ ≤ L →
|(∑ i ∈ Finset.univ.filter (fun i : Fin L => (i : ℕ) < ℓ), X (ω i)) / ℓ - ∫ x, X x ∂D| ≤
Real.sqrt (2 * (b - a) ^ 2 * Real.log (8 / (δ * ℓ)) / ℓ)} := by sorry
end MNLTrisection.Adaptive
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.