Lean module · UCB
BanditRLProof.Algorithms.UCBRealHistoryIndex
This module mirrors the path-dependent score used by the pinned LML UCB route. In particular, the confidence width divides by the realized pull count. It is therefore distinct from the earlier UCB surface whose proxy is deterministic in the sample point.
Module map
Imports
BanditRLProof.Algorithms.UCB, BanditRLProof.Algorithms.ETCRealHistoryScore, BanditRLProof.MeasurableLocalQuantities, BanditRLProof.MeasurablePullCountCast
Imported by
BanditRLProof, BanditRLProof.Algorithms.MOSSHistory, BanditRLProof.Algorithms.ThompsonClippedUCBScore, BanditRLProof.Algorithms.UCBFixedCountPeeling
Declarations
Open an item to read its exact compact statement and source link. Detailed teaching notes are linked when registered.
def
BanditRLProof.UCB.realEmpiricalMean
Compiled
Real empirical mean of one arm before time `n`.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realEmpiricalMeanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realEmpiricalMean {K : Nat} (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (arm : Fin K) (n : Nat) : Real
def
BanditRLProof.UCB.realWidth
Compiled
LML-shaped path-dependent UCB width before time `n`.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realWidthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realWidth {K : Nat} (action : ActionTrace (Fin K)) (c : Real) (arm : Fin K) (n : Nat) : Real
def
BanditRLProof.UCB.realIndex
Compiled
Real empirical mean plus the realized pull-count confidence width.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realIndexReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realIndex {K : Nat} (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (c : Real) (arm : Fin K) (n : Nat) : Real
def
BanditRLProof.UCB.realHistoryWidth
Compiled
Inclusive finite-history version of the LML UCB width.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryWidthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realHistoryWidth {K : Nat} (c : Real) (n : Nat) (history : History.FinitePairHistory (Fin K) Real n) (arm : Fin K) : Real
def
BanditRLProof.UCB.realHistoryIndex
Compiled
Inclusive finite-history Real UCB score.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryIndexReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realHistoryIndex {K : Nat} (c : Real) (n : Nat) (history : History.FinitePairHistory (Fin K) Real n) (arm : Fin K) : Real
def
BanditRLProof.UCB.realIndexAction
Compiled
Least-encoded maximizer of the path-dependent Real UCB index.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realIndexActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realIndexAction {K : Nat} (hK : 0 < K) (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (c : Real) (n : Nat) : Fin K
def
BanditRLProof.UCB.realHistoryIndexAction
Compiled
Least-encoded maximizer on an inclusive finite pair history.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryIndexActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
noncomputable def realHistoryIndexAction {K : Nat} (hK : 0 < K) (c : Real) (n : Nat) (history : History.FinitePairHistory (Fin K) Real n) : Fin K
theorem
BanditRLProof.UCB.measurable_realHistoryPullCount
Compiled
A fixed-arm pull count is measurable as a function of finite pair history.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realHistoryPullCountReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realHistoryPullCount {K : Nat} (n : Nat) (arm : Fin K) : Measurable (fun history : History.FinitePairHistory (Fin K) Real n => ETC.realHistoryPullCount n history arm)
theorem
BanditRLProof.UCB.measurable_realHistorySumRewards
Compiled
A fixed-arm reward sum is measurable as a function of finite pair history.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realHistorySumRewardsReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realHistorySumRewards {K : Nat} (n : Nat) (arm : Fin K) : Measurable (fun history : History.FinitePairHistory (Fin K) Real n => ETC.realHistorySumRewards n history arm)
theorem
BanditRLProof.UCB.measurable_realHistoryEmpMean
Compiled
A fixed-arm empirical mean is measurable on finite pair histories.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realHistoryEmpMeanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realHistoryEmpMean {K : Nat} (n : Nat) (arm : Fin K) : Measurable (fun history : History.FinitePairHistory (Fin K) Real n => ETC.realHistoryEmpMean n history arm)
theorem
BanditRLProof.UCB.measurable_realHistoryWidth
Compiled
The fixed-arm UCB width is measurable on finite pair histories.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realHistoryWidthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realHistoryWidth {K : Nat} (c : Real) (n : Nat) (arm : Fin K) : Measurable (fun history : History.FinitePairHistory (Fin K) Real n => realHistoryWidth c n history arm)
theorem
BanditRLProof.UCB.measurable_realHistoryIndex
Compiled
Every fixed-arm UCB score is measurable on finite pair histories.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realHistoryIndexReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realHistoryIndex {K : Nat} (c : Real) (n : Nat) (arm : Fin K) : Measurable (fun history : History.FinitePairHistory (Fin K) Real n => realHistoryIndex c n history arm)
theorem
BanditRLProof.UCB.measurable_realHistoryIndexAction
Compiled
The least-encoded finite-history UCB selector is measurable.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realHistoryIndexActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realHistoryIndexAction {K : Nat} (hK : 0 < K) (c : Real) (n : Nat) : Measurable (fun history : History.FinitePairHistory (Fin K) Real n => realHistoryIndexAction hK c n history)
theorem
BanditRLProof.UCB.measurable_realEmpiricalMean
Compiled
The trace empirical mean is measurable under timewise measurable data.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realEmpiricalMeanReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realEmpiricalMean {Omega : Type u} {K : Nat} [MeasurableSpace Omega] [MeasurableSingletonClass (Fin K)] (action : Omega -> ActionTrace (Fin K)) (reward : Omega -> RewardTrace Real) (haction : forall t, Measurable (fun omega => action omega t)) (hreward : forall t, Measurable (fun omega => reward omega t)) (arm : Fin K) (n : Nat) : Measurable (fun omega => realEmpiricalMean (action omega) (reward omega) arm n)
theorem
BanditRLProof.UCB.measurable_realWidth
Compiled
The realized pull-count UCB width is measurable.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realWidthReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realWidth {Omega : Type u} {K : Nat} [MeasurableSpace Omega] [MeasurableSingletonClass (Fin K)] (action : Omega -> ActionTrace (Fin K)) (haction : forall t, Measurable (fun omega => action omega t)) (c : Real) (arm : Fin K) (n : Nat) : Measurable (fun omega => realWidth (action omega) c arm n)
theorem
BanditRLProof.UCB.measurable_realIndex
Compiled
Every coordinate of the realized UCB index is measurable.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realIndexReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realIndex {Omega : Type u} {K : Nat} [MeasurableSpace Omega] [MeasurableSingletonClass (Fin K)] (action : Omega -> ActionTrace (Fin K)) (reward : Omega -> RewardTrace Real) (haction : forall t, Measurable (fun omega => action omega t)) (hreward : forall t, Measurable (fun omega => reward omega t)) (c : Real) (arm : Fin K) (n : Nat) : Measurable (fun omega => realIndex (action omega) (reward omega) c arm n)
theorem
BanditRLProof.UCB.realIndexAction_spec
Compiled
The least-encoded realized UCB index action maximizes every arm score.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realIndexAction_specReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem realIndexAction_spec {K : Nat} (hK : 0 < K) (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (c : Real) (n : Nat) (arm : Fin K) : realIndex action reward c arm n <= realIndex action reward c (realIndexAction hK action reward c n) n
theorem
BanditRLProof.UCB.measurable_realIndexAction
Compiled
The least-encoded realized UCB index action is measurable.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.measurable_realIndexActionReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem measurable_realIndexAction {Omega : Type u} {K : Nat} [MeasurableSpace Omega] [MeasurableSingletonClass (Fin K)] (hK : 0 < K) (action : Omega -> ActionTrace (Fin K)) (reward : Omega -> RewardTrace Real) (haction : forall t, Measurable (fun omega => action omega t)) (hreward : forall t, Measurable (fun omega => reward omega t)) (c : Real) (n : Nat) : Measurable (fun omega => realIndexAction hK (action omega) (reward omega) c n)
theorem
BanditRLProof.UCB.realHistoryEmpiricalMean_finitePairHistoryOfTrace
Compiled
Inclusive finite-history empirical means agree with the trace prefix.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryEmpiricalMean_finitePairHistoryOfTraceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem realHistoryEmpiricalMean_finitePairHistoryOfTrace {K : Nat} (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (n : Nat) (arm : Fin K) : ETC.realHistoryEmpMean n (History.finitePairHistoryOfTrace action reward n) arm = realEmpiricalMean action reward arm (n + 1)
theorem
BanditRLProof.UCB.realHistoryWidth_finitePairHistoryOfTrace
Compiled
Inclusive finite-history widths agree with the trace width at `n + 1`.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryWidth_finitePairHistoryOfTraceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem realHistoryWidth_finitePairHistoryOfTrace {K : Nat} (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (c : Real) (n : Nat) (arm : Fin K) : realHistoryWidth c n (History.finitePairHistoryOfTrace action reward n) arm = realWidth action c arm (n + 1)
theorem
BanditRLProof.UCB.realHistoryIndex_finitePairHistoryOfTrace
Compiled
Inclusive finite-history UCB scores agree with the trace score.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryIndex_finitePairHistoryOfTraceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem realHistoryIndex_finitePairHistoryOfTrace {K : Nat} (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (c : Real) (n : Nat) (arm : Fin K) : realHistoryIndex c n (History.finitePairHistoryOfTrace action reward n) arm = realIndex action reward c arm (n + 1)
theorem
BanditRLProof.UCB.realHistoryIndexAction_finitePairHistoryOfTrace
Compiled
The least-encoded history selector is exactly the trace selector.
Used in these reading views: Bandit Book · Reinforcement Learning Book
4. UCB: confidence events to regret
Canonical node identity
declaration:BanditRLProof.UCB.realHistoryIndexAction_finitePairHistoryOfTraceReading membership is not a proof dependency. Exact assumptions remain in the Lean statement.
theorem realHistoryIndexAction_finitePairHistoryOfTrace {K : Nat} (hK : 0 < K) (action : ActionTrace (Fin K)) (reward : RewardTrace Real) (c : Real) (n : Nat) : realHistoryIndexAction hK c n (History.finitePairHistoryOfTrace action reward n) = realIndexAction hK action reward c (n + 1)