How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Model-based planning, Dyna, and model exploitation
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Binary Operations, Monoids, Groups and Subgroups
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Conditional Distributions and Regular Conditional Probability
- Conditional Expectation
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Discrete Time Martingales
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Finite Counting, Factorials and Binomial Coefficients
- Finite MDPs and Bellman operators
- Foundations of the Real Numbers for Analysis
- General-state MCMC ergodicity and mixing
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Infinite Product Measures and Kolmogorov Extension
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Markov Kernels and Markov Chains
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Probability Spaces Random Variables and Expectation
- Product Measures and the Fubini Tonelli Theorems
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Sequences and Series of Functions; Uniform Convergence
- Series: Convergence and the Nonnegative Tests
- Sigma Algebras and Borel Sets
- Signed and Complex Measures Hahn and Jordan
- Simple Field Extensions and the Construction of the Complex Numbers
- Stationary Markov Chains and Ergodic Limits
- Suprema and Infima
- Tabular prediction and control by interaction
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- The Lᵖ Spaces Holder Minkowski and Riesz Fischer
- The Radon Nikodym Theorem and Lebesgue Decomposition
- The Riemann Integral: Definition and Integrability
- The ZFC Axioms and the Basic Set Constructions
- Topological Spaces and Continuity
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
Finite learned transition and reward models
Definition
Let the true environment be a finite Markov decision process with nonempty finite state set , nonempty finite action sets , a finite reward alphabet contained in , and joint next-state/reward probabilities . Write , and let and be the expected reward and next-state probabilities obtained by summing this joint law. A finite learned model on the same state and action sets consists of estimates and probability distributions on for every . The estimated transition table is a probability kernel on the finite discrete spaces.
For each , define the reward error and transition error
For any subset , define and when , and set both quantities to when . These are uniform expected-reward and total-variation errors on ; the learned model definition makes no accuracy assertion.
Definition references
Facts & Assumptions
Given: A finite MDP with nonempty finite and , reward alphabet contained in , joint masses , and proposed estimates and satisfying the Definition.
Finite Markov decision process with joint reward-transition law: each joint row is a probability mass function; and .
Measure kernel and probability kernel: a probability kernel has probability-measure sections and measurable event sections; on finite discrete input and output spaces every event section is measurable.
Total variation distance for probability laws and Half- formula for total variation on a countable space: total variation is the event-supremum distance and, on finite discrete , equals .
Every nonempty finite set of reals has a maximum and a minimum: every nonempty finite set of real numbers has an attained maximum.
The triangle inequality: for real , .
Basic properties of the absolute value: and for every real .
Verification
Given: The finite MDP, the estimated transition and reward table, and the definitions and finite-set hypotheses in the Definition.
For each pair , and by [F1]. Thus every true transition row is a probability law. The proposed rows have this property by the Given condition. Since the spaces are finite and discrete, [F2] makes both transition tables probability kernels. The reward alphabet lies in , so its probability-weighted finite sum also lies in , as does by assumption.
For each pair, by [F5] and [F6]. Summing over gives at most , so ; also because both rewards lie in . By [F3], the displayed half-sum is exactly the library total-variation convention on . The set and each are finite; therefore [F4] gives attained maxima when is nonempty, and the empty-set convention defines the remaining case. All model errors in the Definition are consequently well-defined.
Finite stochastic shortest-path problems
Definition
Let a finite MDP have nonempty finite state set and finite nonempty action sets . A finite stochastic shortest-path problem consists of that MDP, a nonempty goal set , and a constant with the following properties. Each goal has exactly one available action , and its joint reward-transition law satisfies (so ). For every and every , the expected reward satisfies . Define the one-step expected cost by off and at goals. A stationary Markov policy is proper if, from every initial state, the finite-step probabilities of not having reached tend to : with and
properness means for every . The problem need not have a proper policy unless that is separately assumed.
Definition references
Facts & Assumptions
Given: A finite MDP, nonempty goal set , absorbing zero-reward dummy actions at goals, and the strict negative expected-reward bound on every nonglobal state-action pair in the Definition.
Finite Markov decision process with joint reward-transition law: each is finite and nonempty; is a probability distribution obtained by marginalizing the joint reward-transition law, and is its expected one-step reward.
Verification
Given: The finite MDP data and a stationary Markov policy .
The expected costs are finite because the reward alphabet is finite and the joint row is a probability mass by [F1]. The stated reward bound gives off , and the dummy action at each goal has cost .
By [F1], every row is a probability distribution, and every policy row is a probability distribution. Thus the recursion defining is a finite sum of nonnegative terms. If , then off , while on . Since , induction shows every is well-defined and lies in .
Finite-horizon return under a Markov policy
Definition
Let be a nonempty finite state set, let be a nonempty finite action set for each , let , and let be a probability distribution on for each admissible pair. A finite-horizon Markov policy of horizon with is a family of probability distributions on for . Given an initial state distribution , define and, for ,
The finite-horizon expected return is
The same definition applies to a learned model by replacing with its estimated reward and transition tables. It is the expected sum of the one-step rewards; no discount factor or terminal continuation value is included.
Definition references
Facts & Assumptions
Given: A finite reward/transition model, an initial probability distribution , a positive integer horizon , and the finite family of policy distributions in the Definition.
Finite learned transition and reward models: and every are finite and nonempty, , and each row is a probability distribution.
Verification
Given: The model, initial distribution, horizon, and Markov policy in the Definition.
The initial vector is a probability distribution. If is a probability distribution, every term in the recursion is nonnegative and , because each policy and transition row has total mass one by [F1]. Induction proves that every is a probability distribution.
Each summand in is nonnegative, and at each time its sum is at most because rewards lie in by [F1]. The finite time sums therefore define a real number in .
Trial-based real-time dynamic programming
Definition
Input: a finite stochastic shortest-path model, a finite value table with on goals, a nonempty finite start set , a positive integer trial cap , and an infinite supplied start sequence in which each member of occurs infinitely often. For each trial, set the current state to the next supplied start. For at most decision steps, or until a goal is reached, do the following: at the current nonglobal state , compute
choose uniformly from the nonempty set of actions attaining using a fresh tie draw, execute the chosen action in the given MDP and observe the next state, then replace by using the value table from before that backup. Keep every other value unchanged. At a goal keep value . After a trial ends, reset the state to the next supplied start without resetting the value table. The procedure returns the successive value tables and selected actions; it asserts no convergence guarantee by itself.
One-step total-variation propagation under a fixed policy
Statement
Let be a finite nonempty set, let be finite and nonempty for each , and let and be probability distributions on for each admissible pair. For distributions on , write . Let be a probability distribution on for each state. Define the induced transition rows
If and are probability distributions on and, for some ,
whenever and , then
Here and are the next-state distributions obtained by applying the indicated transition rows.
Statement references
Facts & Assumptions
Given: The finite state/action sets, true and estimated transition rows, policy rows, state distributions, and row-error bound in the Statement.
Finite learned transition and reward models: each true and learned transition row is a probability distribution on the same finite state set; its total-variation error is the half- distance.
Measure kernel and probability kernel: a probability kernel has probability-measure sections and measurable event sections; on finite discrete spaces each row table is a probability kernel.
Total variation distance for probability laws and Half- formula for total variation on a countable space: on finite discrete , and this equals the supremum of event-probability differences.
Total variation duality, kernel contraction, and coupling bound: applying one probability kernel to two input probability laws cannot increase their total-variation distance.
Basic properties of the absolute value: absolute value is nonnegative and for real .
Triangle inequality for finite sums: for every finite initial segment, the absolute value of a sum of reals is at most the sum of their absolute values.
Laws of finite sums and finite products: finite sums obey additivity and recursion, so finite repeated sums may be expanded using the field laws.
The sum over a finite index set, and its product form: sums over a finite set are independent of enumeration and invariant under bijective reindexing.
Proof
For each state , the policy mixture is a probability distribution because it is a convex combination of the probability rows ; the same holds for . The state set is finite discrete, so both row tables are probability kernels by [F2]. Applying [F4] to the common kernel gives .
Enumerate the finite set of admissible state-action pairs. For each , the finite-sum triangle inequality [F6] and absolute-value product formula [F5] give . The finite sums over and can be interchanged: enumerate both sets, expand by additivity [F7], and use the coordinate-swap bijection with enumeration invariance [F8]. This gives . The last inequality uses the row bound on every positive-weight pair; zero-weight terms vanish, and the weights sum to because both rows are probability distributions.
For every , write . The scalar triangle inequality [F5], summed over finite using [F6], gives . Steps 1.1 and 1.2 bound the right side by the claim.
Finite positive-cost stochastic shortest-path value
Statement
Assume the Axiom of Choice and let a finite positive-cost stochastic shortest-path problem have at least one proper stationary policy. For any policy whose action distribution may depend on the entire finite history, use its trajectory law from the initial state and define
where off the absorbing goal set and at goals. The optimal total cost is finite for every state. It is the unique finite nonnegative function satisfying
The minimum is attained by a deterministic stationary policy that is proper and has total cost from every initial state.
Statement references
Facts & Assumptions
Given: AC, a finite SSP with nonempty finite state and action sets, absorbing zero-cost goals, nonglobal costs , and a proper stationary policy.
The Axiom of Choice: every family of nonempty sets has a choice function. It is used only through the history-dependent path-law construction in [F2].
Finite stochastic shortest-path problems: is a probability row; every nonglobal expected cost is at least ; properness means the finite-step survival probabilities tend to zero from each state.
Ionescu-Tulcea construction of a Markov chain: under AC, an initial law and a sequence of probability kernels depending on finite histories determine a trajectory law with the prescribed finite-prefix probabilities.
Every nonempty finite set of reals has a maximum and a minimum: every nonempty finite list of real numbers has an attained minimum as well as a maximum.
A nondecreasing sequence bounded above converges to the supremum of its range, and a nonincreasing sequence bounded below to the infimum: a nondecreasing real sequence bounded above converges to a finite real limit.
Proof
Given: The SSP, a proper stationary policy, and AC as stated.
If , all costs and values are zero, and the theorem follows. Otherwise let . For any history-dependent policy, finite state/action histories form finite discrete spaces at each time, so the conditional action and transition rules are probability kernels. By [A1] and [F2], the corresponding trajectory law exists with the specified finite-prefix probabilities; this justifies the expectations in the Statement.
Define the Bellman map by on goals and off goals. Set and . The minimum is attained by [F3]. These are finite-horizon optimal costs: for the continuation cost is zero; if the claim holds at horizon , conditioning on the first action and next state gives the displayed recursion at horizon . Any randomized first action gives a convex combination of action costs, which is at least their minimum; a minimizing pure action attains that minimum, so the finite-horizon optimum is the displayed value.
The recursion is monotone in its value argument because all transition weights are nonnegative, and ; induction gives . For any stationary policy , let and define the substochastic matrix on by . The properness recursion gives and , so ; since , these survival probabilities are nonincreasing. For the proper stationary policy in the Given assumptions, choose with for each state. Since is finite, and satisfy . Also for , and . Thus induction gives for every state and . The finite maximum exists by [F3]. During block , each stage cost has expectation at most , because survival decreases in time. Hence . Since is the -step optimum, ; thus each increasing sequence is bounded above, and [F4] gives a finite limit .
Passing to the limit in the finite sums and finite minima in step 1.2 is valid coordinatewise; the minimum of finitely many convergent real sequences converges to the minimum of their limits. Hence on and off . Therefore is a finite nonnegative Bellman fixed point.
Enumerate the finite state set as . For each nonglobal state, [F3] gives a nonempty finite set of actions minimizing the fixed-point expression in step 3.1. Inductively along this finite list, select one minimizer at each state; at each successor stage one nonempty finite set is added to the already chosen finite tuple, so this finite construction uses no arbitrary-index choice. The selected actions define a deterministic stationary policy . For the identity is . If it holds at , condition on the next state and apply the Bellman equality at the current state to obtain it at ; hence induction gives for every . By step 2.1 and [F4], the survival probabilities under have a limit; if that limit were , the partial cost expectation would be at least , contradicting the finite left side and nonnegative terminal term. Thus is proper. Since is bounded on finite and on , properness gives ; letting in the identity yields .
Fix an initial state and any policy . The fixed-point equation gives for each nonglobal and every action , with equality at goals. Averaging over each history-dependent action distribution gives the one-step inequality; conditioning successively on the finite-prefix laws and inducting on gives . Under , the events decrease because goals are absorbing. If their probabilities tend to zero, boundedness of the terminal term makes . If they do not tend to zero, their limit is positive, and the positive cost lower bound makes ; again . Thus is a lower bound for every policy cost, while step 4.1 exhibits a policy attaining it. Consequently .
Let be any finite nonnegative solution of the same Bellman equations. Since , the monotonicity of from step 2.1 gives for every , hence . The Bellman minimum for is no larger than any action value, so for every nonglobal and action . Average this inequality along the proper policy from step 4.1 and iterate over steps to obtain . The terminal term tends to zero because is bounded and is proper, so . Therefore , proving uniqueness.
Ensemble disagreement is not calibrated uncertainty by definition
Remark
For an ensemble of learned transition rows , define the pairwise disagreement score by
This statistic measures dispersion among the fitted models. By itself it does not specify a probability law for the true model error , nor does it assert a calibrated coverage frequency for any error threshold. Calibration requires additional assumptions and a separately proved or empirically checked calibration condition.
Tabular Dyna-Q with a deterministic last-observation model
Definition
Input: a finite continuing discounted MDP with , deterministic one-step rewards in and deterministic next states at every state–action pair, an initial state , a behavior rule that selects an admissible action at each visited state, an integer of planning updates per real interaction, a step-size schedule assigning to each Q-table update, and a finite initial action-value table , where . An episodic task may be represented by an ordinary transition to its reset state. Initialize an empty model table and, for each state , an empty set .
For each real interaction, let be the current state, choose using the behavior rule, execute it in the environment, and observe reward and next state . Apply one tabular Q-learning update to :
Record the deterministic response and insert into . Then perform planning updates: choose uniformly a state from , choose uniformly an action from its , retrieve the saved response , and apply the same Q-learning update with and the next scheduled step size. The model is queried only at previously experienced pairs. In the stated deterministic environment the stored response is exact after that pair is first observed. After the planning updates, set the current state to and output the updated Q table together with the real action for this interaction. Repeat for successive real interactions indefinitely, unless the caller stops the run. The procedure makes no claim that the model is accurate at unseen pairs or in a stochastic environment, and it asserts no convergence guarantee.
Definition references
Finite-horizon model-predictive control
Definition
Input: a finite learned MDP model, a current state , a horizon with , and, for each state , an ordered finite list containing every action in exactly once; this ordering determines deterministic tie-breaking. Initialize for every state. For , compute for every admissible pair
At the current state , return the first action in its supplied listing that attains . The controller executes only this first action in the true environment, observes the next state, and may invoke the procedure again with the new state and a newly supplied learned model. The procedure specifies no model-update rule and makes no guarantee about the true return of the model-selected action.
Definition references
Finite-horizon simulation bound for one fixed policy
Statement
Let and be finite models on a common nonempty finite state set and common nonempty finite action sets, with and probability transition rows. Fix a horizon , a common initial state law , and one possibly time-dependent randomized Markov policy . Let and be the state occupancies under and , respectively, starting from . Define
Suppose and for every , where . Then
The guarantee concerns this fixed policy and the stated reachable pairs; it does not bound the policy selected by optimizing the learned model.
Statement references
Facts & Assumptions
Given: The finite models, common law, horizon, fixed policy, reachable-pair error bounds, and notation in the Statement.
Finite learned transition and reward models: every transition row is a probability distribution on the common finite state set, and both reward means lie in .
Finite-horizon return under a Markov policy: each model's state occupancy is propagated by the policy-weighted transition row, and its return is the sum of the policy-weighted expected rewards for times through .
One-step total-variation propagation under a fixed policy: if transition-row total-variation error is at most on all pairs with positive learned state-action occupancy under a policy row, then the next-state total-variation distance is at most the current distance plus .
Half- formula for total variation on a countable space: on the finite state set, total variation is one half of the sum of absolute mass differences.
The triangle inequality: for real , .
Triangle inequality for finite sums: for every finite initial segment, the absolute value of a sum of reals is at most the sum of their absolute values.
Proof
Given: The two finite models, common initial law, fixed policy, and error bounds from the Statement.
At time , . If , every pair with belongs to , so its transition rows satisfy [F3]. Applying [F3] to the policy at time gives . Induction yields for every .
For a fixed time , set and . These functions lie in by [F1]. For , one has ; by [F4] the total positive mass and total negative mass of both equal . Since , it follows that . Also, every pair with lies in , so . Decomposing the difference of the two time- expected rewards and applying [F5] gives an absolute difference at most by step 1.1.
By [F2], the return difference is the sum of the timewise expected-reward differences. The finite-sum triangle inequality [F6] and step 2.1 therefore give . The arithmetic sum evaluates to .
Asynchronous value iteration for finite positive-cost shortest paths
Statement
Assume the Axiom of Choice and that the finite positive-cost stochastic shortest-path problem has at least one proper stationary policy. Let be its optimal cost. Let be finite with for every goal and for every state. At each integer stage , choose any subset and update, using the table before that stage,
while leaving all other state values unchanged and keeping goal values . Assume every nonglobal state belongs to for infinitely many . Then uniformly on the finite state set .
Statement references
Facts & Assumptions
Given: The Axiom of Choice, a finite positive-cost SSP with at least one proper stationary policy, its optimal cost , the initial table below with zero goal values, and the asynchronous update schedule in the Statement.
A choice function exists for every family of nonempty sets. (The Axiom of Choice)
Finite stochastic shortest-path problems: is a probability row and off goals; goal costs and values are zero.
Under the Axiom of Choice and the proper-policy hypothesis, Finite positive-cost stochastic shortest-path value gives a finite nonnegative satisfying the SSP Bellman equations.
Every nonempty finite set of reals has a maximum and a minimum: every finite nonempty real list has an attained maximum and minimum.
A nondecreasing sequence bounded above converges to the supremum of its range, and a nonincreasing sequence bounded below to the infimum: a nonincreasing real sequence bounded below converges to a finite limit.
Proof
Given: The SSP data and asynchronous value iteration satisfying the Statement.
Put and . Initially by the Given hypothesis. If , then each backup is no greater than the corresponding backup of because the transition weights are nonnegative; unupdated entries also remain below . Goals remain equal to . Induction gives for all .
For a nonglobal state and action define the Bellman slack by [F2]. When state is updated, its new error is , since each probability row sums to one and . Unupdated errors are unchanged, and goal errors are zero. Thus . By [F4], this nonincreasing sequence bounded below by zero has a limit .
Suppose and let . Choose indices with and, at each index, choose a state attaining . Since is finite, one state occurs for infinitely many ; its limsup error is at least and at most , so is nonempty. Goal states do not lie in because their errors are always zero. Fix . It is updated infinitely often, and its error is constant between updates. Along a subsequence of times when , the most recent post-update error has the same value; those update times tend to infinity, so a subsequence of post-update errors tends to . At those updates a maximizing action in step 2.1 is attained by [F3]; since is finite, pass to a further subsequence on which the same action is selected. Along this subsequence and . The weighted sum is at most and , so and the weighted sum tends to . If any successor with had , its error would stay at least a fixed positive amount below along this subsequence, contradicting convergence of the weighted sum to . Therefore every positive-probability successor of belongs to .
For every , step 3.1 gives at least one Bellman-optimal action whose transition row is supported in . Enumerate finite and select one such action successively; adjoining one choice at each stage is a finite induction, so no arbitrary-index choice is used. These actions define a deterministic stationary policy on . Starting from , its finite transition laws stay in and avoid goals. The Bellman equalities imply by induction on that , because each visited state lies in and . This contradicts finiteness of from [F2] for sufficiently large . Hence , and uniformly over finite .
RTDP convergence on recurrently backed states
Statement
Assume the Axiom of Choice. Let a finite positive-cost stochastic shortest-path problem have a proper stationary policy and optimal cost . Supply a probability law for an infinite sequence of exact current-state RTDP backups with initial finite costs and zero goal values. At each decision the action is sampled uniformly from the current minimizing actions using a fresh draw, and the next state has conditional transition row given the entire previous history and selected action. Trial resets are separate operations and do not enter a Bellman backup. Each designated start is backed infinitely often. Assume the following outcome-backup fairness: every nonglobal state that occurs infinitely often as an executed transition's next state is also backed infinitely often.
Let be the random set of nonglobal states backed infinitely often. Then, almost surely, uniformly for . In particular, convergence holds at every designated start. Almost surely there is a finite decision index after which every minimizing action at a backed state is globally Bellman-optimal and has its transition support in . Every stationary policy selecting any of these eventual minimizing actions on reaches a goal almost surely from and has optimal total cost there. The result applies to capped trials satisfying outcome-backup fairness and to trials continued until a goal when each designated start initiates infinitely many finite trials. Without a further initialization condition it does not assert convergence at every state reachable under every optimal policy. Define the cost Bellman operator on all of by for and for . If in addition for every , then the entire table is nondecreasing and converges to a finite limit, and that limit equals at every state reachable with positive probability from a designated start under any optimal policy, including states not backed infinitely often.
Statement references
Facts & Assumptions
Given: AC, the finite SSP, the supplied history law, non-overestimating initialization, recurrent starts, fresh uniform greedy ties, correct conditional transitions, and outcome-backup fairness.
AC is the axiom used by the full policy trajectory-law and conditional-expectation suppliers. The Axiom of Choice
Nonglobal costs have a common positive lower bound; goal costs are zero and goals absorb. Finite stochastic shortest-path problems
The finite nonnegative optimal cost solves the Bellman equations and is attained by a proper policy. Finite positive-cost stochastic shortest-path value
The RTDP procedure takes a nonempty finite start set , uses exact current-state Bellman backups in the cost convention, and resets the start state without changing the value table. Trial-based real-time dynamic programming
The tower property iterates conditional expectations across nested histories, passing one-step conditional transition expectations to finite-prefix expectations. Tower property of conditional expectation
A bounded monotone real sequence has a limit. A nondecreasing sequence bounded above converges to the supremum of its range, and a nonincreasing sequence bounded below to the infimum
Proof
Given: The hypotheses in the Statement; write for the decision/backup index.
Bellman monotonicity and [F2] imply after every backup: an updated value is no greater than the same backup of , and other values do not change. Put and . An update at gives . Consequently is nonincreasing and all errors are bounded by their finite initial maximum.
We first justify the probability-one recurrence fact used below. At each of the successive opportunities when a fixed pair is currently greedy at a backed state , the conditional probability of selecting is at least . For any finite number of such opportunities after a fixed index, iterated conditioning [F4] bounds the probability of avoiding through all of them by ; for random opportunity times, first stop at a finite horizon and then increase the horizon, so the same inequality holds on the event those opportunities exist. Letting increase proves that infinitely many opportunities imply infinitely many selections almost surely. At successive selections of a fixed , the same argument with probability shows that successor occurs infinitely often almost surely. Countably many tail indices and finitely many states/actions/successors allow one common probability-one event for all these implications.
Work on that event. Since there are finitely many states, after some finite index only states in are backed. An action greedy at infinitely many backups of a state in is selected infinitely often by step 1.2. Every nonglobal positive-probability successor is then an outcome infinitely often, hence belongs to by outcome-backup fairness. There are only finitely many remaining state-action pairs, so after another finite index every minimizing action at every backed state has transition support in . In particular, after this index the errors of any successors used by a minimizing action are errors inside , or zero goal errors.
Let after the index in step 2.1. The set is nonempty because infinitely many backups occur on a finite state set. The maximum is attained on a finite set. Choose any minimizing action at the current backed state; the error identity in step 1.1, evaluated at that action, and step 2.1 give its post-backup error at most . Unupdated errors stay fixed. Hence is nonincreasing, nonnegative, and has a finite limit by [F5].
Suppose and put . Finiteness and attainment of the maxima imply is nonempty. Each is backed infinitely often and its value is constant between backups, so some sequence of its post-backup errors tends to . On a subsequence one fixed minimizing action realizes these backups, since the action set is finite. In the error identity from step 1.1 its successor errors are all at most , by step 2.1; attaining limiting error forces , excludes positive-probability goal successors, and forces every positive-probability successor to have limsup error . Thus every successor lies in .
Select one such at each member of finite by finite enumeration. These actions are globally Bellman-optimal and keep every finite transition law in . Iterating their Bellman equalities for steps gives by [F1] and nonnegativity of . This contradicts finiteness of for large . Therefore , giving uniform convergence on .
Any action greedy at infinitely many backups has support in by step 2.1. Along those backups all successor estimates tend to their optimal values by step 5.1, and the updated state estimate does also. Passing to the limit in its finite Bellman backup proves that its slack is zero. There are finitely many state-action pairs, so after some finite index no action of positive slack is currently minimizing at a backed state. Every designated start is nonglobal by [F3] and belongs to . A stationary policy choosing any eventual minimizing action on has zero Bellman slack and support in . For any and , iterating its Bellman equalities gives . If , absorbing goals make nonincreasing, and the identity implies . Hence . Since is bounded and zero on , ; taking in the identity shows that the policy is proper on and has total cost .
Suppose additionally . Whenever , each updated coordinate satisfies , while unupdated coordinates are unchanged, so . Monotonicity of then gives : at the updated coordinate , and at every unupdated coordinate . Induction shows that the tables increase coordinatewise and remain subsolutions. They are bounded above by by step 1.1, so on finite they converge to a finite ; continuity of finite minima and sums gives . Every designated start is nonglobal by [F3], is backed infinitely often by hypothesis, and hence belongs to ; step 5.1 gives there.
In goal-terminated trials, every nonglobal executed successor is the next backed state before any reset, so outcome-backup fairness holds pathwise. Capped trials are covered precisely when they satisfy the stated fairness condition; no assumption about unvisited optimal branches follows from fresh ties. This proves the trial-schedule assertions.
If and is globally Bellman-optimal at , then . Equality throughout forces every positive-probability successor to satisfy , since .
Fix an optimal policy from a designated start . Let , which is nonnegative and zero at goals. For every , [F4] and the conditional transition law give . Because and costs off goals are at least , , so these probabilities tend to zero. Boundedness of and make the terminal expectation tend to zero; letting in the identity gives . Thus almost surely at every , so every action on a positive-probability prefix of is globally Bellman-optimal. Starting with at and applying step 7.2 along each such prefix proves at every state reachable with positive probability under . Since was arbitrary and is finite, convergence is uniform on the union of all such reachable states.
RTDP need not visit every state reachable under an optimal policy
Statement refuted
The following RTDP convergence claim is false with the stated generality: in every finite undiscounted stochastic shortest-path problem with absorbing zero-cost goals, a proper policy, strictly positive nonglobal costs, an initial cost table with zero goal values, and trials that start from each designated start state infinitely often and use fresh uniform draws among current greedy actions, the estimates converge almost surely to on every state reachable with positive probability from a designated start under some optimal policy. A state with this reachability property is called optimal-relevant here. The source asserts in addition that the controller converges to an optimal, possibly nonstationary policy on all these states; the value-convergence assertion is already false, so the conjunction is false.
The same failure occurs when each trial is continued until the first goal rather than capped: every trial ends almost surely, yet the estimate of the optimal-relevant state remains incorrect forever.
Statement references
Facts & Assumptions
Given: The five-state finite shortest-path model and RTDP run specified in the Counterexample.
Finite stochastic shortest-path problems: a finite SSP has absorbing zero-cost goals, and each nonglobal expected cost is at least a common positive constant; properness means goal-hitting probabilities tend to one from every state.
Trial-based real-time dynamic programming: RTDP backs up the current state's exact model-based greedy value and executes a uniformly sampled current greedy action, using the specified trial cap and recurrent start schedule.
Counterexample
Given: Let and let be the sole goal. Every action incurs the displayed deterministic cost; the corresponding reward is its negative. At the dummy action remains at with cost . At , action costs and moves to , while action costs and moves to . At , the sole action costs and moves to or with probability each. At , the sole action costs and moves to ; at , the sole action costs and moves to . RTDP starts every trial at , uses trial cap , and starts with costs and . Its reward-value table is ; throughout, write and , so maximizing the reward action value is equivalent to minimizing the cost action value. Thus is exactly .
In the diagram, vertices are states and each arrow label gives its one-step cost and transition probability ; the arrows from also name the chosen action. The two arrows from are outcomes of its single action, and each other state has the unique action specified above. The diagram illustrates the model but is not used in the proof.
\begin{center} \begin{tikzpicture}[>=stealth] \node[circle,draw] (s) at (0,0) {}; \node[circle,draw] (x) at (2,1.2) {}; \node[circle,draw] (y) at (2,-1.2) {}; \node[circle,draw] (z) at (4,-1.2) {}; \node[circle,draw] (g) at (6,0) {}; \draw[->] (s) -- node[above] {} (x); \draw[->] (s) -- node[below] {} (y); \draw[->] (x) to[loop above] node[above] {} (x); \draw[->] (x) to[bend left=8] node[above] {} (g); \draw[->] (y) -- node[below] {} (z); \draw[->] (z) to[bend right=12] node[below] {} (g); \draw[->] (g) to[loop right] node[right] {} (g); \end{tikzpicture} \end{center}
Every nonglobal cost is , and the policy choosing at reaches and then reaches almost surely because each visit to has probability of moving to . From and the goal is reached deterministically. Thus this is a finite positive-cost SSP with a proper stationary policy. At there is no action choice; its survival probability after steps is , so its expected total cost is by the finite geometric identity and its limit. The deterministic costs at and the sole initial choice at therefore give , , and . The initial table is finite, zero at the goal, and no larger than these optimal costs.
Induct on the number of completed trials. At the first trial, . If has not been visited in the first trials and has been backed up times, then and the recurrence , obtained from the sole action at and , gives . Thus action has cost , whereas action has cost . Since and , the RTDP reward-greedy rule is cost-minimizing; it therefore uniquely chooses at . The next trial moves to and does not visit . The cap then provides exactly one backup at , completing the induction. Tie-breaking is never invoked at .
Each trial first executes and moves to . With cap , RTDP then executes the sole action at and backs up once before the trial ends, whether that transition returns to or reaches . Thus the recurrence in step 2.1 holds on every trial, and neither nor is ever visited or backed up. In particular, the estimate of remains forever although .
For the goal-terminated variant, after any finite total number of backups at , its cost is . Thus every later departure from still uniquely selects . Each trial then consists of visits to until its transition to ; the probability of at least self-transitions is , which tends to zero, so the trial is finite almost surely. The union over the countably many trials of their zero-probability nontermination events has probability zero by countable subadditivity. On the complementary event every finite trial boundary has only finitely many backups at , so the strict inequality persists. Neither nor is ever visited, and forever.
The stationary policy that chooses at and then follows the sole actions at and has total cost , so it is optimal from the designated start and reaches with probability one. Hence is optimal-relevant by the stated definition, but its estimate fails to converge on every capped run by step 3.1 and almost surely on goal-terminated runs by step 3.2. This refutes the claimed almost-sure convergence on all optimal-relevant states, and therefore also refutes the conjunction with the source's claimed eventual optimality on every such state.
Model exploitation under support shift
Definition
Let be a finite MDP with nonempty finite state set and nonempty finite action sets . Its finite reward alphabet is contained in , so , and is a probability distribution on for every admissible pair. Let be a finite learned model on the same domain, with and a probability distribution on for every admissible pair. Set . Let be the pairs observed at least once in a data set, fix a horizon and initial state law , and let be any finite nonempty class of deterministic time-dependent Markov policies for that horizon. For a policy , compute its expected return under the true model and learned model using ,
and analogously using . The learned-model occupancy of a pair at time is . A model-optimal policy is any attaining . Such a policy exploits the model off support relative to if it has positive learned-model occupancy on at least one pair in , overestimates its own true return , and is truly suboptimal within : . This definition describes a failure mode; it is not a performance claim about every model optimizer.
Definition references
Facts & Assumptions
Given: The finite true/learned model pair, a finite data-supported pair set , horizon , initial law , and a finite nonempty policy class as in the Definition.
Finite learned transition and reward models: both true and learned reward/transition tables are defined on the same finite state-action domain, with reward means in and probability transition rows.
Finite-horizon return under a Markov policy: the finite occupancy recursion and sum of expected rewards define under either model.
Every nonempty finite set of reals has a maximum and a minimum: a finite nonempty set of real returns has an attained maximum.
Verification
Given: The data and finite policy class in the Definition.
For each , [F1] supplies finite state/action tables and [F2] defines its occupancy recursion and return. Since rewards lie in and the horizon is finite, both and are real numbers in .
The sets of returns and are finite and nonempty, so [F3] gives attained maxima. Pair membership in and positive occupancy are defined on finite sets, and the remaining exploitation conditions are comparisons of these finite real returns. Thus the model-optimal policy and off-support exploitation predicate in the Definition are well-defined.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Richard S. Sutton and Andrew G. Barto, Reinforcement Learning: An Introduction, second-edition-in-progress
- Sergey Levine, Aviral Kumar, George Tucker, and Justin Fu, Offline Reinforcement Learning: Tutorial, Review, and Perspectives on Open Problems
- Andrew G. Barto, Steven J. Bradtke, and Satinder P. Singh, Learning to Act Using Real-Time Dynamic Programming
- Barto, Bradtke and Singh, Learning to Act Using Real-Time Dynamic Programming, Appendix A recurrent-set argument, corrected to exclude the false all-optimal-reachable conclusion