Lemma 14 —
ProvedStochLinOpt.UpperBound.martingale_sum_le_half_betaModel. Let be a probability space with a filtration , where is the information available before round . The decision set is compact and contains ; the unknown mean satisfies on ; and . The decisions are -measurable, the losses are -measurable, almost surely, the noise satisfies , and on every outcome is a run of ConfidenceBall₂ with losses .
With ,
This is the concentration step of the confidence argument, obtained from Freedman's inequality and a union bound over .
Formalization Note The event is a single event quantified over all . The hypothesis is added: the paper's proof uses (PDF p. 10), but its model only gives ; the hypothesis holds when costs lie in . A general filtration makes the statement more general than the natural filtration of the losses; the proof uses only the listed properties. The conditional-mean hypothesis is imposed only at the chosen decision , which is weaker than the paper's "for all ". The Section 5 coordinates (spanner equal to the standard basis) are without loss of generality.
import Mathlib import Definitions.Def_StochLinOpt_UpperBound_confidenceBall2 import Definitions.Def_StochLinOpt_UpperBound_analysisQuantities open Matrix MeasureTheory
namespace StochLinOpt.UpperBound
theorem martingale_sum_le_half_beta {n : ℕ} {Ω : Type*} {mΩ : MeasurableSpace Ω}
(P : Measure Ω) [IsProbabilityMeasure P] (𝓕 : Filtration ℕ mΩ)
(D : Set (Fin n → ℝ)) (hD_compact : IsCompact D)
(hD_basis : ∀ i : Fin n, (Pi.single i (1 : ℝ) : Fin n → ℝ) ∈ D)
(hD_cube : ∀ y ∈ D, ∀ i, |y i| ≤ 1)
(μ : Fin n → ℝ) (hμD : ∀ y ∈ D, |μ ⬝ᵥ y| ≤ 1)
(δ : ℝ) (hδ : 0 < δ) (hδ1 : δ < 1)
(x : ℕ → Ω → Fin n → ℝ) (ℓ : ℕ → Ω → ℝ)
(hx_meas : ∀ t : ℕ, 1 ≤ t → Measurable[𝓕 t] (x t))
(hℓ_meas : ∀ t : ℕ, 1 ≤ t → Measurable[𝓕 (t + 1)] (ℓ t))
(hℓ_bdd : ∀ t : ℕ, 1 ≤ t → ∀ ω, |ℓ t ω| ≤ 1)
(hη_bdd : ∀ t : ℕ, 1 ≤ t → ∀ ω, |ℓ t ω - μ ⬝ᵥ x t ω| ≤ 1)
(hmean : ∀ t : ℕ, 1 ≤ t → P[ℓ t | 𝓕 t] =ᵐ[P] fun ω => μ ⬝ᵥ x t ω)
(hrun : ∀ ω, IsConfidenceBall2Run D δ (fun t => x t ω) (fun t => ℓ t ω)) :
1 - δ ≤ P.real {ω | ∀ t : ℕ, 1 ≤ t →
∑ τ ∈ Finset.Ico 1 t, mIncrement δ μ (fun s => x s ω) (fun s => ℓ s ω) τ ≤
beta n δ t / 2} := by sorry
end StochLinOpt.UpperBound
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. is a probability space with filtration , and . The notation, for a fixed outcome (with , ), is:
- ;
- ;
- ;
- ;
- ;
- ;
- if for all , and otherwise;
- .
Hypotheses.
- is compact, contains every standard basis vector , and satisfies for all and all .
- is a fixed (non-random) vector with for all .
- .
- and for , and for every :
- is -measurable;
- is -measurable;
- for every ;
- for every ;
- almost surely.
- For every outcome (not just almost every one), is a run with losses : for every , and some satisfies for all and .
and are unconstrained.
Conclusion.
This is a single event covering all rounds , with no horizon.
Degenerate cases.
- : the sum is empty, so the requirement is , which always holds.
- : every , so the event is all of .
- with empty: hypothesis 5 cannot hold ( is nonempty because is a probability measure), so the statement is vacuous.
- Division: the denominators , so there is no division by zero.
StochLinOpt.UpperBound.confidence
Setting and hypotheses. These are the same as in the previous statement. is a probability space with filtration . The notation, for a fixed outcome , is:
- ;
- ;
- ;
- .
The hypotheses are:
- is compact, contains every standard basis vector, and lies in the cube .
- is fixed, with on .
- .
- Random and such that, for every :
- is -measurable;
- is -measurable;
- and at every outcome;
- almost surely.
- For every outcome , is a run with losses : for every , and some satisfies for all and .
One additional hypothesis:
- . This quantity equals , so the condition says . Given , it is equivalent to .
Conclusion.
Here is built from the outcome's own and .
Degenerate cases.
- : , and .
- : the event is all of , provided is nonempty. If is empty, hypothesis 5 cannot hold ( is nonempty) and the statement is vacuous.
- and : unconstrained and unused.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.