Corrections, copies and reward transport for transition matrices #
Let C be the transition matrix of a finite Markov chain that may stop (its rows sum to at most
one), and let e be a reward collected when it stops. The expected reward p from each state
solves (1 - C) p = e; when C is nilpotent, p = (1 - C)⁻¹ e. For the time-layered
configuration graph of a randomized machine, p is the vector of acceptance probabilities.
This file develops the exact algebra of a hierarchy that shrinks the entries of C while keeping
p recoverable, following the OpenAI preprint (2026-09-23), Section 4, idea 2 and the deterministic
part of idea 4 in issue #474 [OAI26e]. The estimates that choose the corrections and
the copies (factorial truncation, detectors) are not part of this file.
- Correction. For any matrix
E, the corrected matrixD = C - E + E Csatisfies1 - D = (1 + E) (1 - C)(one_add_mul_one_sub_eq_one_sub, a ring identity). So the samepsolves(1 - D) p = (1 + E) e(Matrix.one_sub_correction_mulVec): the correction moves transition weight into the rewarde + E e. When1 + Eis invertible, for example whenEis strictly upper triangular,(1 - D)⁻¹ (e + E e) = (1 - C)⁻¹ e(Matrix.inv_one_sub_correction_mulVec). IfE ≥ 0and the rows ofCsum to at most one, the rows ofDsum to at most as much (Matrix.correction_mulVec_one_le). - Copies. A vertex
xis replaced by copies(x, i), weighted byr i x, and an entryD x yis split among the copies ofyin proportionss x y j(Matrix.copySplit). If the weighted proportions sum to one on the support ofD, the projectionMatrix.copyWeight rintertwines the two matrices:copySplit r s D * copyWeight r = copyWeight r * D(Matrix.copySplit_mul_copyWeight). - Reward transport. Iterating, a sequence of stages with transition matrices
C l, correctionsE land projectionsP lsatisfyingC (l + 1) * P l = P l * D lcarries the cumulative projectionMatrix.copyProjectionand the transported rewardMatrix.rewardTransport, withC l * Pc l = Pc l - B l * (1 - C 0)(Matrix.mul_copyProjection). Hence the stage-lrewardW l = B l eequalsPc l p - C l Pc l p(Matrix.rewardTransport_mulVec). At a vertexz lreached fromz 0by primary copies only, the transported reward underestimatesp (z 0)by at most the row sum ofC l(Matrix.sub_rewardTransport_mulVec_mem_Icc), so by at most|A l| * ε lwhen the entries ofC lare at mostε land its nonzero columns lie inA l(Matrix.sub_rewardTransport_mulVec_le_card_mul). With the paper's per-stage rates (entries shrink by2 ^ (c + 1), active columns at most double) this is the stage bound0 ≤ p (z 0) - W l (z l) ≤ n / 2 ^ (c l)(Matrix.sub_rewardTransport_mulVec_le_pow).
Strictly upper triangular matrices (Matrix.IsStrictUpperTriangular) and the bounds for
nonnegative matrices acting on vectors (Matrix.mulVec_nonneg, Matrix.mulVec_le_one) are general
and live in CslibFrontier.Foundations.LinearAlgebra.Matrix.StrictUpperTriangular and
CslibFrontier.Foundations.LinearAlgebra.Matrix.NonnegMulVec.
Main definitions #
Matrix.copySplit,Matrix.copyWeight: a copy step and its weighted projection.Matrix.copyProjection,Matrix.rewardTransport: cumulative projections and rewards of a sequence of stages.
Main results #
one_add_mul_one_sub_eq_one_sub:(1 + e) (1 - c) = 1 - (c - e + e c)in any ring.Matrix.one_sub_correction_mulVec,Matrix.inv_one_sub_correction_mulVec: the expected reward ofCis the expected corrected reward ofC - E + E C.Matrix.correction_mulVec_one_le: nonnegative corrections do not increase row sums.Matrix.copySplit_mul_copyWeight: a copy step intertwines with its projection.Matrix.copySplit_isStrictUpperTriangular: a copy step stays strictly upper triangular for the lexicographic order on the copies.Matrix.mul_copyProjection,Matrix.rewardTransport_mulVec: the reward transport identity.Matrix.rewardTransport_mulVec_nonneg,Matrix.rewardTransport_mulVec_le: the stage rewards lie between0and the projected solution.Matrix.sub_rewardTransport_mulVec_mem_Icc,Matrix.sub_rewardTransport_mulVec_le_card_mul,Matrix.sub_rewardTransport_mulVec_le_pow: the transported reward is a lower bound with error controlled by the last transition matrix.
References #
- OpenAI, Exact Derandomization of Logarithmic Space: L = RL = BPL, Section 4 (preprint, not peer reviewed)
Corrections preserve the expected reward. Correcting C to C - E + E * C turns the
equation (1 - C) p = e into (1 - D) p = (1 + E) e for the same p: the weight removed from
the transitions reappears in the reward [OpenAI2026LogSpace, Section 4].
The corrected inverse. When 1 + E is invertible, the expected reward
(1 - C)⁻¹ e of C equals the expected reward of the corrected matrix C - E + E * C with the
corrected reward e + E e.
The corrected inverse for a strictly upper triangular correction.
Corrections do not increase row sums. If E ≥ 0 and the rows of C sum to at most one,
then each row of C - E + E C sums to at most the corresponding row of C. This says nothing
about the signs of the entries of C - E + E C; their nonnegativity depends on how E is
chosen [OpenAI2026LogSpace, Lemma 4.4].
A copy step. Each vertex x gets copies (x, i) with row weights r i x, and the entry
D x y is split among the copies (y, j) of its target in proportions s x y j. In the
preprint the proportions depend only on the size of D x y, and the copies beyond a primary one
are activated only at targets where the correction was suppressed
[OpenAI2026LogSpace, Section 4.4].
The copy projection from copies to their parents, weighted by r: the copy (x, i) maps
to x with weight r i x.
Copies intertwine with their projection. If, on every nonzero entry D x y, the
proportions s x y j weighted by r j y sum to one, then splitting D into copies and
projecting back agrees with projecting first: copySplit r s D * copyWeight r = copyWeight r * D [OpenAI2026LogSpace, Proposition 4.5].
Copies stay strictly upper triangular for the lexicographic order on the copies: (x, i)
comes before (y, j) when x < y, or x = y and i < j. Indexed by Lex (V × ι), which is
linearly ordered when V and ι are, a copy step of a strictly upper triangular matrix can be
corrected and copied again. Only the order of the parents matters: an entry from (x, i) to
(y, j) vanishes unless x < y.
Copies keep row sums at most one when the weights lie in [0, 1], D is nonnegative
with row sums at most one, and the proportions of each entry sum to at most one. Together with
Matrix.copySplit_nonneg this makes the copy step substochastic.
The cumulative projection of a sequence of stages with projections
P l : Matrix (V (l + 1)) (V l) R: the product P (l - 1) * ⋯ * P 0, from stage l to
stage 0.
The transported reward matrix of a sequence of stages with projections P l and
corrections E l: B (l + 1) = P l * (1 + E l) * B l, starting from B 0 = 1. Applied to the
initial reward e, it gives the stage-l reward B l e.
The reward transport identity. If each stage's transition matrix intertwines with the
corrected matrix of the previous stage, C (l + 1) * P l = P l * (C l - E l + E l * C l), then
C l * Pc l = Pc l - B l * (1 - C 0) for the cumulative projection Pc and the transported
reward matrix B [OpenAI2026LogSpace, Proposition 4.7].
The transported reward. If p solves (1 - C 0) p = e, the stage-l reward is
B l e = Pc l p - C l (Pc l p): the projected solution minus what the remaining transitions
still carry [OpenAI2026LogSpace, Proposition 4.7].
The stage rewards are updated by adding the correction's contribution and projecting:
W (l + 1) = P l (W l + E l W l).
Along primary copies z l, whose rows of P l are unit vectors, the cumulative projection
reads off the original coordinate.
The cumulative projection of substochastic projections is substochastic.
The stage rewards are nonnegative when the projections, the corrections and the initial reward are [OpenAI2026LogSpace, Proposition 4.7].
The stage rewards are bounded by the projected solution, hence by one. For the lower bound
see Matrix.rewardTransport_mulVec_nonneg.
The stage error. Along primary copies z l, the stage-l reward underestimates the
solution at z 0 by at most the row sum of C l at z l
[OpenAI2026LogSpace, Proposition 4.7].
The stage error, by counting. If the entries of C l are at most ε and its nonzero
columns lie in A, the stage-l reward along primary copies underestimates the solution by at
most |A| ε.
The stage bound. If the entries of C l are at most (2 ^ (c + 1))⁻¹ ^ l and its
nonzero columns lie in a set of at most 2 ^ l * n vertices, then along primary copies
0 ≤ p (z 0) - W l (z l) ≤ n * (2 ^ c)⁻¹ ^ l. With n the number of vertices of stage 0,
this is the preprint's bound |V₀| 2 ^ (-(H - 1) l) for H = c + 1
[OpenAI2026LogSpace, Proposition 4.7].