How do you prove that the Bellman optimality operator is a γ-contraction in the max-norm, and what does this tell you about value iteration converging to a unique V∗ and when to stop it?

Reinforcement learning, Dynamic programming
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can prove convergence of value iteration from first principles with the Banach fixed-point theorem.

Key idea

For (TV)(s)=max⁡a[R(s,a)+γ∑s′P(s′∣s,a)V(s′)], ∥TV−TU∥∞≤γ∥V−U∥∞, using ∣max⁡af(a)−max⁡ag(a)∣≤max⁡a∣f(a)−g(a)∣. A contraction on a complete space has a unique fixed point, and the iterates converge to it geometrically.

Steps

  1. Prove the lemma: if max⁡f is attained at a1, then max⁡f−max⁡g≤f(a1)−g(a1)≤max⁡a∣f(a)−g(a)∣. Swap f and g for the other direction.
  2. Apply it at a fixed s: ∣(TV)(s)−(TU)(s)∣≤max⁡aγ∣∑s′P(s′∣s,a)(V(s′)−U(s′))∣≤γmax⁡a∑s′P(s′∣s,a) ∥V−U∥∞=γ∥V−U∥∞. Then take the max over s.
  3. Invoke the Banach fixed-point theorem: a contraction on a complete metric space (one where every Cauchy sequence converges) has exactly one fixed point, and repeated application reaches it. Bounded functions on S with ∥V∥∞=max⁡s∣V(s)∣ form such a space, so T has a fixed point V∗ and Vk+1=TVk converges to it from any V0. Uniqueness: two fixed points would satisfy ∥V−U∥∞≤γ∥V−U∥∞, forcing V=U.
  4. Rate: ∥Vk−V∗∥∞=∥TVk−1−TV∗∥∞≤γk∥V0−V∗∥∞, so accuracy ε needs about log⁡(∥V0−V∗∥∞/ε)/log⁡(1/γ) sweeps.
  5. Stopping rule: ∥Vk+1−V∗∥∞≤γ∥Vk−V∗∥∞≤γ(∥Vk−Vk+1∥∞+∥Vk+1−V∗∥∞), which rearranges to ∥Vk+1−V∗∥∞≤γ1−γ∥Vk+1−Vk∥∞. So stop once successive iterates differ by less than ε(1−γ)/γ.
  6. Remark that the same argument, without the max lemma, shows the policy-evaluation operator Tπ is a contraction, and that γ<1 is essential.

Common mistakes

How long your answer should be

One page; 8–10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Reinforcement learning: A shaped reward is r′(s,a,s′)=r(s,a,s′)+γΦ(s′)−Φ(s) for some potential function Φ. Prove that the optimal policy does not change. If γ=0.9, Φ(s)=10 and Φ(s′)=20, what bonus does the agent get on the move s→s′, and what does the bonus sum to along a whole episode?
Next in Reinforcement learning: Show that the policy maximising Ey∼π[r(y)]−β KL(π ∥ πref) is π∗(y)=πref(y) er(y)/β/Z with Z=∑yπref(y)er(y)/β. For πref=(0.5,0.5), r=(1,0), find π∗ and the optimal objective value for β=1, and π∗ for β=0.5. What happens as β→0 and β→∞, and how does this lead to direct preference optimisation (DPO)?