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.
Constrained MDPs and policy safety
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
- 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
- Convexity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Darboux, L'Hôpital, and Taylor's Theorem
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Domination and Likelihood Ratios
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite MDPs and Bellman operators
- Foundations of the Real Numbers for Analysis
- Gaussian Elimination, Elementary Matrices and Reduced Row Echelon Form
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Measurable Functions and Simple Approximation
- Measures and Their Basic Properties
- Metric Spaces
- Minimax Lower Bounds
- Mixed Partials, Taylor Formulae, and Extrema
- 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
- Policy gradients, REINFORCE, and actor–critic
- Polynomial Rings, the Division Algorithm and Roots
- Power Series and Real-Analytic Functions
- 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
- Stationary Markov Chains and Ergodic Limits
- Suprema and Infima
- The Derivative and the Mean Value Theorems
- The Exponential Function
- The Integral Logarithm and the Equivalence of Its Characterisations
- The Lebesgue Integral and the Convergence Theorems
- The Logarithm and General Powers
- 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 ℝ
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Logical flowchart
3 · Definitions, theorems and proofs
Finite-action average total variation is bounded by average KL
Statement
Assume the Axiom of Choice. Let be a finite nonempty set, let be a probability distribution on , and for each let be a finite nonempty set with probability distributions and . On the power-set sigma-algebra of , define
Use the directional Kullback–Leibler divergence with natural logarithms, defined by
and the convention . Put
Then
where the right side is when .
Statement references
Facts & Assumptions
Given: The Axiom of Choice, a finite nonempty state set, probability weights , and finite nonempty action sets with probability distributions .
The Axiom of Choice: every family of nonempty sets has a choice function; AC is invoked only to apply the published Pinsker theorem [F3]. The finite sums and weighting arguments are choice-free.
Kullback–Leibler divergence: directional KL is when the first probability law is not absolutely continuous with respect to the second; under absolute continuity it uses the natural logarithm and the convention .
Total variation distance for probability laws: event-supremum total variation is and has no factor ; on a finite power-set space it must be identified with the displayed half- convention.
Pinsker’s inequality with event-supremum total variation: under AC, event-supremum total variation between probability laws is at most ; the result is immediate if the KL divergence is infinite.
Proof
Fix one state . Write ; since both distributions have mass one, . The set consists of the nonnegative differences. The positive and negative parts of therefore have equal sum, each equal to . For every subset , is at most this common sum, and attains it. Thus the event-supremum total variation in [F2] equals .
Apply [F3] to the probability measures and on the finite power-set space, and use step 1.1. This gives , including the infinite-divergence case.
If , the asserted inequality holds because each total-variation term is at most one. Suppose and put . When , step 2.1 gives for every state. Since their -weighted sum is zero, every state with has zero divergence, so step 2.1 also gives zero total variation there. When , for every the square gives . Apply this with for states with , multiply by , and sum. Since and , the result is . Step 2.1 now yields the claimed bound.
Remarks
The finite-action equality in step 1.1 uses the event-supremum convention, not the total-variation norm of a signed measure. AC enters only in the KL/Pinsker branch; the finite-sum and weighted square-root arguments are choice-free.
Finite discounted constrained Markov decision process
Definition
Let be a finite Markov decision process with nonempty state set and finite nonempty action set at each state. Put . Let be a probability distribution on , let , let be an integer, and for each let , , and . A finite discounted constrained Markov decision process (CMDP) is the tuple consisting of , , , and the bounded transition-cost functions and thresholds . Its immediate reward signal is .
For a stationary Markov policy , define the state-mass sequence recursively by and
This recurrence defines nonnegative finite-time masses; the result that each is a probability distribution is established separately.
Definition references
Normalized discounted state occupancy
Definition
Let a finite discounted CMDP and a stationary policy be given. The column transition matrix has entry
so that its column indexed by gives the next-state distribution from current state . With the state-mass column vectors from the CMDP definition, the normalized discounted state occupancy is
This normalization is part of the definition; the occupancy is a probability distribution by the separate well-definedness result below.
Definition references
Normalized discounted occupancy is a probability distribution ↗: The recurrence yields probability vectors, and multiplying the geometric occupancy sum by gives total mass one.
Achiam et al., Constrained Policy Optimization, supplementary material, Appendix 10.1.1.
Altman, Constrained Markov Decision Processes, Chapter 3 §3.1.
Expected discounted-cost feasibility constraint
Definition
Let a finite discounted CMDP have initial distribution , discount , bounded transition signals , thresholds , and finite-time state masses under a stationary policy , as defined in the CMDP model. For any bounded transition signal on , define its expected discounted sum under by
The expected discounted reward is for the immediate reward signal , and the th expected discounted cost is . The policy is feasible for the discounted-cost constraints exactly when for every . Feasibility constrains these expectations; it does not assert a per-trajectory bound.
Definition references
Absolute convergence and tail bound for bounded discounted rewards: Every bounded real signal sequence has an absolutely convergent discounted sum for , bounded by its signal bound divided by .
Altman, Constrained Markov Decision Processes, Chapter 2 §2.2.
Normalized discounted occupancy is a probability distribution
Statement
Let a finite discounted CMDP, a stationary policy , its finite-time state-mass vectors , its normalized discounted occupancy , and the expected discounted signal be as defined above. Each is a probability distribution, is a probability distribution, and for every real and every transition signal satisfying for all , the series defining converges absolutely and satisfies .
Statement references
Facts & Assumptions
Given: A finite CMDP with initial distribution , discount , a stationary policy , and the recursive state masses and occupancy defined in the linked items. For the signal bound, fix a real and a transition signal with for every .
Finite Markov decision process with joint reward-transition law: for each admissible , the joint next-state/reward masses are nonnegative and .
Finite Markov decision process with joint reward-transition law: a stationary Markov policy has and .
Expected discounted-cost feasibility constraint: is the series of finite sums of the time- transition masses multiplied by and .
For , , and for the series diverges: for , .
Absolute convergence and tail bound for bounded discounted rewards: every real sequence bounded in absolute value by has an absolutely convergent -discounted series whose absolute value is at most .
The principle of mathematical induction: a property holding at and preserved from each natural number to its successor holds for every natural number.
Proof
The initial vector is nonnegative and sums to one. If is a probability distribution, then the recurrence and [F2]–[F3] give nonnegative next masses and . By [F8], every is a probability distribution.
By step 1.1, for every , so each coordinate series in [F4] converges by comparison with the geometric series [F6]. Since is finite, its coordinate series can be summed termwise, giving and by [F6]. Thus is a probability distribution.
For each , the finite transition weights are nonnegative and sum to one by step 1.1 and [F2]–[F3]. Hence their weighted sum of has absolute value at most . Apply [F7] to this bounded sequence of time- signal sums; the series in [F5] converges absolutely and its absolute value is at most .
Discounted value, action-value, and advantage functions
Definition
Let a finite discounted CMDP, a stationary policy , and a bounded transition signal be given. For , let be the initial distribution assigning probability one to . The state value is . For , define the action value and advantage by
Taking gives reward values and advantages; taking gives the value and advantage for the th cost. These quantities are finite because the signal is bounded, , and the transition law is normalized.
Definition references
Discounted occupancy change is bounded by average policy TV
Statement
Let a finite discounted CMDP and two stationary policies be given, with normalized discounted occupancies . Define
and for a state vector. Then
Statement references
Normalized discounted state occupancy: The normalized occupancy is times the discounted sum of state-mass vectors.
Each state-mass vector and the resulting occupancy are probability distributions.
Achiam et al., Constrained Policy Optimization, supplementary material, Appendix 10.1.
Altman, Constrained Markov Decision Processes, Chapter 3 §3.1.
Facts & Assumptions
Given: A finite CMDP, , stationary policies , and their state-mass vectors and normalized discounted occupancies.
Finite discounted constrained Markov decision process: and each are finite, is a normalized joint law, is a probability distribution, and is a probability distribution over .
Normalized discounted state occupancy: and the column transition matrix is .
Normalized discounted occupancy is a probability distribution: every and is a probability distribution.
Proof
For , every entry of is nonnegative and each column sums to one by [F1]. Thus is column-stochastic for every , and its induced matrix -norm is one. Every entry of lies in , so each of the finitely many coordinate series converges by comparison with [F4]; their limits give convergence of the matrix partial sums in this finite-dimensional norm. The matrix series therefore exists; its finite partial sums satisfy , whose remainder norm tends to zero by [F5]. The same identity with multiplication on the other side shows .
By [F1], for each coordinate of , the triangle inequality gives , because .
The recurrence in [F1] and the matrix definition in [F2] give , hence . The inverse identity therefore yields .
Since by [F4] and column-stochasticity, combine step 2.1 with step 1.2 to obtain the claimed -norm bound.
Performance-difference identity for an arbitrary bounded baseline
Statement
Let a finite discounted CMDP, a bounded transition signal , a bounded function , and stationary policies be given. All sums below over range over , respectively. For a policy define
Put
Then the exact performance-difference identity is
Statement references
Finite CMDP data and finite-time state masses.
Expected discounted-cost feasibility constraint: The expected discounted transition-signal sum .
Normalized discounted state occupancy: The normalized discounted state occupancy .
Probability mass and boundedness facts used to justify the discounted series.
Achiam et al., Constrained Policy Optimization, supplementary material, Appendix 10.1.
Facts & Assumptions
Given: A finite discounted CMDP, bounded and , stationary policies , and .
Finite discounted constrained Markov decision process: the finite-time state masses obey the one-step transition recurrence with joint masses .
Expected discounted-cost feasibility constraint: is the discounted series of finite sums of against the time- transition masses.
Normalized discounted occupancy is a probability distribution: every is a probability distribution, and every bounded transition-signal discounted series is absolutely convergent.
Proof
Fix a policy . For each , let be the finite transition-mass sum of at time , and let . By [F1] and the definition of , the finite sum of at time is . Summing after multiplication by for telescopes to .
The remainder satisfies by [F4] and [F5]. Also , so [F4] makes its discounted series convergent. Passing to the limit in step 1.1 and using [F2]–[F3] gives .
Apply the identity in step 2.1 to and and subtract; the initial terms cancel. Add and subtract . The first resulting term is by its definition, and the second is . Dividing by gives the claimed identity.
Policy performance bound by average divergence
Statement
Let a finite discounted CMDP, a bounded transition signal , a bounded function , and stationary policies be given. For each state define
Set and
where . Then
These total-variation bounds are choice-free. Under the additional Axiom of Choice, define
using natural logarithms and when the first action law is not absolutely continuous with respect to the second. The same inequalities hold after replacing by ; when the average KL is infinite, these KL-form inequalities are interpreted as the trivial extended bounds . Taking gives the reward bound, and taking gives the corresponding bound for each discounted cost.
Statement references
The finite transition model, bounded signals, initial law, and discount.
Expected discounted-cost feasibility constraint: The expected discounted signal objective .
Normalized discounted state occupancy: The normalized occupancy .
The AC-conditional finite-action Pinsker/Jensen bound.
The resolvent estimate for the change of discounted state occupancy.
Performance-difference identity for an arbitrary bounded baseline: The exact performance-difference identity for arbitrary bounded .
Achiam et al., Constrained Policy Optimization, §5.1.
Achiam et al., Constrained Policy Optimization, supplementary material, Appendix 10.1.
Facts & Assumptions
Given: A finite discounted CMDP, bounded transition signal , bounded function , stationary policies , and .
The Axiom of Choice: AC is used only in the KL branch, through the Pinsker theorem and the directional KL definition; the total-variation proof below is choice-free.
Finite discounted constrained Markov decision process: the state and action sets are finite and nonempty, the transition/reward mass is normalized, and is bounded.
Expected discounted-cost feasibility constraint: is the expected discounted transition-signal series.
Normalized discounted state occupancy and Normalized discounted occupancy is a probability distribution: is the normalized discounted state occupancy and is a probability distribution.
Finite-action average total variation is bounded by average KL: under AC, the same weighted average of finite-action total variations is at most the square root of half the weighted directional KL.
Proof
By [F1] and [F3], is finite, are probability distributions, and each finite sum defining is bounded by ; hence is finite. By [F2], the returns are the defined bounded-signal discounted sums. The identity [F4] writes their difference as plus the remainder . The triangle inequality gives .
Substitute [F5] into the remainder bound in step 1.1. The resulting error is at most , which gives the two total-variation inequalities.
Assume AC. If , the stated extended KL inequalities are immediate. Otherwise [F6] bounds the average total variation in step 2.1 by . Replacing the nonnegative error term by this upper bound gives the two KL-form inequalities. This step alone uses AC; steps 1.1–2.1 do not.
Sample-based constrained policy optimization update
Definition
Assume the Axiom of Choice for the theoretical average-KL comparison, and let a finite discounted CMDP have cost signals with thresholds . Let be a stationary policy family on an open set with fixed common support, where and the current parameter lies in . Assume its policy coordinates are twice continuously differentiable on a neighborhood of . Choose a trust radius , a backtracking factor , and a finite backtracking budget . At iteration , the finite data batch consists of rows from trajectories generated in the CMDP under the current policy , where , , and . The advantage estimates are real numbers held fixed during the update, and the batch also includes real baseline-cost estimates . The weights and estimates may come from any fixed rollout or critic estimator; this procedure assumes no accuracy property for them. It specifies the exact finite-data trust-region subproblem and line search; implementations that approximate the subproblem solve are discussed separately.
For every , define the finite sample surrogates
and . Put , , , and . The update procedure is:
-
If is not symmetric, or if some nonzero satisfies , return
no-step. Otherwise form the local quadratic program -
If this program is feasible, let be its lexicographically least global maximizer. The feasible set is a closed subset of the compact ellipsoid, so the maximizer set is nonempty and compact. Minimize the first coordinate on that set, restrict to its nonempty compact minimizers, and repeat for each coordinate; the resulting point is the lexicographically least maximizer. If the program is infeasible and , compute . If , return
no-step, since the linearized cost cannot be reduced. Otherwise by positive definiteness, and use the cost-recovery proposal . If the program is infeasible and , returnno-step. -
For , set . Accept the first in the policy family's parameter domain for which and every sample cost estimate is at most . If no candidate passes this sample check, return
no-step; otherwise output the accepted parameter as .
For finite constants , optional nonnegative bounded transition signals may be included in the supplied cost-advantage and baseline estimates by estimating the shaped costs . The exact theorem concerns exact policies and expectations; the line search above checks only the supplied sample estimates.
Definition references
Every family of nonempty sets has a choice function; AC is required for the theorem's KL branch.
The finite CMDP model and bounded transition signals.
The expected discounted cost and its threshold.
The value and advantage quantities estimated by the supplied critic.
A differentiable stationary policy family with fixed common support and score vectors.
The state distribution targeted by the discounted sample weights.
The exact policy-return bound that motivates the trust-region constraint; its KL branch assumes AC.
Achiam et al., Constrained Policy Optimization, §5.3 and §§6.1–6.3.
The sample CPO update has a well-defined proposal and finite backtracking search
Statement
Under the inputs and assumptions of the sample-based constrained policy
optimization update, with finite parameter dimension and nonnegative
integer backtracking budget , the update has a unique mathematical output,
either no-step or an accepted parameter. Its proposals satisfy these properties.
If its matrix is symmetric positive definite and its local quadratic program is feasible, the program has a nonempty compact global-maximizer set and a unique lexicographically least global maximizer. This is the proposal selected by the update and satisfies every linearized cost constraint and the quadratic trust-region constraint.
If the program is infeasible with one cost and , the inverse used
by the update exists, , and its recovery proposal is
It is the unique minimizer of on ,
satisfies , and decreases the linearized cost by
. It need not make the infeasible cost constraint feasible.
The non-positive-definite, zero-recovery-gradient and multiple-cost infeasible
branches return no-step as specified.
Once the specified exact subproblem decisions and operations have been
performed, backtracking terminates after at most candidate tests.
It returns the first passing candidate, which belongs to the parameter
domain and satisfies the empirical KL and all empirical cost tests, or
returns no-step if none passes. These are well-definedness and finite-search
properties of the exact mathematical update. They do not bound the cost of
exact feasibility/optimization operations or certify the true expected costs,
exact population KL, policy improvement, or convergence of sampled iterates.
Statement references
Facts & Assumptions
Given: The complete inputs and hypotheses of the algorithm, its real sample coefficients , radius , factor , and finite integer budget . The algorithm's Axiom of Choice hypothesis for its theoretical KL comparison is retained; the finite-dimensional proposal argument below makes no additional use of choice.
Sample-based constrained policy optimization update specifies all proposal branches, the lexicographic tie rule and the ordered sample-test search.
A definite quadratic form has a uniform signed bound on the Euclidean unit sphere gives with on the unit sphere for a positive definite quadratic form in positive dimension.
Heine-Borel in : with the Euclidean metric a subset of is compact if and only if it is closed and bounded, and the proof by bisection uses no choice principle; the same holds on the real line makes a closed bounded Euclidean set compact, and A closed subset of a compact metric space is compact preserves compactness under closed restriction.
A continuous real-valued function on a nonempty compact metric space is bounded and attains a greatest and a least value gives attained maxima and minima for a continuous real function on a nonempty compact metric space.
Invertible matrix theorem: invertibility, full pivot rank, RREF , trivial nullspace and unique solvability are equivalent makes a square real matrix with trivial nullspace invertible.
Cauchy-Schwarz with its equality case, the triangle inequality for , the parallelogram law and polarisation and The Euclidean inner product on give Euclidean Cauchy–Schwarz, the triangle inequality, coordinate bounds and bilinear norm identities.
Proof
First consider and symmetric positive definite . By homogeneity, [F2] gives for all , with zero handled directly. Put . Coordinate bounds in [F6] and the identity give , so the quadratic form is continuous. The ellipsoid is therefore closed and contained in the ball of radius , hence compact by [F3]. Each linear functional is continuous because . Thus the feasible set is a closed subset of , and is compact.
If is nonempty, [F4] gives an attained maximum of on . Its maximizer set is nonempty and compact by closedness and [F3]. Successively for coordinates , let be the minimum of coordinate on and set . Each minimum exists by [F4], and each restriction remains nonempty and compact by [F3]. After restrictions all coordinates are fixed, so is a singleton. For any other maximizer, the first coordinate where it differs from this singleton must be greater, by the construction of that coordinate's minimum. The singleton is therefore exactly the unique lexicographically least maximizer. As a member of , it satisfies all stated constraints.
If , then and positive definiteness forces . Thus [F5] supplies . In the single-cost recovery branch write , . Then , and . For every , nonnegativity of the quadratic form at gives , using symmetry. Consequently . For , direct substitution gives and , attaining the bound. If another point attains it, equality in the preceding inequalities gives , hence by positive definiteness. The recovery proposal is therefore unique, and its linearized cost is . Since it is the minimum over , infeasibility implies that this last value is strictly positive, rather than implying feasibility.
The remaining proposal branches are the explicit returns in [F1]: non-positive-definite , infeasible single-cost problem with , and infeasible problem with all return no-step. If , the only parameter displacement is the zero vector, so a feasible program has that unique maximizer, and in the infeasible case all and one of the specified no-step branches applies. Thus zero dimension introduces no missing proposal case. Together with steps 2.1 and 2.2, every branch either gives one uniquely specified proposal or returns no-step.
For a proposal , the candidates for integer form a prescribed ordered list of points. The parameter-domain check precedes evaluation of the policy tests, so no value outside the domain is required. On the domain, the finite common-support policy probabilities define the empirical KL and surrogates in [F1]. Either there is a least passing index in this finite list, or there is none; [F1] returns its candidate or no-step, respectively. Inspecting successive indices therefore terminates in at most candidate tests. The definition of passing supplies exactly the stated sample inequalities. All choices and returns are single-valued by steps 2.1, 2.2 and 3.1 and this least-index rule, establishing the asserted output and finite-search properties. No step in this argument compares the sample estimates to population expectations.
Remarks
The source's practical approximate CPO implementation motivates the quadratic program and the recovery direction. This lemma proves properties of the library's explicitly specified exact finite-data update, including its local lexicographic tie rule and finite search budget. It does not attribute those additional conventions or their proof to the paper.
Practical CPO updates do not inherit exact safety guarantees automatically
Remarks
An expected discounted-cost constraint controls an expectation. It bounds the probability of a specified pathwise violation only when the cost signal is linked to that event; by itself it does not guarantee pathwise safety or safe exploration. The performance theorem concerns exact policy returns. Its total-variation branch is choice-free, while its average-KL branch assumes the Axiom of Choice. The practical CPO update instead uses sample estimates, a linearized reward/cost objective, a second-order KL approximation, conjugate-gradient solves, and a backtracking line search against sample-estimated constraints. Optional nonnegative cost shaping changes the constrained signal but supplies no error bound for the sample estimates or numerical solves. Consequently, the ideal theorem does not by itself certify the sampled iterates' true costs or imply convergence of the implementation; this remark asserts no such guarantee.
4 · Examples, counterexamples and false statements
None yet.
Sources
- Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel, Constrained Policy Optimization, PMLR 70 (2017)
- Eitan Altman, Constrained Markov Decision Processes
- Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel, Constrained Policy Optimization, supplementary material
- Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel, Constrained Policy Optimization, PMLR 70 (2017), main paper
- Joshua Achiam, David Held, Aviv Tamar, and Pieter Abbeel, Constrained Policy Optimization, PMLR 70 (2017), supplementary material
- Achiam et al., Constrained Policy Optimization, Sections 6.1–6.3