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.FiniteHorizonStochasticRewardMarginal

This module identifies the first generated stochastic-reward coordinate at every positive recursive horizon. It exposes the exact action/reward joint law and reward-only policy mixture needed before adding conditional-law or concentration assumptions.

Module map

Declarations
14
Placeholders
0

Imports

BanditRLProof.RL.FiniteHorizonStochasticRewardTrajectory

Imported by

BanditRLProof, BanditRLProof.RL.FiniteHorizonStochasticRewardConditionalLaw

Declarations

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

def BanditRLProof.FiniteHorizonRL.RewardStepTrace.head Compiled

The first sampled action, reward, and next state of a positive trace.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.RewardStepTrace.head

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

def head (remaining : Nat) : RewardStepTrace Action State (remaining + 1) -> Prod Action (Prod Real State)
theorem BanditRLProof.FiniteHorizonRL.RewardStepTrace.measurable_head 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.RewardStepTrace.measurable_head

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

theorem measurable_head (remaining : Nat) : Measurable (head (Action := Action) (State := State) remaining)
def BanditRLProof.FiniteHorizonRL.RewardStepTrace.headActionReward Compiled

The first sampled action/reward pair, with next state discarded.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.RewardStepTrace.headActionReward

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

def headActionReward (remaining : Nat) : RewardStepTrace Action State (remaining + 1) -> Prod Action Real
theorem BanditRLProof.FiniteHorizonRL.RewardStepTrace.measurable_headActionReward 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.RewardStepTrace.measurable_headActionReward

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

theorem measurable_headActionReward (remaining : Nat) : Measurable (headActionReward (Action := Action) (State := State) remaining)
def BanditRLProof.FiniteHorizonRL.RewardStepTrace.headReward Compiled

The first actual sampled Real reward of a positive trace.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.RewardStepTrace.headReward

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

def headReward (remaining : Nat) : RewardStepTrace Action State (remaining + 1) -> Real
theorem BanditRLProof.FiniteHorizonRL.RewardStepTrace.measurable_headReward 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.RewardStepTrace.measurable_headReward

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

theorem measurable_headReward (remaining : Nat) : Measurable (headReward (Action := Action) (State := State) remaining)
def BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.actionRewardKernel Compiled

The action/reward marginal of one generated stochastic MDP step.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.actionRewardKernel

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

noncomputable def actionRewardKernel (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (stage : Fin mdp.horizon) : ProbabilityTheory.Kernel State (Prod Action Real)
def BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.rewardMarginalKernel Compiled

The reward-only marginal after mixing the selected laws over policy actions.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.rewardMarginalKernel

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

noncomputable def rewardMarginalKernel (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (stage : Fin mdp.horizon) : ProbabilityTheory.Kernel State Real
theorem BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_map_head Compiled

The first generated coordinate has exactly the compiled one-step law.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_map_head

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

theorem stochasticTrajectoryKernelRemaining_map_head (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (remaining : Nat) (hremaining : remaining + 1 <= mdp.horizon) (state : State) : (source.stochasticTrajectoryKernelRemaining policy (remaining + 1) hremaining state).map (RewardStepTrace.head (Action := Action) (State := State) remaining) = source.actionRewardStateKernel policy ⟨mdp.horizon - (remaining + 1), by omega⟩ state
theorem BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_map_headActionReward Compiled

Mapping a generated trace to its first action/reward pair gives the joint marginal.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_map_headActionReward

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

theorem stochasticTrajectoryKernelRemaining_map_headActionReward (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (remaining : Nat) (hremaining : remaining + 1 <= mdp.horizon) (state : State) : (source.stochasticTrajectoryKernelRemaining policy (remaining + 1) hremaining state).map (RewardStepTrace.headActionReward (Action := Action) (State := State) remaining) = source.actionRewardKernel policy ⟨mdp.horizon - (remaining + 1), by omega⟩ state
theorem BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_map_headReward Compiled

Mapping a generated trace to its first reward gives the policy reward mixture.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_map_headReward

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

theorem stochasticTrajectoryKernelRemaining_map_headReward (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (remaining : Nat) (hremaining : remaining + 1 <= mdp.horizon) (state : State) : (source.stochasticTrajectoryKernelRemaining policy (remaining + 1) hremaining state).map (RewardStepTrace.headReward (Action := Action) (State := State) remaining) = source.rewardMarginalKernel policy ⟨mdp.horizon - (remaining + 1), by omega⟩ state
theorem BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.actionRewardKernel_apply_prod Compiled

Exact action/reward rectangle law for a policy-mixed stochastic step.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.actionRewardKernel_apply_prod

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

theorem actionRewardKernel_apply_prod (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (stage : Fin mdp.horizon) (state : State) {actionSet : Set Action} {rewardSet : Set Real} (hactionSet : MeasurableSet actionSet) (hrewardSet : MeasurableSet rewardSet) : source.actionRewardKernel policy stage state (actionSet ×ˢ rewardSet) = ∫⁻ action in actionSet, source.rewardKernel.kernel (state, action) rewardSet ∂(policy.actionKernel stage state)
theorem BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.rewardMarginalKernel_apply Compiled

Reward-event probability is the selected reward law mixed over policy actions.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.rewardMarginalKernel_apply

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

theorem rewardMarginalKernel_apply (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (stage : Fin mdp.horizon) (state : State) {rewardSet : Set Real} (hrewardSet : MeasurableSet rewardSet) : source.rewardMarginalKernel policy stage state rewardSet = ∫⁻ action, source.rewardKernel.kernel (state, action) rewardSet ∂(policy.actionKernel stage state)
theorem BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_headMarginalFactorization Compiled

Route endpoint: the generated first reward event has the exact randomized policy mixture law, while the joint action/reward rectangle retains the selected-law factorization.

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

9. Finite-horizon reinforcement learning

Canonical node identitydeclaration:BanditRLProof.FiniteHorizonRL.MDP.MeanCompatibleRewardKernel.stochasticTrajectoryKernelRemaining_headMarginalFactorization

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

theorem stochasticTrajectoryKernelRemaining_headMarginalFactorization (source : MeanCompatibleRewardKernel mdp) (policy : MarkovPolicy mdp) (remaining : Nat) (hremaining : remaining + 1 <= mdp.horizon) (state : State) {actionSet : Set Action} {rewardSet : Set Real} (hactionSet : MeasurableSet actionSet) (hrewardSet : MeasurableSet rewardSet) : (source.stochasticTrajectoryKernelRemaining policy (remaining + 1) hremaining state) ((RewardStepTrace.headActionReward (Action := Action) (State := State) remaining) ⁻¹' (actionSet ×ˢ rewardSet)) = ∫⁻ action in actionSet, source.rewardKernel.kernel (state, action) rewardSet ∂(policy.actionKernel ⟨mdp.horizon - (remaining + 1), by omega⟩ state) ∧ (source.stochasticTrajectoryKernelRemaining policy (remaining + 1) hremaining state) ((RewardStepTrace.headReward (Action := Action) (State := State) remaining) ⁻¹' rewardSet) = ∫⁻ action, source.rewardKernel.kernel (state, action) rewardSet ∂(policy.actionKernel ⟨mdp.horizon - (remaining + 1), by omega⟩ state)