BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.

Lean module · EXP3

BanditRLProof.Exp3RandomSquareBernsteinRealizedTuning

# Learning-rate tuning for random-square realized EXP3 regret The random estimator-square route replaces the pathwise `K * T / gamma` budget by `K * T / deltaSquare`. At the public four-event allocation, `deltaSquare = delta / 4`. This module chooses `eta = sqrt (log K * (delta / 4) / (T * K))` and balances the entropy and Markov-square terms. The remaining exploration, importance-weighted Bernstein, and realized-deviation terms are kept explicit; they are not relabeled as an ideal EXP3.P or Freedman rate.

Module map

Declarations
7
Placeholders
0

Imports

BanditRLProof.Exp3RandomSquareBernsteinRealizedHighProbabilityRegret, BanditRLProof.Exp3BernsteinTuning

Imported by

BanditRLProof, BanditRLProof.Exp3RandomSquareBernsteinRealizedExplicitTuning

Declarations

Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.

def BanditRLProof.Exp3.randomSquareHighProbabilityLearningRate Compiled

Learning rate balancing entropy against the Markov estimator-square term when the square event receives `delta / 4`.

noncomputable def randomSquareHighProbabilityLearningRate (K T delta : Real) : Real
theorem BanditRLProof.Exp3.randomSquareHighProbabilityLearningRate_pos Compiled

No declaration docstring is present; use the chapter context and exact statement below.

theorem randomSquareHighProbabilityLearningRate_pos (K T delta : Real) (hK_one : 1 < K) (hT : 0 < T) (hdelta : 0 < delta) : 0 < randomSquareHighProbabilityLearningRate K T delta
theorem BanditRLProof.Exp3.randomSquareHighProbabilityLearningRate_sq_mul Compiled

No declaration docstring is present; use the chapter context and exact statement below.

theorem randomSquareHighProbabilityLearningRate_sq_mul (K T delta : Real) (hK_one : 1 < K) (hT : 0 < T) (hdelta : 0 < delta) : randomSquareHighProbabilityLearningRate K T delta ^ 2 * (T * K) = Real.log K * (delta / 4)
theorem BanditRLProof.Exp3.randomSquareHighProbabilityHedgeBudget_le_three_mul_sqrt Compiled

With `gamma <= 1/2`, the entropy and stability-amplified random-square terms cost at most three copies of their balanced square-root scale.

theorem randomSquareHighProbabilityHedgeBudget_le_three_mul_sqrt (K T gamma delta : Real) (hK_one : 1 < K) (hT : 0 < T) (hgamma_pos : 0 < gamma) (hgamma_le_half : gamma <= 1 / 2) (hdelta : 0 < delta) : Real.log K / randomSquareHighProbabilityLearningRate K T delta + (randomSquareHighProbabilityLearningRate K T delta * (1 / (1 - gamma))) * (K * T / (delta / 4)) <= 3 * Real.sqrt (4 * K * T * Real.log K / delta)
def BanditRLProof.Exp3.randomSquareBernsteinRealizedTunedThreshold Compiled

Explicit threshold after tuning only the learning-rate-dependent terms. The exploration and three confidence contributions remain visible.

noncomputable def randomSquareBernsteinRealizedTunedThreshold {Action : Type v} (arms : Finset Action) (gamma : Real) (horizon : Nat) (delta : Real) : Real
theorem BanditRLProof.Exp3.sampledPredictableRandomSquareBernsteinRealizedHighProbabilityRegretBudget_le_tunedThreshold Compiled

The complete four-event realized budget is bounded by the explicit learning-rate-tuned threshold.

theorem sampledPredictableRandomSquareBernsteinRealizedHighProbabilityRegretBudget_le_tunedThreshold {Action : Type v} [DecidableEq Action] (arms : Finset Action) (hcard_two : 2 <= arms.card) (horizon : Nat) (hhorizon : 0 < horizon) (gamma delta : Real) (hgamma_pos : 0 < gamma) (hgamma_le_half : gamma <= 1 / 2) (hdelta : 0 < delta) : sampledPredictableRandomSquareBernsteinRealizedHighProbabilityRegretBudget arms (randomSquareHighProbabilityLearningRate (arms.card : Real) (horizon : Real) delta) gamma horizon (delta / 4) (delta / 4) (delta / 4) <= randomSquareBernsteinRealizedTunedThreshold arms gamma horizon delta
theorem BanditRLProof.Exp3.sampledPredictable_tunedRandomSquareBernsteinRealizedRegret_tail Compiled

Generated realized-regret tail with the random-square learning rate. This optimizes the entropy/Markov-square pair while leaving the exploration-floor and realized-deviation confidence terms explicit.

theorem sampledPredictable_tunedRandomSquareBernsteinRealizedRegret_tail {Env : Type u} {Action : Type v} [MeasurableSpace Env] [StandardBorelSpace Env] [Nonempty Env] [MeasurableSpace Action] [MeasurableSingletonClass Action] [StandardBorelSpace Action] [Nonempty Action] [DecidableEq Action] (prior : Measure Env) [IsProbabilityMeasure prior] (arms : Finset Action) (harms : arms.Nonempty) (hcard_two : 2 <= arms.card) (gamma : Real) (hgamma_pos : 0 < gamma) (hgamma_le_half : gamma <= 1 / 2) (loss : PredictableLossVector Env Action) (comparator : Action) (hcomparator : comparator ∈ arms) (horizon : Nat) (hhorizon : 0 < horizon) (delta : Real) (hdelta : 0 < delta) : let eta := randomSquareHighProbabilityLearningRate (arms.card : Real) (horizon : Real) delta let mu := prior ⊗ₘ sampledImportanceWeightedTrajectoryKernel arms harms eta gamma hgamma_pos.le (by linarith : gamma <= 1) loss.environment mu {sample | randomSquareBernsteinRealizedTunedThreshold arms gamma horizon delta <= (Finset.range horizon).sum (fun t => sampledTrajectoryRealizedLossAt t sample) - (Finset.range horizon).sum (fun t => predictableLossAt loss t sample comparator)} <= ENNReal.ofReal delta