BanditAlgorithm.adversarial_bandit_exp3ix_high_probability_regret_tuned
Proved(Exp3-IX high-probability bound, learning rate tuned to ) Let (with , ) and . If Exp3-IX is run with and , then the random regret satisfies (Eq. 12.6)
stated as a bound on the adversarialMeasure of the bad set of histories.
import Definitions.Def_AdversarialBandit import Definitions.Def_exp3Policy open MeasureTheory ProbabilityTheory
theorem BanditAlgorithm.adversarial_bandit_exp3ix_high_probability_regret_tuned
{k : ℕ} (hk : 1 < k) (n : ℕ) (hn : 0 < n)
(x : ℕ → Fin k → ℝ) (hx : ∀ t : ℕ, ∀ i : Fin k, x t i ∈ Set.Icc (0 : ℝ) 1)
(δ : ℝ) (hδ : δ ∈ Set.Ioo (0 : ℝ) 1)
(η : ℝ)
(hη : η = Real.sqrt ((Real.log k + Real.log ((k + 1) / δ)) / (n * k)))
(π : BanditPolicy k) (hπ : IsExp3IXPolicy η (η / 2) π) :
adversarialMeasure x π n
{h : BanditHistory k n |
2 * Real.sqrt ((2 * Real.log (k + 1) + Real.log (1 / δ)) * (n * k)) +
Real.log ((k + 1) / δ) ≤ adversarialRandomRegret n x h} ≤
ENNReal.ofReal δ := by
sorry
Read-back
What the Lean code literally says, in plain math · claude-fable-5
Setup (all notions unfolded from the underlying definitions). Fix an arm count and write . A history of length is a sequence of pairs , ; a policy gives, for each and each length- history , a probability measure on , measurably in . Given a reward table of reals, the -round adversarial law on length- histories is defined recursively: is the point mass at the empty history, and is the law of extended by the pair , where and — the reward recorded at round is deterministically .
For real parameters , the Exp3-IX estimates and probabilities are defined by the joint recursion and
where is the length- prefix of and its last entry (only the played arm's coordinate is incremented, by the -shifted importance-weighted quantity ; the softmax uses the negated scaled estimates). " is an Exp3-IX() policy" means: for every and every length- history (reachable or not), the nonnegative weights being read into .
The pathwise regret of a length- history with recorded rewards is
(the first term is a real-valued supremum over the finite arm set, a genuine maximum since under the hypotheses below; the second is the sum of the rewards recorded in ).
Assertion. With the confidence-dependent learning rate and , the theorem claims that the -probability of the set of length- histories satisfying
is at most :
Hypotheses:
- with ; with .
- (closed interval) for every round — not only — and every arm .
- (open interval at both ends).
- is equal (by hypothesis) to — note this tuning depends on , unlike the untuned sibling theorem.
- is any policy satisfying the Exp3-IX(, ) predicate.
Edge cases and caveats:
- The probability on the left is a value in ; the right-hand side is the embedding of the real into (no truncation, since ).
- The event uses a non-strict inequality: histories whose pathwise regret is at least the threshold; histories with regret exactly equal to the threshold are included.
- inside the logarithms is the real number (cast of the natural , plus one); since and , all logarithms appearing (, , , ) are positive, and (the real square root, on negatives) is applied to positive quantities.
- ranges over the open interval: and are excluded.
- Both the learning rate and the exploration shift are pinned exactly; nothing is claimed for other tunings.
- The Exp3-IX predicate constrains at every history of every length, including unreachable ones; the theorem is universally quantified over policies satisfying it and does not itself assert existence of one.
- The pathwise regret evaluates the rewards recorded in the history (which under almost surely equal ), and compares against the best single arm in hindsight.
Confirmed by the mission captain (proposal self-audit).