Theorem 9.2.3 — finite termination of multichain policy iteration
DisprovedPutermanMDP.Multichain.policy_iteration_terminatesLet and every be finite. Run the multichain policy iteration algorithm of §9.2.1 from an arbitrary admissible rule. At every iteration solve the evaluation equations and use the canonical stationary bias . The assertion is that there is a finite stopping index such that
Average optimality compares the stationary policy's lower average reward with the upper average reward of every history-dependent randomized policy. The conclusion concerns both the returned policy and the evaluated gain/bias pair.
Formalization Note This faithful goal uses phase-two maximization over all actions exactly as printed in (9.2.4) and (9.2.8). It is expected to be disproved: finding F3 supplies a two-state cycle despite canonical evaluation. The separately corrected item restricts phase two to gain-preserving actions. Runs here start at zero and are extended constantly after stopping; no termination assumption appears in the run predicate.
import Mathlib import Definitions.Def_PutermanMDP_Multichain_Iteration open MarkovDecisionProcesses Filter open scoped Topology
namespace PutermanMDP.Multichain
variable {S A : Type*} [Fintype S] [Fintype A] [DecidableEq A] [Nonempty S]
/-- Theorem 9.2.3, p. 457 (PDF 473), for the algorithm as printed in §9.2.1.
Finding F3 records a cycle; the printed goal is preserved, not silently corrected. -/
theorem policy_iteration_terminates (M : StationaryMDP S A)
(d : ℕ → Rule M) (g h : ℕ → S → ℝ) (hrun : PrintedRun M d g h) :
∃ N : ℕ, d (N + 1) = d N ∧ IsAverageOptimal (policy M (d N)) ∧
OptimalityEquations M (g N) (h N) := by sorry
end PutermanMDP.Multichain
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
The statement concerns two types: a state type and an action type . Both are finite. is assumed nonempty. has decidable equality, but it is not assumed to be nonempty. The data are:
- , a stationary Markov decision process on states and actions (an object of type
StationaryMDP S A, from the namespaceMarkovDecisionProcesses). - A sequence , where each is a "rule" for (an element of the type
Rule M). - Two sequences of real-valued functions on the states, and , with .
- A hypothesis relating all of the above.
The names Rule, PrintedRun, policy, IsAverageOptimal and OptimalityEquations are defined in the imported module Definitions.Def_PutermanMDP_Multichain_Iteration. That module's code is not shown here, so this read-back cannot unfold them. Everything this statement asserts depends on what those definitions actually say. That includes which runs allows, and whether any run satisfies it at all.
Under these assumptions, the statement asserts that there is some natural number for which all three of the following hold together:
In words: two consecutive rules in the sequence are equal, as elements of Rule M. The policy that policy builds from and the rule satisfies the predicate IsAverageOptimal. And the pair satisfies the predicate OptimalityEquations for .
The statement says nothing more than that:
- is only claimed to exist. It has no stated bound, and it is not claimed to be the first index at which .
- Nothing is claimed about the rules at indices after .
- Nothing is claimed about whether and relate to in any way beyond what the three conjuncts themselves contain.
The doc comment cites "Theorem 9.2.3" and a "Finding F3". It is a comment, not part of the assertion, and has no effect on what the statement asserts. The opened namespaces Filter and Topology do not appear in the visible statement.
Degenerate cases.
- has one element. Then and are each a single real number, and the conclusion reads as above with that simplification.
- is empty. This is allowed, because only is assumed nonempty. If the hidden definition of
Rule Massigns an action to each state, thenRule Mhas no elements when is empty. In that case no sequence exists and the theorem holds vacuously. Whether that happens cannot be determined from the code shown. - is unsatisfiable. If no sequences satisfy it, for some or all , the theorem is vacuously true for those . If instead it constrains little, the conclusion is a strong claim about arbitrary sequences.
- Default values from total functions. No division, natural-number subtraction, integral, supremum or extended-real arithmetic appears in the visible statement. Any default values of that kind can only enter through the hidden definitions.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.