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.
Policy gradients, REINFORCE, and actor–critic — Examples
1 · Prerequisites
- Absolute and Conditional Convergence; Rearrangement; Products
- Banach-Space Differential Calculus and Banach Manifolds
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Complexification, Realification and Real Structures
- 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
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite MDPs and Bellman operators
- Formal Languages, Encodings, and Decision Problems
- 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
- Linear Independence, Bases and Dimension
- Linear Recurrences and Rational Generating Functions
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Markov Kernels and Markov Chains
- Matrices, the Matrix of a Linear Map, and Change of Basis
- 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
- Normed and Banach Spaces
- Order, Zorn's Lemma, and the Axiom of Choice
- Outer Measure and the Caratheodory Extension Theorem
- Policy gradients, REINFORCE, and actor–critic
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- Primitive Recursive and Partial Computable 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
- Rⁿ as a Normed Space; Vector-Valued Functions
- 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
- Subspaces, Products, and Quotients
- 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 Total Derivative in ℝᵐ → ℝⁿ
- 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 bootstrapped critic can bias the first actor update
Example
Let , terminal set , reward set , , and . From transition deterministically to ; from transition deterministically to ; from either transition to ; and from transition to . All unlisted joint masses are zero. Start at and use discount . For , let , , and choose the only available action at every other state. Run the algorithm from initial actor parameter . Use open critic-parameter domain , with coordinate order , and differentiable critic at initial vector . With actor step size , critic step size , and the one-step actor update , where and , the true start-state objective is for every , but the expected first actor increment is . Each possible first actor update remains in . The episode reaches after two decisions; at its second decision the only action at or has score zero, and leaves the critic unchanged, so all updates remain in and . Thus this bootstrapped critic produces a biased first actor update.
Example references
Facts & Assumptions
Given: The finite MDP and policies in the Example, , the stated critic values, and the one-step actor-critic update.
Finite Markov decision process with joint reward-transition law: each state has its specified finite nonempty action set, and each joint next-state/reward law is a probability distribution.
Differentiable stationary stochastic policies and score vectors: on the common positive support, .
Episodic returns, temporal-difference errors, and policy support: the episode ends at its first terminal state and its discounted return sums rewards only up to that time.
One-step episodic actor–critic with a bootstrapped critic: at time , the actor increment is with and , setting the terminal continuation to zero; proposed updates are required to stay in the open parameter domains.
The total (Fréchet) derivative as the linear first-order approximation with remainder: a constant scalar function has total derivative the zero linear map, since its first-order remainder is identically zero.
Verification
Given: The Example data and facts above.
Every reward in this MDP is zero and the episode reaches in two decisions, so its total return is zero for every sampled action sequence. Hence for every and by [F6].
At , the score at is for action and for action , by [F2] and [F5].
If , then and , so the first actor increment is zero. If , then and , so the first increment is by [F4] and step 1.2. Both proposed values, and , are in the policy domain . At the second decision the unique action at has score zero, and leaves the critic unchanged; the second updates therefore remain in and the next state is terminal . This verifies within-episode admissibility and finite termination.
The two actions each have probability , so the expected first actor increment is . This differs from the true gradient in step 1.1, proving the stated bias.
Remarks
[A1] Axiom of Choice: every family of nonempty sets has a choice function; the referenced general episodic path-law algorithm assumes AC.
Remarks references
One-step Bernoulli REINFORCE has the exact expected gradient
Example
Let , terminal set , reward set , , and . From transition deterministically to ; from transition deterministically to ; from transition deterministically to . All unlisted joint masses are zero. Start at and use discount . For , let , , and choose the only action at . An episode has one decision, , and . The unscaled sample direction used by frozen-policy REINFORCE for this episode is . For every , .
Example references
Facts & Assumptions
Given: The finite one-decision MDP, , the policy family, and the estimator in the Example.
Finite Markov decision process with joint reward-transition law: each joint next-state/reward mass is nonnegative and the masses for a fixed state-action pair sum to one.
Differentiable stationary stochastic policies and score vectors: has fixed positive support on and its score is the gradient of the log action probability.
Episodic returns, temporal-difference errors, and policy support: the episode return is the discounted sum from the current time to the terminal time.
Episodic REINFORCE with a frozen episode policy: the policy is held fixed while an episode is sampled, and the unscaled sample direction is ; the parameter increment multiplies this direction by the chosen step size.
The total (Fréchet) derivative as the linear first-order approximation with remainder: the derivative of the identity map is the identity linear map.
Verification
Given: The Example data and facts above.
Action occurs with probability and gives reward , while action occurs with probability and gives reward . By [F3], this one-decision episode has , so its expected return is and by [F1] and [F6].
By [F2] and [F5], the score is when and when .
When , ; when , . Hence , which equals the gradient from step 1.1.
Remarks
[A1] Axiom of Choice: every family of nonempty sets has a choice function; the referenced general path-law algorithm assumes AC.
Remarks references
A state baseline can eliminate this estimator's variance
Example
Use the one-decision MDP with states , terminal state , actions at , one action at , and deterministic transitions from to , from to , and from to . All unlisted joint masses are zero. Choose discount . For , set and , and start at . At , the true objective is with gradient . Let be the unscaled REINFORCE sample direction, and use the action-independent state baseline . Then has variance , while is identically and has variance ; both have expectation .
Example references
Facts & Assumptions
Given: The stated finite one-decision MDP, , , the REINFORCE estimator, and the fixed baseline .
Finite Markov decision process with joint reward-transition law: each state-action pair has the specified normalized joint reward-transition law.
Differentiable stationary stochastic policies and score vectors: the policy has fixed positive support and score on the support.
Episodic returns, temporal-difference errors, and policy support: the one-step discounted return is .
Episodic REINFORCE with a frozen episode policy and Episodic REINFORCE with a fixed state baseline: the unscaled sample directions are and respectively; each parameter increment multiplies its direction by the chosen step size.
A state-dependent action-independent baseline preserves the gradient mean: the expected baseline-adjusted episodic update equals the policy gradient under its stated integrability and trajectory assumptions.
The total (Fréchet) derivative as the linear first-order approximation with remainder: the derivative of the identity map is the identity linear map.
Verification
Given: The Example data and facts above.
At , the two actions have probability and scores and by [F2] and [F6]. The specified deterministic reward-transition law [F1] and return convention [F3] give and , so the true gradient is by [F7].
Without a baseline, when and when . Therefore and .
With , the baseline-adjusted value is when and when . Thus surely, so and .
The two estimators have the same expectation, equal to the true gradient in step 1.1, while their variances are and by steps 2.1 and 2.2. This verifies variance reduction for this baseline and this MDP only.
Remarks
[A1] Axiom of Choice: every family of nonempty sets has a choice function; the referenced episodic algorithms and baseline lemma use the policy path law under AC.
Remarks references
Omitting the start-time discount changes the policy gradient
Statement refuted
For the fixed start-state discounted objective and returns , under episode termination, common-support differentiability, finite expected return/score products, and justified differentiation through the trajectory law, the identity
always holds.
Statement references
Facts & Assumptions
Given: States , start , terminal set , discount , one action at leading to with reward , and actions at leading to with reward equal to the action. At take one zero-reward self-transition action. For , put , ; the single-action policies at the other states have probability one. The episode is the two-point probability space of terminal paths with masses .
Finite Markov decision process with joint reward-transition law: finite normalized transition-reward masses and statewise normalized action probabilities specify a finite MDP and a stationary policy.
Differentiable stationary stochastic policies and score vectors: the score on positive fixed support is the gradient of the logarithm of the policy mass.
Counterexample
Given: The finite model and two-point episode law above, with .
Every episode has , and . The given deterministic transition masses are normalized, and the displayed policy probabilities are normalized and positive on fixed support for every . Both terminal-path masses are affine in , so differentiation through their finite sum is exact with identically zero remainders; all score-return products are finite at every fixed interior parameter. Thus all the asserted regularity and termination conditions hold.
The objective is , so . The time-zero score is zero. At time one the score is on action and on action , while . Hence the claimed right-hand side is . Including the missing factor changes this expectation to , as required.