Finite Stochastic MDP Proofs #
This module proves the key discounted Bellman facts for TorchLean's finite stochastic MDP layer:
- monotonicity of Bellman expectation and Bellman optimality,
- Bellman expectation is a contraction in the sup metric,
- Bellman optimality is also a contraction in the sup metric,
- both operators have a unique fixed point, and value iteration converges to it geometrically.
The setting is intentionally finite and concrete: a clean, trustworthy formal base that mirrors the standard textbook RL theory for discounted MDPs, rather than maximal generality.
References:
- Puterman, Markov Decision Processes (1994), discounted case: https://onlinelibrary.wiley.com/doi/book/10.1002/9780470316887
- Bertsekas, Dynamic Programming and Optimal Control, Vol. 1 (contraction mapping argument): http://web.mit.edu/dimitrib/www/dpoc.html
- Sutton and Barto, Reinforcement Learning: An Introduction (2nd ed., 2018), Bellman expectation/optimality operators: http://incompleteideas.net/book/the-book-2nd.html
The sup metric and the fixed-point theory come from Proofs.RL.MDP, which proves them once for any
SupContraction on finite value tables. This file only proves the one-step bounds for stochastic
transitions. The open is fully qualified because MDP on its own is also the name of the
transition structure used below.
Policy evaluation reads back the selected action value.
Bellman optimality reads back the best action value.
Expected next-state value is monotone in the candidate value function.
Bellman state-action values are monotone in the candidate value function.
Bellman expectation operators are pointwise monotone.
Optimal Bellman operators are pointwise monotone.
Coordinatewise expectation difference is bounded by the sup distance.
State-action Bellman values are Lipschitz with constant γ in the sup metric.
Bellman expectation is a contraction with modulus γ in the sup metric:
valueSupDist (T^π values₁) (T^π values₂) ≤ γ * valueSupDist values₁ values₂.
Every particular action-value is bounded by Bellman optimality.
Bellman optimality dominates Bellman evaluation under any deterministic policy.
At a fixed state, Bellman optimality is a contraction with modulus γ.
Bellman optimality is a contraction with modulus γ in the sup metric:
valueSupDist (T* values₁) (T* values₂) ≤ γ * valueSupDist values₁ values₂.
Fixed Points and Value Iteration #
Valid puts the discount in [0, 1), so both operators are SupContractions. The fixed point
exists by Banach's theorem, is unique, and value iteration converges to it from any start. The
theorems below name the consequences most often cited.
Policy evaluation is a SupContraction.
Bellman optimality is a SupContraction.
The value of a policy exists and is unique: T^π has exactly one fixed point.
The optimal value function exists and is unique: T* has exactly one fixed point.
Value iteration converges to the optimal value function from any starting table.
bellmanPolicy iterates are geometric contractions in valueSupDist.
A fixed point of the Bellman policy operator is unique.
Error bound to a fixed point: iterating the Bellman policy operator reduces sup-distance
geometrically (γ^k).
bellmanOptimality iterates are geometric contractions in valueSupDist.
A fixed point of the Bellman optimality operator is unique.
Error bound to a fixed point: iterating Bellman optimality shrinks the sup distance geometrically.