[guided]Now suppose we are given the product formula and must recover the Markov property. The strategy is direct: compute $\mathbb{P}(X_n = i_n \mid X_0 = i_0, \ldots, X_{n-1} = i_{n-1})$ and show it depends only on $i_{n-1}$.
**Initial distribution.** Setting $n = 0$ in the product formula gives $\mathbb{P}(X_0 = i_0) = \lambda_{i_0}$, which identifies $\lambda$ as the initial distribution.
**Markov property.** Fix $n \geq 1$ and any states $i_0, \ldots, i_n \in S$ such that the conditioning event has positive probability: $\mathbb{P}(X_0 = i_0, \ldots, X_{n-1} = i_{n-1}) > 0$. By the definition of conditional probability (the ratio definition, which applies since the conditioning event has positive probability):
\begin{align*}
\mathbb{P}(X_n = i_n \mid X_0 = i_0, \ldots, X_{n-1} = i_{n-1}) &= \frac{\mathbb{P}(X_0 = i_0, \ldots, X_n = i_n)}{\mathbb{P}(X_0 = i_0, \ldots, X_{n-1} = i_{n-1})}.
\end{align*}
Now apply the product formula to both numerator and denominator. The numerator is $\lambda_{i_0}\, p_{i_0,i_1} \cdots p_{i_{n-1},i_n}$, and the denominator is $\lambda_{i_0}\, p_{i_0,i_1} \cdots p_{i_{n-2},i_{n-1}}$. Dividing:
\begin{align*}
\frac{\lambda_{i_0}\, p_{i_0,i_1} \cdots p_{i_{n-1},i_n}}{\lambda_{i_0}\, p_{i_0,i_1} \cdots p_{i_{n-2},i_{n-1}}} = p_{i_{n-1},i_n}.
\end{align*}
The cancellation is valid because $\mathbb{P}(A_0 \cap \cdots \cap A_{n-1}) > 0$ forces every factor in the denominator to be strictly positive (if any one were zero, the product would be zero).
The result $p_{i_{n-1},i_n}$ depends only on the current state $i_{n-1}$ and the proposed next state $i_n$ — it does not depend on the earlier states $i_0, \ldots, i_{n-2}$. This is precisely the Markov property. Since the transition probability $p_{i_{n-1},i_n}$ does not depend on $n$, the chain is also homogeneous.[/guided]