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.
Tabular prediction and control by interaction — Examples
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
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inclusion–Exclusion, the Pigeonhole Principle and Double Counting
- 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
- 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
None yet.
4 · Examples, counterexamples and false statements
A state-action pair that is never visited keeps its initialization
Example
Consider the continuing finite MDP with one state , actions , discount , and deterministic transitions back to . Action always gives reward and action always gives reward . Initialize and , and let the behavior rule choose at every time. Under tabular Q-learning, the pair is never visited, so its estimate remains forever, although the optimal action values are and .
Example references
Facts & Assumptions
Given: The one-state MDP, its deterministic rewards, , the initial table, behavior rule, and Q-learning updates in the Example.
Finite Markov decision process with joint reward-transition law: each state-action pair has the stated joint next-state/reward probability mass.
Tabular Q-learning: only the visited state-action coordinate is changed by an update.
Proof
The behavior rule always selects , so no update ever changes coordinate . By [F2] and induction on , for every .
At , [F3] gives and for every table , because the two rewards are deterministic. Thus the unique Bellman fixed point has , while step 1.1 shows the learned coordinate is always . The unvisited coordinate is not identified by these data.
A constant Q-learning step size can preserve persistent reward noise
Example
Consider a continuing MDP with one state , one action , discount , and a transition back to at every step. Conditional on the entire past, the reward is or with probability each. Initialize and use the constant Q-learning step size at every update. Then the optimal action value is , but the Q-learning iterates fail to converge almost surely.
Example references
The finite state-action reward-transition model.
The finite-prefix probabilities of action-state-reward trajectories.
The tabular Q-learning update.
Choice used by the path-space construction.
Sutton and Barto, Reinforcement Learning: An Introduction.
Tsitsiklis, Asynchronous Stochastic Approximation and Q-Learning.
Facts & Assumptions
Given: The one-state, one-action finite MDP, , the stated conditional reward law, the initial value, the constant step size, and AC for the path law.
The Axiom of Choice: the path-space law is available under the Axiom of Choice.
Finite Markov decision process with joint reward-transition law: conditional on the only state-action pair, the reward-transition probabilities assign mass to each reward and return to .
A finite MDP policy generates action-state-reward trajectories: every finite action-state-reward path has probability equal to the product of its one-step kernel masses.
Tabular Q-learning: the updated coordinate moves toward , with all other coordinates fixed.
Continuity from above when one set has finite measure: probabilities of decreasing measurable events of finite measure converge to the probability of their intersection.
Finite and countable subadditivity of measures: a countable union has probability at most the sum of its event probabilities.
Proof
Given: The MDP and update in the Example, the path-law assumptions and measure suppliers in Facts & Assumptions, and the Axiom of Choice.
There is only one state-action coordinate. Since and , [F3] gives for every . By [F1] and [F4], for every table , so the optimal Bellman fixed point is .
Fix . For each , let be the event that are all . By [F2], . These events decrease as increases; [F5] implies . The same calculation gives probability zero for the event that all rewards from index onward equal . Taking the countable union over and the two signs, [F6] shows that with probability one the reward sequence is not eventually constant.
A convergent sequence taking values only in must be eventually constant: the Cauchy condition with tolerance forbids two different values in any sufficiently late tail. Step 1.2 therefore shows that does not converge almost surely. Step 1.1 gives for every , so the Q-learning iterates also fail to converge almost surely.
An unseen target action cannot be importance sampled from behavior data
Example
Assume the Axiom of Choice for the policy path laws and fix . Let the state set be , with and . Action at gives reward and transitions to terminal state ; action gives reward and also transitions to . At , action gives reward and returns to , but episodes stop upon first reaching . Let the behavior policy choose with probability at and the target policy choose with probability . The formal ordinary first-visit importance-sampling estimator is evaluated here outside the Monte Carlo algorithm's target-support admissibility condition, to show why that condition is needed. Every behavior episode observes , whose action ratio is , so the estimate is always , while the target value is . The target-support condition fails because .
Example references
Facts & Assumptions
Given: The one-decision finite MDP, its terminal set, , the Axiom of Choice for the policy path laws, the deterministic behavior and target policies, and the formal ordinary first-visit estimator evaluated as stated in the Example.
Finite Markov decision process with joint reward-transition law: the two actions have the deterministic reward and terminal-transition laws stated in the Example.
Episodic returns, temporal-difference errors, and policy support: the observed-path likelihood ratio is the product of target action probabilities divided by behavior action probabilities, and target support is needed for the ratio identity.
First-visit Monte Carlo policy evaluation: the ordinary estimator averages the likelihood-ratio-weighted first-visit returns over observed visits.
Proof
Every behavior episode has the single action , reward , and a first visit to at time . Its ratio is by [F2], so each weighted return is zero and the ordinary estimate in [F3] equals for every positive sample count.
The target policy instead chooses with probability , receives reward , and terminates immediately; hence its return and value at are . The ordinary behavior estimate is therefore not the target value. The failed premise is exactly target support, since but .
Ordinary importance sampling can have infinite variance under full support
Example
Let the state set be with actions and . The reward alphabet is and the discount is . At , action gives reward and returns to , while action gives reward and transitions to terminal state . At , action gives reward and returns to , but episodes stop upon first reaching . The behavior policy chooses at with probabilities , respectively; the target policy chooses them with probabilities . Both policies choose at . Starting from , both policies terminate almost surely and target support holds. If is the number of actions before , the ordinary importance-sampling return has mean and infinite variance.
Example references
The finite joint reward-transition model.
The discounted episodic return and action likelihood ratio.
The ordinary importance-sampling mean identity under support.
The ordinary first-visit estimator.
Choice used by the path-space construction.
Sutton and Barto, Reinforcement Learning: An Introduction.
Yang, Optimal Control and Reinforcement Learning, Chapter 2.
Facts & Assumptions
Given: The two-state finite MDP, its terminal state, , the stationary behavior and target policies, and AC for the path laws.
The Axiom of Choice: the policy path laws exist under the Axiom of Choice.
Finite Markov decision process with joint reward-transition law: the joint reward-transition masses at are deterministic for as stated, and the two actions have the stated policy probabilities.
A finite MDP policy generates action-state-reward trajectories: a finite action-state-reward trajectory has probability equal to the product of its policy action probabilities and MDP transition-reward masses.
Episodic returns, temporal-difference errors, and policy support: and is the product of target-to-behavior action-probability ratios.
Finite-episode importance sampling has the target-policy mean under support: with target support and almost-sure termination under both policies, the ordinary weighted return has target-policy mean.
For , , and for the series diverges: for and diverges for .
Continuity from above when one set has finite measure: probabilities of decreasing events converge to the probability of their intersection.
Probability measures and probability spaces and Expectation of a nonnegative or integrable random variable: trajectory probabilities form a probability measure and nonnegative expectations are their Lebesgue integrals.
Monotone convergence for the integral: expectations of increasing nonnegative truncations converge to the expectation of their pointwise limit.
Proof
Under , the event consists of successive choices of and has probability by [F2]. Under it has probability . These events decrease to the event of never choosing ; [F6] shows that this event has probability zero under either policy. Since both actions have positive probability under both policies, target support holds.
Under , and the return on that episode is . Summing first over and then letting , [F7]–[F8] and [F5] give For the episode with , the likelihood ratio is and hence . By [F4] and the support and termination verified in step 1.1, .
The behavior probability of is . Therefore where [F7]–[F8] justify the nonnegative path sum and [F5] gives divergence because . Let . Since , there is such that for all , and then . The tail second moment is infinite, so . Together with the finite mean from step 2.1, this proves that has infinite variance.
A one-sample weighted importance-sampling estimate can be biased
Example
Assume the Axiom of Choice for the policy path laws. Let the state set be , with actions and . The discount is , and episodes stop on first reaching terminal state . At , both actions transition to ; action gives reward and action gives reward . At , action returns to with reward . Let the target policy choose with probabilities and the behavior policy choose them with probabilities ; both choose at . Target support holds. For one behavior episode, the self-normalized weighted importance-sampling estimate is the observed reward, so its expectation is , whereas the target value is . Its finite-sample bias is .
Example references
The finite joint reward-transition model.
The episodic return, target support, and likelihood ratio.
The self-normalized first-visit importance-sampling estimator.
Expectation as a finite probability-weighted sum in this example.
Sutton and Barto, Reinforcement Learning: An Introduction.
Yang, Optimal Control and Reinforcement Learning, Chapter 2.
Facts & Assumptions
Given: The one-decision finite MDP, its terminal state, , the Axiom of Choice for the policy path laws, target and behavior action probabilities, and the one-sample weighted estimator.
Finite Markov decision process with joint reward-transition law: action produces reward and action produces reward , with both transitioning to .
Episodic returns, temporal-difference errors, and policy support: the likelihood ratio for the one-step episode is ; both possible behavior actions have positive target probability.
First-visit Monte Carlo policy evaluation: the weighted estimate is when the denominator is positive.
Expectation of a nonnegative or integrable random variable: for a finite-valued variable, expectation is the sum of its values weighted by their probabilities.
Proof
If the observed action is , its importance weight is and its return is ; if it is , its weight is and its return is . In either case the one-sample weighted estimator in [F3] reduces to , and the denominator is strictly positive.
Under behavior, action occurs with probability and action with probability , so [F4] and step 1.1 give expected one-sample estimate . Under the target policy, the state value is . Their difference is , proving finite-sample bias.