Example (unique solution to Bellman equation)

In machine learning, a Markov decision process is a model for decision making.

At each time step, the process is in state $s\in S$ ($S$ is a discrete finite set). It can choose an action $a\in A$ ($A$ is also discrete finite). This will result in a reward $R(a,s)$, and the action will move you from $s$ to $s'$ with probability $P(s,s',a)$ (satisfying $\sum_{s'\in S} P(s,s',a) = 1$). The future rewards come with a discount factor of $\gamma\in (0,1)$.

The optimal value curve is the solution to the Bellman equation $$ \begin{align*} V_\star(s) = \max_{a\in A}\left(R(s,a) + \gamma\sum_{s'\in S} P(s,s',a) V_\star(s')\right). \end{align*} $$

We will prove the Bellman equation has a unique solution $V_\star : S\to \R$ using the contraction mapping theorem.