BanditAlgorithm.linear_bandit_linucb_expected_regret
Proved(Expected regret — Corollary 19.3) There is a universal constant such that for every fixed finite action set with (with , ) there is a policy (LinUCB with and from Eq. (19.8)/Theorem 20.5) such that for every linear bandit instance with
- (i.e. in Eq. (19.8)), and
- (= Assumption 19.1(b)),
the expected regret satisfies
import Definitions.Def_StochasticLinearBandit import Definitions.Def_banditRegret open Matrix MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.linear_bandit_linucb_expected_regret :
∃ C : ℝ, 0 < C ∧
∀ (d k n : ℕ) (L : ℝ), 0 < d → 0 < k → 2 ≤ n → 1 ≤ L →
∀ arms : Fin k → Fin d → ℝ,
(∀ j, Real.sqrt (arms j ⬝ᵥ arms j) ≤ L) →
∃ π : BanditPolicy k,
∀ (θstar : Fin d → ℝ) (ν : StochasticBandit k),
IsLinearBandit arms θstar ν →
Real.sqrt (θstar ⬝ᵥ θstar) ≤ 1 →
(∀ j j' : Fin k, θstar ⬝ᵥ (arms j - arms j') ≤ 1) →
banditRegret ν π n ≤
C * d * Real.sqrt n * Real.log (n * L) := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup and notation. This is an existence statement about -armed stochastic bandits with linear structure. A -armed bandit is a -tuple of probability measures on with arm means ; a policy is a family of Markov kernels selecting an arm from each history of arm–reward pairs; the interaction law on length- histories draws at each round an arm from the policy kernel and then a reward from that arm's distribution; and the expected regret is
where is the recorded reward of round . For a feature map () and , say realizes iff for every arm and is -sub-Gaussian (each integrable, and for every , with the corresponding integrability).
Assertion.
with the quantifiers and side conditions detailed below.
Hypotheses (in quantifier order).
- A single constant works for all instances.
- , , , and (a real).
- The features are bounded: for every arm .
- The policy is chosen after but before : one policy must satisfy the bound uniformly over every parameter/bandit pair meeting the remaining conditions.
- realizes the linear bandit as above (linear means, -sub-Gaussian).
- .
- Bounded mean spread: for every ordered pair of arms .
Edge cases.
- The bound controls only the expected regret (a Bochner integral, by convention if non-integrable); it is not a high-probability statement.
- The optimal mean is a supremum over the finitely many arms; with it is a genuine maximum.
- Under and , , so the right-hand side is positive.
- The sub-Gaussian variance proxy is fixed at ; no other noise assumption appears.
- Nothing constrains the policy to be computable or to have any specific algorithmic form — only existence is claimed.
Confirmed by the mission captain (proposal self-audit).