BanditRLlib
Lean gate passed before this site build; local proof declarations are shown as compiled.Lean-verified build · exact declarations linked.

Lean module · Finite-horizon RL

BanditRLProof.RL.FiniteHorizonAdaptiveStochasticRewardSampledEmpiricalOptimisticSelfConsistentCausalSource

The compiled self-consistent finite-window theorems vary the batch size and algorithm parameters with the outer window index. Their laws therefore are not prefixes of one fixed adaptive source. This module defines the distinct causal algorithm in which those parameters vary at each trajectory coordinate.

Module map

Declarations
15
Placeholders
0

Imports

BanditRLProof.RL.FiniteHorizonAdaptiveStochasticRewardSampledEmpiricalOptimisticSelfConsistentExplicitRate, BanditRLProof.KernelTrajectoryPrefix

Imported by

BanditRLProof, BanditRLProof.RL.FiniteHorizonAdaptiveStochasticRewardSampledEmpiricalOptimisticSelfConsistentCausalModelConfidence, BanditRLProof.RL.FiniteHorizonAdaptiveStochasticRewardSampledEmpiricalOptimisticSelfConsistentCausalReturnConcentration

Declarations

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

abbrev BanditRLProof.FiniteHorizonRL.HeterogeneousStochasticEpisodeBatchTrajectory Compiled

A trajectory whose complete stochastic batch size may vary by coordinate.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousStochasticEpisodeBatchTrajectory

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

abbrev HeterogeneousStochasticEpisodeBatchTrajectory (mdp : MDP State Action) (episodes : Nat -> Nat)
abbrev BanditRLProof.FiniteHorizonRL.HeterogeneousStochasticEpisodeBatchPrefix Compiled

A finite dependent batch history through coordinate `n`.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousStochasticEpisodeBatchPrefix

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

abbrev HeterogeneousStochasticEpisodeBatchPrefix (mdp : MDP State Action) (episodes : Nat -> Nat) (n : Nat)
structure BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource Compiled

An adaptive source of stochastic episode batches with coordinate-dependent batch sizes.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

structure HeterogeneousAdaptiveStochasticEpisodeBatchSource (mdp : MDP State Action) (initialState : Measure State) [IsProbabilityMeasure initialState] (episodes : Nat -> Nat) where
def BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure Compiled

The one-process dependent Ionescu-Tulcea trajectory law.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def trajectoryMeasure {mdp : MDP State Action} {initialState : Measure State} [IsProbabilityMeasure initialState] {episodes : Nat -> Nat} (source : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState episodes) : Measure (HeterogeneousStochasticEpisodeBatchTrajectory mdp episodes)
theorem BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_map_eval_zero Compiled

Coordinate zero has the configured initial stochastic batch law.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_map_eval_zero

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem trajectoryMeasure_map_eval_zero {mdp : MDP State Action} {initialState : Measure State} [IsProbabilityMeasure initialState] {episodes : Nat -> Nat} (source : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState episodes) : source.trajectoryMeasure.map (Function.eval 0) = source.rewardSource.iidStochasticTrajectoryFamilyMeasure source.initialPolicy initialState (episodes 0)
theorem BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_prefix_compProd Compiled

Every prefix/next marginal has the configured causal `compProd` law.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_prefix_compProd

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem trajectoryMeasure_prefix_compProd {mdp : MDP State Action} {initialState : Measure State} [IsProbabilityMeasure initialState] {episodes : Nat -> Nat} (source : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState episodes) (n : Nat) : source.trajectoryMeasure.map (Preorder.frestrictLe n) ⊗ₘ source.batchKernel n = source.trajectoryMeasure.map (fun trajectory => (Preorder.frestrictLe n trajectory, trajectory (n + 1)))
theorem BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_condDistrib_nextBatch Compiled

The regular conditional law of coordinate `n + 1` is its source kernel.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_condDistrib_nextBatch

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem trajectoryMeasure_condDistrib_nextBatch {mdp : MDP State Action} {initialState : Measure State} [IsProbabilityMeasure initialState] {episodes : Nat -> Nat} (source : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState episodes) (n : Nat) [StandardBorelSpace (StochasticEpisodeBatch mdp (episodes (n + 1)))] [Nonempty (StochasticEpisodeBatch mdp (episodes (n + 1)))] : condDistrib (fun trajectory : HeterogeneousStochasticEpisodeBatchTrajectory mdp episodes => trajectory (n + 1)) (Preorder.frestrictLe n) source.trajectoryMeasure =ᵐ[ source.trajectoryMeasure.map (Preorder.frestrictLe n)] source.batchKernel n
theorem BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_map_prefix_projective Compiled

Finite marginals of the causal law form a projective family.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.HeterogeneousAdaptiveStochasticEpisodeBatchSource.trajectoryMeasure_map_prefix_projective

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem trajectoryMeasure_map_prefix_projective {mdp : MDP State Action} {initialState : Measure State} [IsProbabilityMeasure initialState] {episodes : Nat -> Nat} (source : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState episodes) {m n : Nat} (hmn : m <= n) : (source.trajectoryMeasure.map (Preorder.frestrictLe n)).map (Preorder.frestrictLe₂ (π := fun k : Nat => StochasticEpisodeBatch mdp (episodes k)) hmn) = source.trajectoryMeasure.map (Preorder.frestrictLe m)
def BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.heterogeneousLatestBatch Compiled

The latest batch in a dependent finite history.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.heterogeneousLatestBatch

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

def heterogeneousLatestBatch {mdp : MDP State Action} {episodes : Nat -> Nat} {n : Nat} (history : HeterogeneousStochasticEpisodeBatchPrefix mdp episodes n) : StochasticEpisodeBatch mdp (episodes n)
theorem BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.measurable_heterogeneousLatestBatch Compiled

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

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.measurable_heterogeneousLatestBatch

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem measurable_heterogeneousLatestBatch {mdp : MDP State Action} {episodes : Nat -> Nat} {n : Nat} : Measurable (heterogeneousLatestBatch : HeterogeneousStochasticEpisodeBatchPrefix mdp episodes n -> StochasticEpisodeBatch mdp (episodes n))
def BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.heterogeneousSuccessorTable Compiled

The actual-sampled optimistic table selected from dependent history.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.heterogeneousSuccessorTable

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def heterogeneousSuccessorTable {mdp : MDP State Action} {episodes : Nat -> Nat} (defaultState : State) (rewardBudget transitionBudget : Nat -> Real) (n : Nat) (history : HeterogeneousStochasticEpisodeBatchPrefix mdp episodes n) : DeterministicMarkovPolicyTable mdp
theorem BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.measurable_heterogeneousSuccessorTable Compiled

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

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.measurable_heterogeneousSuccessorTable

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem measurable_heterogeneousSuccessorTable {mdp : MDP State Action} {episodes : Nat -> Nat} (defaultState : State) (rewardBudget transitionBudget : Nat -> Real) (n : Nat) : Measurable (heterogeneousSuccessorTable (mdp := mdp) (episodes := episodes) defaultState rewardBudget transitionBudget n)
def BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.heterogeneousExploratorySource Compiled

Actual-sampled exploratory source with coordinate-dependent batch sizes, budgets, and exploration rates.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.heterogeneousExploratorySource

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def heterogeneousExploratorySource (mdp : MDP State Action) (initialState : Measure State) [IsProbabilityMeasure initialState] (episodes : Nat -> Nat) (rewardSource : mdp.MeanCompatibleRewardKernel) (initialTable : DeterministicMarkovPolicyTable mdp) (defaultState : State) (rewardBudget transitionBudget : Nat -> Real) (explorationRate : Nat -> NNReal) (hexplorationRate : forall n, explorationRate n <= 1) : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState episodes where
def BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.selfConsistentScheduledCausalSource Compiled

The genuinely causal round-varying self-consistent scheduled source.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.selfConsistentScheduledCausalSource

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

noncomputable def selfConsistentScheduledCausalSource (mdp : MDP State Action) (initialState : Measure State) [IsProbabilityMeasure initialState] (rewardSource : mdp.MeanCompatibleRewardKernel) (initialTable : DeterministicMarkovPolicyTable mdp) (defaultState : State) (varianceProxy : NNReal) (baseVisitFloor : Real) : HeterogeneousAdaptiveStochasticEpisodeBatchSource mdp initialState (fun n => AdaptiveStochasticEpisodeBatchSource.selfConsistentScheduledEpisodes mdp varianceProxy baseVisitFloor n)
theorem BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.selfConsistentScheduledCausalSource_trajectoryMeasure_exactLaws_and_projective Compiled

Exact conditional and projective laws of the self-consistent causal source.

Used in these reading views: Bandit Book · Reinforcement Learning Book

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.AdaptiveStochasticSampledEmpiricalOptimisticSource.selfConsistentScheduledCausalSource_trajectoryMeasure_exactLaws_and_projective

Reading membership is not a proof dependency. Exact assumptions remain in the Lean statement.

theorem selfConsistentScheduledCausalSource_trajectoryMeasure_exactLaws_and_projective (mdp : MDP State Action) (initialState : Measure State) [IsProbabilityMeasure initialState] [StandardBorelSpace State] [StandardBorelSpace Action] (rewardSource : mdp.MeanCompatibleRewardKernel) (initialTable : DeterministicMarkovPolicyTable mdp) (defaultState : State) (varianceProxy : NNReal) (baseVisitFloor : Real) : let episodes := fun n => AdaptiveStochasticEpisodeBatchSource.selfConsistentScheduledEpisodes mdp varianceProxy baseVisitFloor n let source := selfConsistentScheduledCausalSource mdp initialState rewardSource initialTable defaultState varianceProxy baseVisitFloor source.trajectoryMeasure.map (Function.eval 0) = rewardSource.iidStochasticTrajectoryFamilyMeasure (initialTable.exploratoryPolicy (AdaptiveEpisodeBatchSource.decayingExplorationRate 0) (AdaptiveEpisodeBatchSource.decayingExplorationRate_le_one 0)) initialState (episodes 0) /\ (forall n history, source.batchKernel n history = rewardSource.iidStochasticTrajectoryFamilyMeasure ((heterogeneousSuccessorTable defaultState (fun k => AdaptiveStochasticEpisodeBatchSource.selfConsistentScheduledRewardBudget mdp varianceProxy baseVisitFloor k) (fun k => AdaptiveStochasticEpisodeBatchSource.selfConsistentScheduledTransitionBudget mdp varianceProxy baseVisitFloor k) n history).exploratoryPolicy (AdaptiveEpisodeBatchSource.decayingExplorationRate (n + 1)) (AdaptiveEpisodeBatchSource.decayingExplorationRate_le_one (n + 1))) initialState (episodes (n + 1))) /\ (forall n, condDistrib (fun trajectory : HeterogeneousStochasticEpisodeBatchTrajectory mdp episodes => trajectory (n + 1)) (Preorder.frestrictLe n) source.trajectoryMeasure =ᵐ[ source.trajectoryMeasure.map (Preorder.frestrictLe n)] source.batchKernel n) /\ (forall n, source.trajectoryMeasure.map (Preorder.frestrictLe n) ⊗ₘ source.batchKernel n = source.trajectoryMeasure.map (fun trajectory => (Preorder.frestrictLe n trajectory, trajectory (n + 1)))) /\ (forall m n (hmn : m <= n), (source.trajectoryMeasure.map (Preorder.frestrictLe n)).map (Preorder.frestrictLe₂ (π := fun k : Nat => StochasticEpisodeBatch mdp (episodes k)) hmn) = source.trajectoryMeasure.map (Preorder.frestrictLe m))