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
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
- 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
Differentiable stationary stochastic policies and score vectors
Definition
Let a finite Markov decision process have nonempty finite state set and finite nonempty action set at each state. Let be open, with . A differentiable stationary policy family on is a family of probabilities , indexed by , , and , such that , each map is totally differentiable, and for each there is a fixed nonempty support with for every and , while for every and . The score vector at a supported state-action pair is
where the gradient is the Euclidean vector of partial derivatives. The fixed-support condition makes this logarithm defined throughout on every action that can be sampled.
Definition references
Total differentiability is the linear first-order approximation with a remainder of smaller order.
The gradient of a scalar-valued map is the vector of its coordinate partial derivatives.
The total derivative of a composition is the composition of the total derivatives.
The logarithm is differentiable at positive arguments with derivative equal to their reciprocal.
A policy score has zero conditional mean before the action
Statement
Assume the Axiom of Choice. Let be a nonempty finite state set, let each be a finite nonempty action set, and let be a fixed normalized joint law for the next state and reward. Fix an initial state and a terminal set . Under a differentiable stationary policy family with a support that is fixed and strictly positive on that support throughout its open parameter domain, assume the induced episode terminates almost surely. For , let be the information available just before the time- action, and let when , where is the first terminal time. Define when . Then, coordinate by coordinate,
Statement references
Facts & Assumptions
Given: The stated finite MDP, initial state, terminal set, differentiable policy family, Axiom of Choice, and its action-state-reward path law.
The Axiom of Choice: every family of nonempty sets has a choice function; the path-law construction below is the use of this axiom.
Finite Markov decision process with joint reward-transition law: the state, reward, and state-dependent action sets are finite; for each admissible the joint masses are nonnegative and sum to one; a stationary policy is a normalized action distribution.
Differentiable stationary stochastic policies and score vectors: the policy probabilities are totally differentiable in the open parameter domain, and each state has a fixed support on which every probability is positive; on that support .
A finite MDP policy generates action-state-reward trajectories: under Choice, each feasible finite trajectory prefix has probability equal to the product of its action probabilities and joint transition-reward masses.
Conditional expectation given a sigma algebra: a conditional-expectation version is integrable, measurable with respect to the conditioning sigma-algebra, and has the same integral as the original variable on every event in that sigma-algebra.
Sums and scalar multiples of totally differentiable maps are totally differentiable with the expected derivatives: the sum of two totally differentiable maps is totally differentiable with the sum of their derivatives.
The sum over a finite index set, and its product form: a finite sum is independent of the enumeration used to compute it.
The principle of mathematical induction: a property proved at zero and preserved from each natural number to its successor holds for every natural number.
Proof
Given: The hypotheses and conventions in the Statement.
Fix and a positive-probability atom of contained in , and let be its current state. By [F3], adjoining action and next outcome multiplies the mass of by . Summing over the finite next-state and reward sets and using [F1] gives . On atoms contained in , by definition; on zero-probability atoms no conditional value is prescribed.
Enumerate the finite support as . By induction on the number of terms, [F5] gives the derivative of this finite sum as the sum of the derivatives: the empty sum has derivative zero, and adjoining one term uses the binary sum rule. For each positive-probability history ending at , the conditional score mean is . The first equality uses positivity on the support and the derivative of the logarithm; the second uses [F5], [F6], and the normalization in [F2].
To verify that this mean is a conditional-expectation version, note that has finitely many atoms because its state, action, and reward alphabets are finite. The score coordinates are bounded at fixed , since there are finitely many state-action pairs. On each positive-probability atom of , define to have the constant value ; set on every null atom. If , step 1.1 and the displayed calculation show that this value is zero; if , on by definition, so the value is again zero. Thus is the zero, integrable, -measurable vector. Every event in is a union of finitely many atoms, and summing the atom integral identities gives for every , including null atoms. This verifies [F4], so is a version of and is zero almost surely.
Discounted episodic policy gradients from trajectory likelihoods
Statement
Assume the Axiom of Choice. Let a finite Markov decision process have nonempty finite state set , finite nonempty action sets , finite reward set , and fixed joint transition-reward masses . Fix an initial state , a terminal set , and . Let be open, let , and let be a differentiable stationary policy family with fixed common support on an open neighborhood of . Suppose every episode from under , for , reaches in finite time almost surely. Let be the first terminal time, let
and set . Let be the set of finite trajectories that use only actions in the common policy support, have positive transition masses, and stop at their first terminal state. For , define
Assume the trajectory masses are totally differentiable at , the linear map is defined by an absolutely convergent sum, and there is a summable that dominates the return-weighted normalized remainders below and for which those remainders tend to zero pathwise:
for every as , with .
Also assume
where on the common support. Then is totally differentiable at and
Statement references
Facts & Assumptions
Given: The finite MDP, Axiom of Choice, start and terminal states, discount, policy family, almost-sure termination, and the two stated dominated-differentiation and integrability assumptions.
The Axiom of Choice: every family of nonempty sets has a choice function; it is used to obtain the policy path law.
The return-weighted normalized likelihood remainders in the Statement tend to zero pathwise and are dominated by one summable envelope; this is the exact hypothesis for applying dominated convergence to the trajectory series.
The discounted score-reward double sum in the Statement is integrable; it permits the expectation and time sums in the proof to be interchanged by dominated convergence.
Finite Markov decision process with joint reward-transition law: state, action, and reward sets are finite; is a normalized joint next-state/reward law, and the dynamics do not depend on .
Differentiable stationary stochastic policies and score vectors: each is normalized and totally differentiable, with fixed positive support; on that support.
Episodic returns, temporal-difference errors, and policy support: the episode stops at its first terminal state, terminates almost surely, and is the return from time ; its initial value is the discounted value on the absorbing extension.
A finite MDP policy generates action-state-reward trajectories: under AC, every feasible finite action-state-reward prefix has mass equal to the product of its policy probabilities and joint transition-reward masses; its one-step record alphabet is finite.
Finite, countably infinite, countable, uncountable and A natural-number coding of finite sequences: a set is at most countable when it injects into , and every finite sequence of natural numbers has an injective natural-number code.
Chain sum product and composition rules for Banach derivatives: for a bounded bilinear map, .
The chain rule for total derivatives: : derivatives of compositions are compositions of total derivatives.
A policy score has zero conditional mean before the action: before each action, the conditional expectation of its score vector given the entire past and current state is zero.
Conditional expectation given a sigma algebra: conditional expectation preserves integrals on conditioning events; Taking out what is known permits an integrable measurable past factor to be taken outside it.
Dominated convergence: pointwise convergence under one integrable majorant permits convergence of the corresponding integrals.
Expectation of a nonnegative or integrable random variable: expectation of an integrable real random variable is its finite Lebesgue integral.
Proof
If , then , the return and gradient are zero, and the sum in the conclusion is empty. Otherwise, the transition-record alphabet is finite by [F1] and [F4]. Fix an enumeration of that alphabet; every finite terminal path becomes a finite sequence of natural-number indices, so [F5] injects into .
Fix . By [F4], its probability is the displayed product. Repeatedly applying the bounded-bilinear product rule [F6] to its finitely many policy factors, and using [F2], [F7], and [F8], gives . Paths with a zero transition mass or an unsupported action have probability zero throughout and are omitted from . The empty trajectory has empty product and empty score sum .
The episode termination assumption makes the masses of sum to one, and [F3] identifies . By [A2] and [F11], the derivative of this series at is the absolutely convergent sum . Substituting step 1.2 shows that, for every direction , .
Expand . For each , the event and the past reward are -measurable. By [F9] and [F10], each coordinate of is zero. The bound [A3] dominates every finite rectangular truncation of the double sum by an integrable random variable, so [F11] permits passing to the full sum. All terms with therefore vanish in step 2.1.
The remaining terms have , and the return definition [F3] gives . Hence step 2.1 becomes . Since this holds for every , the vector inside the inner product is the Euclidean gradient of at , proving the assertion.
Remarks
The factor is part of the identity for the discounted start-state objective and the return convention stated here. The result is episodic. A continuing average-reward policy-gradient statement uses a different objective and requires an existing stationary state distribution independent of the start state under the source's ergodicity premise. No convergence theorem for nonlinear or deep parameter updates is asserted here.
One-step episodic actor–critic with a bootstrapped critic
Definition
Inputs: a finite episodic MDP with nonempty finite state set , finite nonempty action sets , finite reward set , joint transition-reward law , terminal set , and initial state ; a discount ; a differentiable stationary policy family with fixed positive support on an open set ; a value approximation differentiable in on an open set ; initial parameters ; and step sizes .
Admissible conditions: assume AC for the adaptive episode law; every proposed actor and critic update remains in and , respectively, and the episode generated by this procedure, including its within-episode parameter updates, reaches after finitely many transitions almost surely.
For the sampling instruction, condition on the complete finite transition history and use the current parameters computed from that history. The successive-draw law uses these history-dependent kernels on discrete transition-record spaces, with a fixed stop symbol padding the records after termination.
Output: the final actor and critic parameters after one episode.
Set , , and . If , return . Otherwise, while , using the current pre-update parameters :
- Sample and then sample with joint law .
- Set if and otherwise. Compute the temporal-difference error .
- Compute both updates from these pre-update parameters: and . Replace by .
- Set and .
When the loop ends, return the current as .
The critic uses a one-step bootstrapped target; the actor uses the current TD error and the accumulated start-state discount . The procedure itself asserts no convergence result.
Definition references
The finite state-dependent action sets and joint reward-transition law.
The differentiable policy family and action-score vectors.
The terminal convention and discounted episodic TD-error notation.
The choice premise for the adaptive episode law.
The total derivatives used for policy and value-approximation parameters.
Remarks
Replacing the full Monte Carlo return by a bootstrapped critic target can change the expected actor direction when the critic is inaccurate. This definition supplies no convergence guarantee for tabular, nonlinear, or deep function approximation.
Episodic REINFORCE with a frozen episode policy
Definition
Inputs: a finite episodic MDP with nonempty finite state set , finite nonempty action sets , finite reward set , joint transition-reward law , terminal set , and initial state ; a discount ; a differentiable stationary policy family with fixed positive support on an open set ; an initial parameter ; and a step size .
Admissible conditions: the episode sampled from under the frozen policy reaches after finitely many transitions almost surely, and the proposed update remains in .
Output: the updated policy parameter after one training round.
Hold fixed while sampling one episode from until its first terminal state; if , take . For each , compute the return and score using . After the episode is complete, set
and return . All returns, scores, and the full sum use the same parameter value that generated the episode; no policy update occurs while that episode is being sampled.
Definition references
The finite state-dependent action sets and joint reward-transition law.
A differentiable policy family with fixed positive support and score vectors.
The almost-surely terminating episode and discounted return from each time step.
The action-state-reward trajectory law for a finite MDP policy under AC.
Remarks
Under the theorem's assumptions, the sample direction has expectation , including the theorem's trajectory-differentiation and Axiom of Choice premises. The expected parameter increment is therefore . This identity does not imply convergence of repeated nonlinear or deep parameter updates.
Remarks references
A state-dependent action-independent baseline preserves the gradient mean
Statement
Assume the hypotheses of the discounted episodic policy-gradient theorem at a fixed parameter , including the Axiom of Choice, common support, almost-sure finite termination, dominated trajectory differentiation, and the stated integrability of discounted return-score products. Let be any fixed finite-valued function of the state, chosen independently of the actions in the episode. Then
The baseline is action-independent conditional on the state and past. This identity says that subtracting it preserves the expected update; it does not say that every baseline reduces variance.
Statement references
Facts & Assumptions
Given: The hypotheses and notation of Discounted episodic policy gradients from trajectory likelihoods, its Axiom of Choice premise, and a fixed finite-valued state function .
The Axiom of Choice: every family of nonempty sets has a choice function; the policy trajectory law and conditional-expectation supplier use this axiom.
Discounted episodic policy gradients from trajectory likelihoods: under its stated trajectory-differentiation and integrability assumptions, .
A policy score has zero conditional mean before the action: for the pre-action history , almost surely.
Finite Markov decision process with joint reward-transition law and Differentiable stationary stochastic policies and score vectors: the state and action sets are finite, and at fixed every score vector on the common support is finite; hence the finitely many score vectors are bounded.
Episodic returns, temporal-difference errors, and policy support: , episodes terminate almost surely, and is the discounted return from time .
Taking out what is known: an integrable variable measurable with respect to can be taken outside conditional expectation when its product is integrable.
For , , and for the series diverges: for , .
Dominated convergence: almost-sure convergence under a single integrable majorant permits convergence of expectations.
Proof
Given: The Statement hypotheses, with for .
Because is finite, is bounded; because the state-action support is finite, [F3] gives . For every episode, [F6] bounds the baseline-score sum by . For each fixed , is -measurable, so [F2] and [F5] give .
The partial baseline-score sums converge almost surely to the full sum because almost surely, and the bound in step 1.1 is an integrable constant majorant. By [F7], the expectation of the full baseline-score sum is the limit of its finite partial-sum expectations, each zero by step 1.1; hence .
Subtracting the zero vector in step 2.1 from the policy-gradient expectation in [F1] gives the displayed identity.
Episodic REINFORCE with a fixed state baseline
Definition
Inputs: a finite episodic MDP with nonempty finite state set , finite nonempty action sets , finite reward set , joint transition-reward law , terminal set , and initial state ; a discount ; a differentiable stationary policy family with fixed positive support on an open set ; an initial parameter ; a fixed finite-valued state function chosen independently of the episode actions; and a step size .
Admissible conditions: the episode sampled from under the frozen policy reaches after finitely many transitions almost surely, and the proposed update remains in .
Output: the updated policy parameter after one training round.
Hold fixed and select before sampling one complete episode from under , stopping at its first terminal state; if , take . For each , compute , the score using , and the baseline-adjusted return . After termination, set
and return . The baseline is fixed throughout the episode and is not updated from it before the actor update; it depends on the state and is independent of each episode action conditional on the state and past.
Definition references
Remarks
Under the baseline lemma's hypotheses, the baseline-adjusted sample direction has expectation equal to the discounted objective gradient, and the expected parameter increment is that gradient multiplied by . An action-independent baseline can reduce variance, but it need not do so for every choice of baseline.
Remarks references
4 · Examples, counterexamples and false statements
None yet.