Correction atoms with an incoming gate #
A correction atom represents an entry Q (G x y / f) · g₀(y) of a correction matrix as the
conditional mean of a bounded table, like the dense atoms of
CslibFrontier.Computability.LogSpaceDerandomization.StochasticAtom. Its table also has few nonzero
entries in each column. That bound is what lets later error estimates sum over the sources of a
column. This is idea 6 in issue #474, following the OpenAI preprint
[OpenAI2026LogSpace, Sections 5.3 and 5.5].
The incoming gate. A draw is a pair (s, t) of independent seeds: s for the start channel
X, which retains sources, and t for the terminal channel (rank channel Y, usage channel
Yt). The auxiliary score of a source x' at column y is I (G x' y / f, rank_K {G x' w / f : Y t w}) (Matrix.auxScore). The incoming gate of column y is
τ (rank_{K_c} {aux x' y : X s x'}) (Matrix.incomingGate) [OpenAI2026LogSpace, (5.12)]. The atom
is
1{Yt t y} · Q (G x y / f) · R · T_y / c(q_y) · g₀(y) (Matrix.correctionAtom), where R is the
row gate of x, T_y the incoming gate, c(q) = max (1/2) (min 1 q), and q_y the conditional
mean of the preparatory value h (G x y / f) · R · T_y given X(x) and Yt(y)
(Matrix.correctionPrep, Matrix.correctionNormalizer) [OpenAI2026LogSpace, (5.13), (5.14)].
The identity [OpenAI2026LogSpace, Lemma 5.3]. The conditional mean of the atom is exactly
Q (G x y / f) · g₀(y) (Matrix.expect_correctionAtom). The row gate fails on at most a quarter
of the conditioning draws, by Matrix.card_filter_rowGate_lt_one_mul_le. The auxiliary score can
exceed the gate's threshold only on a fixed set D of sources, and the incoming gate fails only
if K_c members of D are retained (Matrix.card_filter_incomingGate_lt_one_mul_le). When
g₀(y) ≠ 0, the hypothesis p · #D ≤ B (the preprint's column bound (5.2)) makes this rare too.
When g₀(y) = 0 both sides vanish and no bound on D is needed. Both gates are then full on half
of the draws, and the normalization principle (Finset.expect_mul_div_clip_eq) applies. The
failure bounds use no independence between gates.
The incoming cap [OpenAI2026LogSpace, (5.18), Lemma 5.6]. If I = 1 wherever Q and ρ are
both nonzero, and τ vanishes from g ≤ 1 on, then on every draw a column has fewer than K_c
retained sources with a nonzero atom (Matrix.card_filter_correctionAtom_col_ne_zero_lt). K_c
such sources would all have score one, which closes the incoming gate
(Matrix.incomingGate_eq_zero). Rows have fewer than K nonzero atoms, as for dense atoms
(Matrix.card_filter_correctionAtom_row_ne_zero_lt).
Main definitions #
Matrix.auxScore,Matrix.incomingGate: the auxiliary score and the incoming gate.Matrix.correctionPrep,Matrix.correctionNormalizer,Matrix.correctionAtom: the atom.
Main results #
Matrix.correctionAtom_nonneg: nonnegativity from nonnegative cutoffs and gates.Finset.card_filter_le_card_filter_mul_le: few draws retain many members of a sparse set.Matrix.card_filter_incomingGate_lt_one_mul_le: the incoming gate rarely fails.Matrix.expect_correctionAtom: the correction atom identity.Matrix.abs_correctionAtom_le: the atom is bounded.Matrix.incomingGate_eq_zero,Matrix.card_filter_correctionAtom_col_ne_zero_lt,Matrix.card_filter_correctionAtom_row_ne_zero_lt: the incoming cap and the support bounds.
References #
- OpenAI, Exact Derandomization of Logarithmic Space: L = RL = BPL, Sections 5.1, 5.3 and 5.5 (preprint, not peer reviewed)
Few draws retain many members of a sparse set (Markov's inequality). Let every member
w ≠ x of D be retained on at most a p fraction of the draws in S. Then at most a
(1 + p #D) / K fraction of the draws retain K > 0 members of D. The vertex x itself
contributes at most one per draw.
The preparatory value of a correction atom: h (G x y / f) · R · T_y, with the row gate
R and the incoming gate T_y [OpenAI2026LogSpace, (5.13)].
The normalizer q_y of a correction atom: the mean of the preparatory value over the
draws that retain x in the start channel and y in the usage channel
[OpenAI2026LogSpace, (5.13)].
The correction atom at (x, y) on the draw d = (s, t):
1{Yt t y} · Q (G x y / f) · R · T_y / c(q_y) · g₀(y) [OpenAI2026LogSpace, (5.14)].
The incoming cap [OpenAI2026LogSpace, Lemma 5.6]: if τ vanishes from g ≤ 1 on and at
least K_c > 0 retained sources have auxiliary score at least one at column y, the incoming
gate of y is closed.
The incoming gate rarely fails [OpenAI2026LogSpace, proof of Lemma 5.3]. Let τ be one
through τ₀ ≥ 0 and I vanish when its first argument is at most e, so a score above τ₀
needs a source in D = {x' | e < G x' y / f}. If every member w ≠ x of D is retained on at
most a p fraction of the draws in S, then for every terminal set T the incoming gate is
below one on at most a (1 + p #D) / K_c fraction of S.
The correction atom is bounded: |F(x, y)| ≤ 2 |Q (G x y / f)| |g₀(y)| on every draw,
when the row and incoming gate functions take values in [0, 1].
Row support [OpenAI2026LogSpace, Lemma 5.6]: if Q vanishes through e ≥ 0 and ρ
vanishes from g ≤ e on, then on every draw fewer than K > 0 correction atoms of a row are
nonzero among the vertices the rank channel retains.
Column support: the incoming cap [OpenAI2026LogSpace, (5.18), Lemma 5.6]. Suppose the
auxiliary score is one wherever Q and ρ are both nonzero, and τ vanishes from g ≤ 1 on.
Then on every draw fewer than K_c > 0 retained sources have a nonzero atom in column y:
K_c of them would close the incoming gate, which makes the whole column zero.
The correction atom identity, including zero multipliers [OpenAI2026LogSpace, Lemma 5.3].
Let h = 1 wherever Q ≠ 0; let ρ, τ ∈ [0, 1], with ρ one through η > 0 and τ one
through τ₀ ≥ 0; and let I vanish when its first argument is at most e. Let row x of
G ≥ 0 have mass at most M. Suppose the draws retaining x in X and y in Yt are
nonempty, and two pair bounds hold. Every w ≠ y is retained by Y on at most a c f fraction
of the draws with Yt(y). Every w ≠ x is retained by X on at most a p fraction of the draws
with X(x). If g₀(y) ≠ 0, let the sources that can score satisfy
p · #{w | e < G w y / f} ≤ B. Then, for K ≥ 4 (1 + c M / η) and K_c ≥ 4 (1 + B), the
conditional mean of the atom is exactly Q (G x y / f) · g₀(y).
Nonnegative cutoff and gate values give a nonnegative atom.