Alphabeta Math
Pipeline-generated
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

2 · Logical flowchart

3 · Definitions, theorems and proofs

DefinitionDefinition: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Differentiable stationary stochastic policies and score vectors

Definition

Let a finite Markov decision process have nonempty finite state set S and finite nonempty action set A(s) at each state. Let U⊆Rd be open, with d≥1. A differentiable stationary policy family on U is a family of probabilities πθ(a∣s), indexed by θ∈U, s∈S, and a∈A(s), such that ∑a∈A(s)πθ(a∣s)=1, each map θ↦πθ(a∣s) is totally differentiable, and for each s there is a fixed nonempty support B(s)⊆A(s) with πθ(a∣s)>0 for every a∈B(s) and θ∈U, while πθ(a∣s)=0 for every a∉B(s) and θ∈U. The score vector at a supported state-action pair is

ψθ(s,a):=∇θlog⁡πθ(a∣s),a∈B(s),

where the gradient is the Euclidean vector of partial derivatives. The fixed-support condition makes this logarithm defined throughout U on every action that can be sampled.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

A policy score has zero conditional mean before the action

Statement

Assume the Axiom of Choice. Let S be a nonempty finite state set, let each A(s) be a finite nonempty action set, and let p(s′,r∣s,a) be a fixed normalized joint law for the next state and reward. Fix an initial state and a terminal set S†⊆S. 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 t≥0, let Ht=σ(S0,A0,R1,…,At−1,Rt,St) be the information available just before the time-t action, and let ψt=∇θlog⁡πθ(At∣St) when t<T, where T is the first terminal time. Define ψt=0 when t≥T. Then, coordinate by coordinate,

Eθ[ψt∣Ht]=0almost surely for every t≥0.

Facts & Assumptions

Given: The stated finite MDP, initial state, terminal set, differentiable policy family, Axiom of Choice, and its action-state-reward path law.

[A1]

The Axiom of Choice: every family of nonempty sets has a choice function; the path-law construction below is the use of this axiom.

[F1]

Finite Markov decision process with joint reward-transition law: the state, reward, and state-dependent action sets are finite; for each admissible (s,a) the joint masses p(s′,r∣s,a) are nonnegative and sum to one; a stationary policy is a normalized action distribution.

[F2]

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 ψθ(s,a)=∇θlog⁡πθ(a∣s).

[F3]

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.

[F4]

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.

[F5]

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.

[F6]

The sum ∑i∈Sai over a finite index set, and its product form: a finite sum is independent of the enumeration used to compute it.

[F7]

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.

1.1givenA1F1F3algebra

Fix t and a positive-probability atom h of Ht contained in {T>t}, and let s be its current state. By [F3], adjoining action a and next outcome (s′,r) multiplies the mass of h by πθ(a∣s)p(s′,r∣s,a). Summing over the finite next-state and reward sets and using [F1] gives Pr⁡(At=a∣h)=πθ(a∣s). On atoms contained in {T≤t}, ψt=0 by definition; on zero-probability atoms no conditional value is prescribed.

2.1F2F5F6F7step 1.1algebra

Enumerate the finite support as B(s)={a0,…,am−1}. 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 h⊆{T>t} ending at s, the conditional score mean is ∑a∈B(s)πθ(a∣s)∇θlog⁡πθ(a∣s)=∑a∈B(s)∇θπθ(a∣s)=∇θ1=0. The first equality uses positivity on the support and the derivative of the logarithm; the second uses [F5], [F6], and the normalization in [F2].

3.1F1F2F4step 1.1step 2.1algebra∎

To verify that this mean is a conditional-expectation version, note that Ht 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 h of Ht, define Yt to have the constant value Pθ(h)−1∫hψt dPθ; set Yt=0 on every null atom. If h⊆{T>t}, step 1.1 and the displayed calculation show that this value is zero; if h⊆{T≤t}, ψt=0 on h by definition, so the value is again zero. Thus Yt is the zero, integrable, Ht-measurable vector. Every event in Ht is a union of finitely many atoms, and summing the atom integral identities gives ∫EYt dPθ=∫Eψt dPθ for every E∈Ht, including null atoms. This verifies [F4], so Yt is a version of Eθ[ψt∣Ht] and is zero almost surely.

TheoremStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

Discounted episodic policy gradients from trajectory likelihoods

Statement

Assume the Axiom of Choice. Let a finite Markov decision process have nonempty finite state set S, finite nonempty action sets A(s), finite reward set R, and fixed joint transition-reward masses p(s′,r∣s,a). Fix an initial state s0∈S, a terminal set S†⊆S, and 0≤γ<1. Let U⊆Rd be open, let θ0∈U, and let πθ be a differentiable stationary policy family with fixed common support on an open neighborhood U0 of θ0. Suppose every episode from s0 under πθ, for θ∈U0, reaches S† in finite time almost surely. Let T be the first terminal time, let

Gt=∑k=tT−1γk−tRk+1(t<T),GT=0,

and set J(θ)=Vπθ(s0)=Eθ[∑k=0T−1γkRk+1]. Let T 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 τ=(s0,a0,r1,s1,…,am−1,rm,sm)∈T, define

pθ(τ)=∏t=0m−1πθ(at∣st)p(st+1,rt+1∣st,at),Rγ(τ)=∑k=0m−1γkrk+1.

Assume the trajectory masses pθ(τ) are totally differentiable at θ0, the linear map h↦∑τ∈TRγ(τ)Dpθ0(τ)h is defined by an absolutely convergent sum, and there is a summable H:T→[0,∞) that dominates the return-weighted normalized remainders below and for which those remainders tend to zero pathwise:

∣Rγ(τ)∣ ∣pθ0+h(τ)−pθ0(τ)−Dpθ0(τ)h∣∥h∥2≤H(τ),∣Rγ(τ)∣ ∣pθ0+h(τ)−pθ0(τ)−Dpθ0(τ)h∣∥h∥2⟶0

for every τ∈T as h→0, with ∑τ∈TH(τ)<∞.

Also assume

Eθ0 ⁣[∑t<T∑k<Tγk∥ψθ0(St,At)∥2 ∣Rk+1∣]<∞,

where ψθ(s,a)=∇θlog⁡πθ(a∣s) on the common support. Then J is totally differentiable at θ0 and

∇θJ(θ0)=Eθ0 ⁣[∑t=0T−1γt ∇θlog⁡πθ0(At∣St) Gt].

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.

[A1]

The Axiom of Choice: every family of nonempty sets has a choice function; it is used to obtain the policy path law.

[A2]

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.

[A3]

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.

[F1]

Finite Markov decision process with joint reward-transition law: state, action, and reward sets are finite; p(s′,r∣s,a) is a normalized joint next-state/reward law, and the dynamics do not depend on θ.

[F2]

Differentiable stationary stochastic policies and score vectors: each πθ(⋅∣s) is normalized and totally differentiable, with fixed positive support; ψθ(s,a)=∇θlog⁡πθ(a∣s) on that support.

[F3]

Episodic returns, temporal-difference errors, and policy support: the episode stops at its first terminal state, terminates almost surely, and Gt=∑k=tT−1γk−tRk+1 is the return from time t; its initial value is the discounted value on the absorbing extension.

[F4]

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.

[F5]

Finite, countably infinite, countable, uncountable and A natural-number coding of finite sequences: a set is at most countable when it injects into N, and every finite sequence of natural numbers has an injective natural-number code.

[F6]

Chain sum product and composition rules for Banach derivatives: for a bounded bilinear map, D(B(f,g))h=B(Df h,g)+B(f,Dg h).

[F7]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): derivatives of compositions are compositions of total derivatives.

[F9]

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.

[F10]

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.

[F11]

Dominated convergence: pointwise convergence under one integrable majorant permits convergence of the corresponding integrals.

[F12]

Expectation of a nonnegative or integrable random variable: expectation of an integrable real random variable is its finite Lebesgue integral.

Proof

technique · differentiate the finite-trajectory likelihood, then remove rewards earned before each action by the zero-mean score identity
1.1givenF1F3F4F5algebra

If s0∈S†, then T=0, 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 T into N.

1.2F1F2F4F6F7F8algebra

Fix τ=(s0,a0,r1,s1,…,am−1,rm,sm)∈T. 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 Dpθ0(τ)=pθ0(τ)∑t=0m−1ψθ0(st,at). Paths with a zero transition mass or an unsupported action have probability zero throughout U0 and are omitted from T. The empty trajectory has empty product 1 and empty score sum 0.

2.1A1A2F3F4F11F12step 1.2

The episode termination assumption makes the masses of T sum to one, and [F3] identifies J(θ)=∑τ∈Tpθ(τ)Rγ(τ). By [A2] and [F11], the derivative of this series at θ0 is the absolutely convergent sum ∑τRγ(τ)Dpθ0(τ). Substituting step 1.2 shows that, for every direction h∈Rd, DJ(θ0)h=Eθ0[Rγ(τ)⟨∑t<Tψθ0(St,At),h⟩].

3.1A3F9F10F11step 2.1

Expand Rγ=∑k<TγkRk+1. For each k<t, the event t<T and the past reward Rk+1 are Ht-measurable. By [F9] and [F10], each coordinate of E[1{t<T}Rk+1ψt] 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 k<t therefore vanish in step 2.1.

4.1F2F3step 2.1step 3.1algebra∎

The remaining terms have k≥t, and the return definition [F3] gives ∑k=tT−1γkRk+1=γtGt. Hence step 2.1 becomes DJ(θ0)h=⟨Eθ0[∑t=0T−1γtGtψθ0(St,At)],h⟩. Since this holds for every h, the vector inside the inner product is the Euclidean gradient of J at θ0, proving the assertion.

Remarks

The factor γt 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.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

One-step episodic actor–critic with a bootstrapped critic

Definition

Inputs: a finite episodic MDP with nonempty finite state set S, finite nonempty action sets A(s), finite reward set R, joint transition-reward law p, terminal set S†⊆S, and initial state s0∈S; a discount 0≤γ<1; a differentiable stationary policy family πθ with fixed positive support on an open set U⊆Rd; a value approximation V^w:S→R differentiable in w on an open set W⊆Rm; initial parameters (θ0,w0)∈U×W; and step sizes α,β≥0.

Admissible conditions: assume AC for the adaptive episode law; every proposed actor and critic update remains in U and W, respectively, and the episode generated by this procedure, including its within-episode parameter updates, reaches S† 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 (θout,wout) after one episode.

Set (θ,w)=(θ0,w0), S=s0, and I=1. If S∈S†, return (θ0,w0). Otherwise, while S∉S†, using the current pre-update parameters (θ,w):

  1. Sample A∼πθ(⋅∣S) and then sample (S′,R) with joint law p(S′,R∣S,A).
  2. Set C=0 if S′∈S† and C=V^w(S′) otherwise. Compute the temporal-difference error δ=R+γC−V^w(S).
  3. Compute both updates from these pre-update parameters: θ′=θ+αIδ∇θlog⁡πθ(A∣S) and w′=w+βδ∇wV^w(S). Replace (θ,w) by (θ′,w′).
  4. Set I←γI and S←S′.

When the loop ends, return the current (θ,w) as (θout,wout).

The critic uses a one-step bootstrapped target; the actor uses the current TD error and the accumulated start-state discount I=γt. The procedure itself asserts no convergence result.

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.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Episodic REINFORCE with a frozen episode policy

Definition

Inputs: a finite episodic MDP with nonempty finite state set S, finite nonempty action sets A(s), finite reward set R, joint transition-reward law p, terminal set S†⊆S, and initial state s0∈S; a discount 0≤γ<1; a differentiable stationary policy family πθ with fixed positive support on an open set U⊆Rd; an initial parameter θ0∈U; and a step size α≥0.

Admissible conditions: the episode sampled from s0 under the frozen policy πθ0 reaches S† after finitely many transitions almost surely, and the proposed update remains in U.

Output: the updated policy parameter θ1 after one training round.

Hold θ=θ0 fixed while sampling one episode (S0,A0,R1,…,ST) from s0 until its first terminal state; if s0∈S†, take T=0. For each t<T, compute the return Gt=∑k=tT−1γk−tRk+1 and score ψt=∇θlog⁡πθ(At∣St) using θ=θ0. After the episode is complete, set

θ1=θ0+α∑t=0T−1γtGtψt

and return θ1. All returns, scores, and the full sum use the same parameter value θ0 that generated the episode; no policy update occurs while that episode is being sampled.

Remarks

Under the theorem's assumptions, the sample direction ∑t=0T−1γtGtψt has expectation ∇θJ(θ0), including the theorem's trajectory-differentiation and Axiom of Choice premises. The expected parameter increment is therefore α∇θJ(θ0). This identity does not imply convergence of repeated nonlinear or deep parameter updates.

LemmaStatement: Literature-sourcedProof: AI-generatedjudge pass (gpt-6-luna)Open item page →

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 θ0, including the Axiom of Choice, common support, almost-sure finite termination, dominated trajectory differentiation, and the stated integrability of discounted return-score products. Let b:S→R be any fixed finite-valued function of the state, chosen independently of the actions in the episode. Then

Eθ0 ⁣[∑t=0T−1γt(Gt−b(St))∇θlog⁡πθ0(At∣St)]=∇θJ(θ0).

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.

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 b.

[A1]

The Axiom of Choice: every family of nonempty sets has a choice function; the policy trajectory law and conditional-expectation supplier use this axiom.

[F1]

Discounted episodic policy gradients from trajectory likelihoods: under its stated trajectory-differentiation and integrability assumptions, E[∑t<TγtGtψt]=∇J(θ0).

[F2]

A policy score has zero conditional mean before the action: for the pre-action history Ht, E[ψt∣Ht]=0 almost surely.

[F3]

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 θ0 every score vector on the common support is finite; hence the finitely many score vectors are bounded.

[F4]

Episodic returns, temporal-difference errors, and policy support: 0≤γ<1, episodes terminate almost surely, and Gt is the discounted return from time t.

[F5]

Taking out what is known: an integrable variable measurable with respect to Ht can be taken outside conditional expectation when its product is integrable.

[F7]

Dominated convergence: almost-sure convergence under a single integrable majorant permits convergence of expectations.

Proof

Given: The Statement hypotheses, with ψt=∇θlog⁡πθ0(At∣St) for t<T.

1.1givenA1F2F3F5F6algebra

Because S is finite, b is bounded; because the state-action support is finite, [F3] gives Cψ:=max⁡s,a∈B(s)∥ψθ0(s,a)∥2<∞. For every episode, [F6] bounds the baseline-score sum by ∑t<Tγt∣b(St)∣∥ψt∥2≤∥b∥∞Cψ/(1−γ). For each fixed t, 1{t<T}b(St) is Ht-measurable, so [F2] and [F5] give E[γt1{t<T}b(St)ψt]=0.

2.1step 1.1F4F7

The partial baseline-score sums converge almost surely to the full sum because T<∞ 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 E[∑t<Tγtb(St)ψt]=0.

3.1F1step 2.1algebra∎

Subtracting the zero vector in step 2.1 from the policy-gradient expectation in [F1] gives the displayed identity.

AlgorithmAlgorithm: Literature-sourcedProof: Not applicablejudge pass (gpt-6-luna)Open item page →

Episodic REINFORCE with a fixed state baseline

Definition

Inputs: a finite episodic MDP with nonempty finite state set S, finite nonempty action sets A(s), finite reward set R, joint transition-reward law p, terminal set S†⊆S, and initial state s0∈S; a discount 0≤γ<1; a differentiable stationary policy family πθ with fixed positive support on an open set U⊆Rd; an initial parameter θ0∈U; a fixed finite-valued state function b:S→R chosen independently of the episode actions; and a step size α≥0.

Admissible conditions: the episode sampled from s0 under the frozen policy πθ0 reaches S† after finitely many transitions almost surely, and the proposed update remains in U.

Output: the updated policy parameter θ1 after one training round.

Hold θ=θ0 fixed and select b before sampling one complete episode from s0 under πθ0, stopping at its first terminal state; if s0∈S†, take T=0. For each t<T, compute Gt=∑k=tT−1γk−tRk+1, the score ψt=∇θlog⁡πθ(At∣St) using θ=θ0, and the baseline-adjusted return Gt−b(St). After termination, set

θ1=θ0+α∑t=0T−1γt(Gt−b(St))ψt

and return θ1. 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.

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.

4 · Examples, counterexamples and false statements

None yet.

Sources