Lean module · Foundations
BanditRLProof.LowerBounds.BasicIdeas
This module formalizes the semantic and deterministic interfaces developed in Lattimore--Szepesvári, *Bandit Algorithms* (2020), Part IV, Chapter 13.
Module map
Imports
No project-local imports.
Imported by
BanditRLProof, BanditRLProof.LowerBounds.GaussianHypothesisTesting, BanditRLProof.LowerBounds.GaussianMinimax
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.LowerBounds.worstCaseExpectedRegret
Compiled
Worst-case expected regret of one policy over an explicit environment class. The `ENNReal` codomain supplies the source-level supremum without a hidden boundedness hypothesis. If `environmentClass` is empty, this retains the standard complete-lattice value `bot`; meaningful bandit consumers should prove their intended class is nonempty.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.worstCaseExpectedRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def worstCaseExpectedRegret {Policy : Type u} {Environment : Type v} (regret : Policy -> Environment -> ENNReal) (environmentClass : Set Environment) (policy : Policy) : ENNReal
def
BanditRLProof.LowerBounds.minimaxExpectedRegret
Compiled
Minimax expected regret over explicit policy and environment classes. The definition mirrors `inf_pi sup_nu R_n(pi,nu)`. Nonemptiness of the classes is intentionally a consumer-side semantic contract rather than a hidden assumption of the definition.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.minimaxExpectedRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def minimaxExpectedRegret {Policy : Type u} {Environment : Type v} (regret : Policy -> Environment -> ENNReal) (policyClass : Set Policy) (environmentClass : Set Environment) : ENNReal
def
BanditRLProof.LowerBounds.IsMinimaxOptimal
Compiled
A policy is minimax optimal for an explicit policy class, environment class, and fixed-horizon regret functional when it is admissible and its worst-case regret attains the minimax value. The horizon is carried by `regret`; keeping the two classes explicit records the source warning that minimax optimality is not a property of a policy alone.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.IsMinimaxOptimalReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def IsMinimaxOptimal {Policy : Type u} {Environment : Type v} (regret : Policy -> Environment -> ENNReal) (policyClass : Set Policy) (environmentClass : Set Environment) (policy : Policy) : Prop
theorem
BanditRLProof.LowerBounds.IsMinimaxOptimal.mem_policyClass
Compiled
A minimax-optimal policy belongs to the policy class over which the infimum is taken.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.IsMinimaxOptimal.mem_policyClassReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem IsMinimaxOptimal.mem_policyClass {Policy : Type u} {Environment : Type v} {regret : Policy -> Environment -> ENNReal} {policyClass : Set Policy} {environmentClass : Set Environment} {policy : Policy} (hpolicy : IsMinimaxOptimal regret policyClass environmentClass policy) : policy ∈ policyClass
theorem
BanditRLProof.LowerBounds.IsMinimaxOptimal.eq_minimaxExpectedRegret
Compiled
A minimax-optimal policy attains the fixed-class minimax value.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret
Canonical node identity
declaration:BanditRLProof.LowerBounds.IsMinimaxOptimal.eq_minimaxExpectedRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem IsMinimaxOptimal.eq_minimaxExpectedRegret {Policy : Type u} {Environment : Type v} {regret : Policy -> Environment -> ENNReal} {policyClass : Set Policy} {environmentClass : Set Environment} {policy : Policy} (hpolicy : IsMinimaxOptimal regret policyClass environmentClass policy) : worstCaseExpectedRegret regret environmentClass policy = minimaxExpectedRegret regret policyClass environmentClass
theorem
BanditRLProof.LowerBounds.expectedRegret_le_worstCaseExpectedRegret
Compiled
One environment's regret is below the worst case over any class containing it.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.expectedRegret_le_worstCaseExpectedRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem expectedRegret_le_worstCaseExpectedRegret {Policy : Type u} {Environment : Type v} (regret : Policy -> Environment -> ENNReal) (environmentClass : Set Environment) (policy : Policy) (environment : Environment) (henvironment : environment ∈ environmentClass) : regret policy environment ≤ worstCaseExpectedRegret regret environmentClass policy
theorem
BanditRLProof.LowerBounds.minimaxExpectedRegret_le_worstCaseExpectedRegret
Compiled
The minimax value is below the worst-case value of each admissible policy.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.minimaxExpectedRegret_le_worstCaseExpectedRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem minimaxExpectedRegret_le_worstCaseExpectedRegret {Policy : Type u} {Environment : Type v} (regret : Policy -> Environment -> ENNReal) (policyClass : Set Policy) (environmentClass : Set Environment) (policy : Policy) (hpolicy : policy ∈ policyClass) : minimaxExpectedRegret regret policyClass environmentClass ≤ worstCaseExpectedRegret regret environmentClass policy
theorem
BanditRLProof.LowerBounds.le_minimaxExpectedRegret
Compiled
A uniform lower bound on every admissible policy is a minimax lower bound.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.le_minimaxExpectedRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem le_minimaxExpectedRegret {Policy : Type u} {Environment : Type v} (regret : Policy -> Environment -> ENNReal) (policyClass : Set Policy) (environmentClass : Set Environment) (lower : ENNReal) (hlower : ∀ policy : policyClass, lower ≤ worstCaseExpectedRegret regret environmentClass policy.1) : lower ≤ minimaxExpectedRegret regret policyClass environmentClass
theorem
BanditRLProof.LowerBounds.exists_alternative_le_average
Compiled
Finite averaging: among a nonempty family whose sum is at most `budget`, one coordinate is at most `budget / m`. This is a Mathlib-composed deterministic leaf. It contains no bandit law, expectation, measurability, or concentration assumption.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.exists_alternative_le_averageReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem exists_alternative_le_average {m : Nat} (hm : 0 < m) (alternativeExpectedPulls : Fin m -> Real) (budget : Real) (hbudget : ∑ i : Fin m, alternativeExpectedPulls i ≤ budget) : ∃ i : Fin m, alternativeExpectedPulls i ≤ budget / (m : Real)
theorem
BanditRLProof.LowerBounds.alternativeExpectedPullBudget_le
Compiled
Removing the distinguished arm zero from an exact nonnegative pull budget leaves at most the full budget on the `Fin.succ` alternative arms.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.alternativeExpectedPullBudget_leReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem alternativeExpectedPullBudget_le {m : Nat} (expectedPulls : Fin (m + 1) -> Real) (budget : Real) (hnonneg : ∀ arm, 0 ≤ expectedPulls arm) (htotal : ∑ arm : Fin (m + 1), expectedPulls arm = budget) : (∑ i : Fin m, expectedPulls i.succ) ≤ budget
theorem
BanditRLProof.LowerBounds.exists_leastExploredAlternative
Compiled
Chapter 13's least-explored alternative arm. There are `m + 1` arms: arm zero is the base arm and `i.succ`, for `i : Fin m`, are the alternatives. The hypotheses are precisely the expected pull-count nonnegativity and total-budget identity needed by the averaging argument.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.exists_leastExploredAlternativeReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem exists_leastExploredAlternative {m : Nat} (hm : 0 < m) (expectedPulls : Fin (m + 1) -> Real) (horizon : Nat) (hnonneg : ∀ arm, 0 ≤ expectedPulls arm) (htotal : ∑ arm : Fin (m + 1), expectedPulls arm = (horizon : Real)) : ∃ i : Fin m, expectedPulls i.succ ≤ (horizon : Real) / (m : Real)
def
BanditRLProof.LowerBounds.baseEnvironmentRegret
Compiled
The exact deterministic expression in the base-environment identity (13.2).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.baseEnvironmentRegretReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def baseEnvironmentRegret (horizon : Nat) (gap baseFirstExpectedPulls : Real) : Real
def
BanditRLProof.LowerBounds.changedEnvironmentRegretLowerBound
Compiled
The changed-environment regret lower expression on the right of (13.3).
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.changedEnvironmentRegretLowerBoundReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
def changedEnvironmentRegretLowerBound (gap changedFirstExpectedPulls : Real) : Real
theorem
BanditRLProof.LowerBounds.max_base_changed_regretLowerBound_ge_half_sub_error
Compiled
Quantitative algebraic core of the two-environment heuristic. The premise bounds the cross-environment discrepancy in the expected number of base-arm pulls. Chapter 13 writes these expectations as approximately equal; later information-theoretic chapters must supply an actual value of `error`. This theorem neither derives that premise nor proves Theorem 13.1.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.max_base_changed_regretLowerBound_ge_half_sub_errorReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem max_base_changed_regretLowerBound_ge_half_sub_error (horizon : Nat) (gap baseFirstExpectedPulls changedFirstExpectedPulls error : Real) (hgap : 0 ≤ gap) (hpullDifference : baseFirstExpectedPulls - changedFirstExpectedPulls ≤ error) : gap * ((horizon : Real) - error) / 2 ≤ max (baseEnvironmentRegret horizon gap baseFirstExpectedPulls) (changedEnvironmentRegretLowerBound gap changedFirstExpectedPulls)
theorem
BanditRLProof.LowerBounds.max_base_changed_regretLowerBound_ge_half
Compiled
Zero-error corollary of the quantitative two-environment algebra. The premise `baseFirstExpectedPulls ≤ changedFirstExpectedPulls` specializes the pull discrepancy to at most zero. The quantitative predecessor is the intended interface for later information theorems; neither declaration is the Gaussian minimax lower bound.
Used in these reading views: Bandit Book
1. Finite bandits, traces, and regret · Chapter 13: Lower Bounds: Basic Ideas
Canonical node identity
declaration:BanditRLProof.LowerBounds.max_base_changed_regretLowerBound_ge_halfReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem max_base_changed_regretLowerBound_ge_half (horizon : Nat) (gap baseFirstExpectedPulls changedFirstExpectedPulls : Real) (hgap : 0 ≤ gap) (htransport : baseFirstExpectedPulls ≤ changedFirstExpectedPulls) : gap * (horizon : Real) / 2 ≤ max (baseEnvironmentRegret horizon gap baseFirstExpectedPulls) (changedEnvironmentRegretLowerBound gap changedFirstExpectedPulls)