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 — Examples

1 · Prerequisites

2 · Logical flowchart

3 · Definitions, theorems and proofs

None yet.

4 · Examples, counterexamples and false statements

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A bootstrapped critic can bias the first actor update

Example

Let S={s,x0,x1,d}, terminal set S†={d}, reward set R={0}, A(s)={0,1}, and A(x0)=A(x1)=A(d)={∗}. From (s,0) transition deterministically to (x0,0); from (s,1) transition deterministically to (x1,0); from either xi transition to (d,0); and from d transition to (d,0). All unlisted joint masses are zero. Start at s and use discount γ=1/2. For θ∈(0,1), let πθ(1∣s)=θ, πθ(0∣s)=1−θ, and choose the only available action at every other state. Run the algorithm from initial actor parameter θ0=1/2. Use open critic-parameter domain W=R4, with coordinate order (ws,wx0,wx1,wd), and differentiable critic V^w(z)=wz at initial vector (ws,wx0,wx1,wd)=(0,0,1,0). With actor step size α=1/4, critic step size β=0, and the one-step actor update Δθ=αI0δ0∇θlog⁡πθ(A0∣S0), where I0=1 and δ0=R1+γV^w(S1)−V^w(S0), the true start-state objective is J(θ)=0 for every θ, but the expected first actor increment is 1/8. Each possible first actor update remains in (0,1). The episode reaches d after two decisions; at its second decision the only action at x0 or x1 has score zero, and β=0 leaves the critic unchanged, so all updates remain in U=(0,1) and W. Thus this bootstrapped critic produces a biased first actor update.

Facts & Assumptions

Given: The finite MDP and policies in the Example, θ=1/2, the stated critic values, and the one-step actor-critic update.

[F1]

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.

[F2]

Differentiable stationary stochastic policies and score vectors: on the common positive support, ψθ(s,a)=∇θlog⁡πθ(a∣s).

[F3]

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.

[F4]

One-step episodic actor–critic with a bootstrapped critic: at time t, the actor increment is αItδt∇θlog⁡πθ(At∣St) with I0=1 and δt=Rt+1+γV^w(St+1)−V^w(St), setting the terminal continuation to zero; proposed updates are required to stay in the open parameter domains.

[F6]

The total (Fréchet) derivative Df(a) as the linear first-order approximation with o(∥h∥2) 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.

1.1givenF1F3F6algebra

Every reward in this MDP is zero and the episode reaches d in two decisions, so its total return is zero for every sampled action sequence. Hence J(θ)=0 for every θ∈(0,1) and ∇θJ(1/2)=0 by [F6].

1.2givenF2F5algebra

At θ=1/2, the score at s is ∇θlog⁡θ=2 for action 1 and ∇θlog⁡(1−θ)=−2 for action 0, by [F2] and [F5].

2.1givenF4step 1.2algebra

If A0=0, then S1=x0 and δ0=0+(1/2)⋅0−0=0, so the first actor increment is zero. If A0=1, then S1=x1 and δ0=0+(1/2)⋅1−0=1/2, so the first increment is (1/4)⋅1⋅(1/2)⋅2=1/4 by [F4] and step 1.2. Both proposed values, 1/2 and 3/4, are in the policy domain (0,1). At the second decision the unique action at xi has score zero, and β=0 leaves the critic unchanged; the second updates therefore remain in (0,1)×W and the next state is terminal d. This verifies within-episode admissibility and finite termination.

3.1givenstep 1.1step 2.1algebra∎

The two actions each have probability 1/2, so the expected first actor increment is (1/2)⋅0+(1/2)⋅(1/4)=1/8. This differs from the true gradient 0 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

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

One-step Bernoulli REINFORCE has the exact expected gradient

Example

Let S={s,d}, terminal set S†={d}, reward set R={0,1}, A(s)={0,1}, and A(d)={∗}. From (s,1) transition deterministically to (d,1); from (s,0) transition deterministically to (d,0); from (d,∗) transition deterministically to (d,0). All unlisted joint masses are zero. Start at s and use discount 0≤γ<1. For θ∈(0,1), let πθ(1∣s)=θ, πθ(0∣s)=1−θ, and choose the only action at d. An episode has one decision, G0=R1, and J(θ)=Eθ[G0]. The unscaled sample direction used by frozen-policy REINFORCE for this episode is Z=γ0G0∇θlog⁡πθ(A0∣s). For every θ∈(0,1), Eθ[Z]=∇θJ(θ)=1.

Facts & Assumptions

Given: The finite one-decision MDP, θ∈(0,1), the policy family, and the estimator Z in the Example.

[F1]

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.

[F2]

Differentiable stationary stochastic policies and score vectors: πθ has fixed positive support on {0,1} and its score is the gradient of the log action probability.

[F3]

Episodic returns, temporal-difference errors, and policy support: the episode return is the discounted sum from the current time to the terminal time.

[F4]

Episodic REINFORCE with a frozen episode policy: the policy is held fixed while an episode is sampled, and the unscaled sample direction is ∑t<TγtGt∇θlog⁡πθ(At∣St); the parameter increment multiplies this direction by the chosen step size.

[F6]

Verification

Given: The Example data and facts above.

1.1givenF1F3F6algebra

Action 1 occurs with probability θ and gives reward 1, while action 0 occurs with probability 1−θ and gives reward 0. By [F3], this one-decision episode has G0=R1, so its expected return is J(θ)=θ and ∇θJ(θ)=1 by [F1] and [F6].

1.2givenF2F5algebra

By [F2] and [F5], the score is 1/θ when A0=1 and −1/(1−θ) when A0=0.

2.1givenstep 1.1step 1.2F4algebra∎

When A0=1, Z=1/θ; when A0=0, Z=0. Hence Eθ[Z]=θ(1/θ)+(1−θ)0=1, 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

ExampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

A state baseline can eliminate this estimator's variance

Example

Use the one-decision MDP with states {s,d}, terminal state d, actions {0,1} at s, one action at d, and deterministic transitions from (s,1) to (d,1), from (s,0) to (d,0), and from d to (d,0). All unlisted joint masses are zero. Choose discount 0≤γ<1. For θ∈(0,1), set πθ(1∣s)=θ and πθ(0∣s)=1−θ, and start at s. At θ=1/2, the true objective is J(θ)=θ with gradient 1. Let Z=G0∇θlog⁡πθ(A0∣s) be the unscaled REINFORCE sample direction, and use the action-independent state baseline b(s)=1/2. Then Z has variance 1, while Zb=(G0−b(s))∇θlog⁡πθ(A0∣s) is identically 1 and has variance 0; both have expectation 1.

Facts & Assumptions

Given: The stated finite one-decision MDP, 0≤γ<1, θ=1/2, the REINFORCE estimator, and the fixed baseline b(s)=1/2.

[F1]

Finite Markov decision process with joint reward-transition law: each state-action pair has the specified normalized joint reward-transition law.

[F2]

Differentiable stationary stochastic policies and score vectors: the policy has fixed positive support and score ∇θlog⁡πθ(a∣s) on the support.

[F3]

Episodic returns, temporal-difference errors, and policy support: the one-step discounted return is G0=R1.

[F4]

Episodic REINFORCE with a frozen episode policy and Episodic REINFORCE with a fixed state baseline: the unscaled sample directions are G0ψ0 and (G0−b(S0))ψ0 respectively; each parameter increment multiplies its direction by the chosen step size.

[F5]

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.

[F7]

Verification

Given: The Example data and facts above.

1.1givenF1F2F3F6F7algebra

At θ=1/2, the two actions have probability 1/2 and scores 2 and −2 by [F2] and [F6]. The specified deterministic reward-transition law [F1] and return convention [F3] give G0=A0 and J(θ)=θ, so the true gradient is 1 by [F7].

2.1givenstep 1.1algebra

Without a baseline, Z=2 when A0=1 and Z=0 when A0=0. Therefore E[Z]=1 and Var⁡(Z)=12(2−1)2+12(0−1)2=1.

2.2givenstep 1.1F4algebra

With b(s)=1/2, the baseline-adjusted value is (1−1/2)2=1 when A0=1 and (0−1/2)(−2)=1 when A0=0. Thus Zb=1 surely, so E[Zb]=1 and Var⁡(Zb)=0.

3.1step 1.1step 2.1step 2.2F5algebra∎

The two estimators have the same expectation, equal to the true gradient in step 1.1, while their variances are 1 and 0 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

CounterexampleConstruction: AI-generatedVerification: AI-generatedjudge pass (gpt-6-luna)Open item page →

Omitting the start-time discount changes the policy gradient

Statement refuted

For the fixed start-state discounted objective J(θ)=vπθ(s0) and returns Gt=∑k=tT−1γk−tRk+1, under episode termination, common-support differentiability, finite expected return/score products, and justified differentiation through the trajectory law, the identity

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

always holds.

Facts & Assumptions

Given: States s0,s1,z, start s0, terminal set {z}, discount γ=1/2, one action at s0 leading to s1 with reward 0, and actions 0,1 at s1 leading to z with reward equal to the action. At z take one zero-reward self-transition action. For θ∈(0,1), put πθ(1∣s1)=θ, πθ(0∣s1)=1−θ; the single-action policies at the other states have probability one. The episode is the two-point probability space of terminal paths with masses θ,1−θ.

[F1]

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.

[F2]

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 Gt=∑k=tT−1γk−tRk+1.

1.1givenF1F2algebra

Every episode has T=2, R1=0 and R2=A1. The given deterministic transition masses are normalized, and the displayed policy probabilities are normalized and positive on fixed support for every θ∈(0,1). 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.

2.1givenF2F3step 1.1algebra∎

The objective is J(θ)=Eθ[R1+γR2]=θ/2, so ∇J(θ)=1/2. The time-zero score is zero. At time one the score is 1/θ on action 1 and −1/(1−θ) on action 0, while G1=A1. Hence the claimed right-hand side is θ(1/θ)+(1−θ)0=1≠1/2. Including the missing factor γ1 changes this expectation to 1/2, as required.