Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PilotCorrection

The pilot correction with step-dependent multipliers #

In the correction-and-copy hierarchy of the OpenAI preprint (2026-09-23), Section 4.2, idea 3 in issue #474 [OAI26e], the column multiplier of the cutoff correction is chosen by a pilot: a run of the correction recursion in which the multiplier may decrease from step to step. At step i + 1 the pilot forms its input G = C + Ê_i C, evaluates a column number U G y on it (in the preprint a detector, see CslibFrontier.Computability.LogSpaceDerandomization.ColumnDetector), takes the running maximum M_(i+1) = M_i ⊔ U G, and sets Ê_(i+1) x y = c (G x y) * γ (M_(i+1) y) for a base cutoff c and a nonincreasing γ (Matrix.pilotCorrection, Matrix.pilotMax, Matrix.pilotInput). The actual correction then runs the fixed-multiplier recursion Matrix.cutoffCorrectionIter with the final multiplier γ (M_k y).

All bounds of [OpenAI2026LogSpace, Lemma 4.2] hold for any sequence of corrections that starts at zero and stays between zero and its input, 0 ≤ F (i + 1) ≤ C + F i C (Matrix.IsCorrectionSeq). Both the pilot (Matrix.isCorrectionSeq_pilotCorrection) and the fixed-multiplier recursion (Matrix.isCorrectionSeq_cutoffCorrectionIter) are of this form. For a substochastic C with entries at most f, the i-th correction and the input of step i + 1 have row sums at most i and i + 1 and entries at most i f and (i + 1) f; they are supported within any cover of the support of C, and strictly upper triangular when C is. Since the running maximum only grows and γ is nonincreasing, the actual correction and its inputs are bounded by those of the pilot (Matrix.cutoffCorrectionIter_le_pilotCorrection).

Main definitions #

Main results #

References #

structure Matrix.IsCorrectionSeq {V : Type u_1} [Fintype V] (C : Matrix V V ℝ) (F : ℕ → Matrix V V ℝ) :

F is a correction sequence for C: it starts at zero, and each correction lies between zero and its input, 0 ≤ F (i + 1) ≤ C + F i * C entrywise. The pilot of the preprint, with step-dependent multipliers, and the actual correction, with a fixed multiplier, are both of this form [OpenAI2026LogSpace, Lemma 4.2].

  • zero : F 0 = 0
  • nonneg_succ (i : ℕ) (x y : V) : 0 ≤ F (i + 1) x y
  • le_input (i : ℕ) (x y : V) : F (i + 1) x y ≤ (C + F i * C) x y
theorem Matrix.IsCorrectionSeq.nonneg {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) (i : ℕ) (x y : V) :
0 ≤ F i x y
theorem Matrix.IsCorrectionSeq.input_nonneg {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) (hC0 : ∀ (x y : V), 0 ≤ C x y) (i : ℕ) (x y : V) :
0 ≤ (C + F i * C) x y
theorem Matrix.IsCorrectionSeq.sum_input_le {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) (x : V) :
∑ y : V, (C + F i * C) x y ≤ ↑i + 1 ∧ ∑ y : V, F i x y ≤ ↑i

Row sums of the corrections: the i-th correction of a substochastic C has row sums at most i, and the input of step i + 1 at most i + 1 [OpenAI2026LogSpace, Lemma 4.2].

theorem Matrix.IsCorrectionSeq.sum_le {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) (x : V) :
∑ y : V, F i x y ≤ ↑i
theorem Matrix.IsCorrectionSeq.input_le_mul {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {f : ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) (hCf : ∀ (x y : V), C x y ≤ f) (hf : 0 ≤ f) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) (x y : V) :
(C + F i * C) x y ≤ (↑i + 1) * f

Entries of the inputs: the input of step i + 1 has entries at most (i + 1) f [OpenAI2026LogSpace, Lemma 4.2].

theorem Matrix.IsCorrectionSeq.le_mul {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {f : ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) (hCf : ∀ (x y : V), C x y ≤ f) (hf : 0 ≤ f) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) (x y : V) :
F i x y ≤ ↑i * f

Entries of the corrections: the i-th correction has entries at most i f [OpenAI2026LogSpace, Lemma 4.2].

theorem Matrix.IsCorrectionSeq.input_mem_and_mem {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) {A : Finset V} (hA : ∀ (x y : V), C x y ≠ 0 → x ∈ A ∧ y ∈ A) (i : ℕ) (x y : V) :
((C + F i * C) x y ≠ 0 → x ∈ A ∧ y ∈ A) ∧ (F i x y ≠ 0 → x ∈ A ∧ y ∈ A)

The corrections and the inputs are supported within any set A covering the support of C [OpenAI2026LogSpace, Lemma 4.2].

theorem Matrix.IsCorrectionSeq.mem {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) {A : Finset V} (hA : ∀ (x y : V), C x y ≠ 0 → x ∈ A ∧ y ∈ A) (i : ℕ) (x y : V) (h : F i x y ≠ 0) :
x ∈ A ∧ y ∈ A
theorem Matrix.IsCorrectionSeq.input_mem {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} (hF : C.IsCorrectionSeq F) {A : Finset V} (hA : ∀ (x y : V), C x y ≠ 0 → x ∈ A ∧ y ∈ A) (i : ℕ) (x y : V) (h : (C + F i * C) x y ≠ 0) :
x ∈ A ∧ y ∈ A

The corrections of a strictly upper triangular C are strictly upper triangular [OpenAI2026LogSpace, Lemma 4.2].

theorem Matrix.isCorrectionSeq_cutoffCorrectionIter {V : Type u_1} [Fintype V] {f : ℝ} {C : Matrix V V ℝ} {φ : V → ℝ → ℝ} {θ : ℝ} (hC0 : ∀ (x y : V), 0 ≤ C x y) (hφ0 : ∀ (y : V) (t : ℝ), 0 ≤ φ y t) (hφθ : ∀ (y : V) (t : ℝ), φ y t ≤ max (t - θ * f) 0) (hθf : 0 ≤ θ * f) :

The fixed-multiplier recursion Matrix.cutoffCorrectionIter is a correction sequence when the cutoffs satisfy 0 ≤ φ y t ≤ max (t - θ f) 0 with 0 ≤ θ f.

theorem Matrix.cutoffCorrectionIter_le_of_isCorrectionSeq {V : Type u_1} [Fintype V] {F : ℕ → Matrix V V ℝ} {C : Matrix V V ℝ} {φ : V → ℝ → ℝ} (hC0 : ∀ (x y : V), 0 ≤ C x y) (hφm : ∀ (y : V), Monotone (φ y)) {k : ℕ} (hφF : ∀ i < k, ∀ (x y : V), φ y ((C + F i * C) x y) ≤ F (i + 1) x y) (hF : C.IsCorrectionSeq F) (i : ℕ) :
i ≤ k → ∀ (x y : V), cutoffCorrectionIter φ C i x y ≤ F i x y ∧ (C + cutoffCorrectionIter φ C i * C) x y ≤ (C + F i * C) x y

Comparison with a dominating sequence: if the cutoffs φ y are monotone and the first k steps of F dominate the cutoffs of their own inputs, then the first k iterates of the fixed-multiplier recursion, and their inputs, are at most those of F [OpenAI2026LogSpace, Lemma 4.2].

The pilot #

noncomputable def Matrix.pilot {V : Type u_1} [Fintype V] (c γ : ℝ → ℝ) (U : Matrix V V ℝ → V → ℝ) (C : Matrix V V ℝ) :
ℕ → Matrix V V ℝ × (V → ℝ)

The pilot as a pair of the current correction and the running maximum of the column numbers. Step i + 1 forms the input G = C + Ê_i C, updates the running maximum to M_(i+1) = M_i ⊔ U G, and sets Ê_(i+1) x y = c (G x y) * γ (M_(i+1) y) [OpenAI2026LogSpace, (4.10)–(4.13)].

noncomputable def Matrix.pilotCorrection {V : Type u_1} [Fintype V] (c γ : ℝ → ℝ) (U : Matrix V V ℝ → V → ℝ) (C : Matrix V V ℝ) (i : ℕ) :

The i-th pilot correction Ê_i.

noncomputable def Matrix.pilotInput {V : Type u_1} [Fintype V] (c γ : ℝ → ℝ) (U : Matrix V V ℝ → V → ℝ) (C : Matrix V V ℝ) (i : ℕ) :

The input G = C + Ê_i C of pilot step i + 1; the preprint's G_(i+1).

noncomputable def Matrix.pilotMax {V : Type u_1} [Fintype V] (c γ : ℝ → ℝ) (U : Matrix V V ℝ → V → ℝ) (C : Matrix V V ℝ) (i : ℕ) :
V → ℝ

The running maximum M_i = max (0, U G_1, …, U G_i) of the column numbers after i pilot steps. The pilot multiplier of step i is γ (M_i y).

@[simp]
theorem Matrix.pilotCorrection_zero {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} :
pilotCorrection c γ U C 0 = 0
@[simp]
theorem Matrix.pilotMax_zero {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} :
pilotMax c γ U C 0 = 0
theorem Matrix.pilotMax_succ {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} (i : ℕ) :
pilotMax c γ U C (i + 1) = pilotMax c γ U C i ⊔ U (pilotInput c γ U C i)
theorem Matrix.pilotCorrection_succ_apply {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} (i : ℕ) (x y : V) :
pilotCorrection c γ U C (i + 1) x y = c (pilotInput c γ U C i x y) * γ (pilotMax c γ U C (i + 1) y)
theorem Matrix.pilotMax_mono {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} {i j : ℕ} (hij : i ≤ j) (y : V) :
pilotMax c γ U C i y ≤ pilotMax c γ U C j y

The running maximum grows.

theorem Matrix.exists_lt_pilotInput_of_lt_pilotMax {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} {a : ℝ} (ha : 0 ≤ a) {k : ℕ} {y : V} (h : a < pilotMax c γ U C k y) :
∃ i < k, a < U (pilotInput c γ U C i) y

If the running maximum after k steps exceeds a ≥ 0, some column number U G_(i+1), i < k, does.

theorem Matrix.isCorrectionSeq_pilotCorrection {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} (hC0 : ∀ (x y : V), 0 ≤ C x y) (hc0 : ∀ (t : ℝ), 0 ≤ c t) (hct : ∀ (t : ℝ), 0 ≤ t → c t ≤ t) (hγ0 : ∀ (t : ℝ), 0 ≤ γ t) (hγ1 : ∀ (t : ℝ), γ t ≤ 1) :

The pilot is a correction sequence when the base cutoff satisfies 0 ≤ c t ≤ t for t ≥ 0 and the multipliers lie in [0, 1] [OpenAI2026LogSpace, Lemma 4.2].

theorem Matrix.cutoffCorrectionIter_le_pilotCorrection {V : Type u_1} [Fintype V] {c γ : ℝ → ℝ} {U : Matrix V V ℝ → V → ℝ} {C : Matrix V V ℝ} (hC0 : ∀ (x y : V), 0 ≤ C x y) (hc0 : ∀ (t : ℝ), 0 ≤ c t) (hct : ∀ (t : ℝ), 0 ≤ t → c t ≤ t) (hcm : Monotone c) (hγ0 : ∀ (t : ℝ), 0 ≤ γ t) (hγ1 : ∀ (t : ℝ), γ t ≤ 1) (hγm : Antitone γ) {k i : ℕ} (hik : i ≤ k) (x y : V) :
cutoffCorrectionIter (fun (y : V) (t : ℝ) => c t * γ (pilotMax c γ U C k y)) C i x y ≤ pilotCorrection c γ U C i x y ∧ (C + cutoffCorrectionIter (fun (y : V) (t : ℝ) => c t * γ (pilotMax c γ U C k y)) C i * C) x y ≤ pilotInput c γ U C i x y

The actual correction is at most the pilot. Run the fixed-multiplier recursion with the cutoffs φ y t = c t * γ (M_k y), the final pilot multiplier. For a monotone nonnegative c and a nonincreasing γ, its first k iterates and their inputs are at most the pilot corrections and pilot inputs [OpenAI2026LogSpace, Lemma 4.2].