Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyTaskData

Concrete inputs of hierarchy correction tasks #

The actual correction uses the final pilot multiplier at every iteration. Its raw input is C + Eᵢ C, not the final residual C - E + E C. This module gives these inputs names and connects them to the existing correction-sequence API. In particular, the entry and row-mass bounds needed for fine omission are derived for products of actual correction iterates with nonnegative bins of the stage matrix.

This implements the deterministic input/product part of [OpenAI2026LogSpace, Sections 7.1–7.3, (7.2), Lemma 7.4, printed pp. 33–37], revision 7ef5c0cc. Bin shape bounds remain explicit; correction row mass is proved from the hierarchy construction. Fourth moments replace the source's eighth moments. This does not assemble the stochastic detector/pilot tasks, the full mean-prefix estimate, compression or the recursive estimator.

Main definitions #

Main results #

noncomputable def Matrix.HierarchyParams.correctionIter {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (f : ℝ) (C : Matrix V V ℝ) (i : ℕ) :

Actual correction tasks use the final pilot multiplier, also at intermediate iterations.

noncomputable def Matrix.HierarchyParams.correctionInput {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (f : ℝ) (C : Matrix V V ℝ) (i : ℕ) :

The raw input of the next actual correction, before applying the ramp and multiplier.

theorem Matrix.HierarchyParams.correctionIter_last {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (f : ℝ) (C : Matrix V V ℝ) :
P.correctionIter X Y f C P.k = P.correction X Y f C

The final task agrees with the hierarchy's correction, with no alternative interface.

theorem Matrix.HierarchyParams.correctionIter_succ_apply {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (f : ℝ) (C : Matrix V V ℝ) (i : ℕ) (x y : V) :
P.correctionIter X Y f C (i + 1) x y = f * P.Q (P.correctionInput X Y f C i x y / f) * P.γ (P.pilot X Y f C y)

Actual correction recurrence, in original matrix units.

theorem Matrix.HierarchyParams.isCorrectionSeq_correctionIter {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f : ℝ} {C : Matrix V V ℝ} (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) :

Derive the sequence contract from the actual ramp and final detector multiplier.

theorem Matrix.HierarchyParams.correctionInput_bounds {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f : ℝ} {C : Matrix V V ℝ} (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (i : ℕ) :
(∀ (x y : V), 0 ≤ P.correctionInput X Y f C i x y) ∧ (∀ (x : V), ∑ y : V, P.correctionInput X Y f C i x y ≤ ↑i + 1) ∧ ∀ (x y : V), P.correctionInput X Y f C i x y ≤ (↑i + 1) * f

The actual raw input is nonnegative, has bounded row mass and has the expected entry cap.

theorem Matrix.HierarchyParams.correctionIter_mul_bin_bounds {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f : ℝ} {C : Matrix V V ℝ} (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) {B : Matrix V V ℝ} {b Cb : ℝ} (hB : ∀ (x y : V), 0 ≤ B x y) (hBC : ∀ (x y : V), B x y ≤ C x y) (hcap : ∀ (x y : V), B x y ≤ Cb * b) (hCb : 0 ≤ Cb) (hb : 0 ≤ b) :
(∀ (x y : V), 0 ≤ (P.correctionIter X Y f C i * B) x y) ∧ (∀ (x y : V), (P.correctionIter X Y f C i * B) x y ≤ ↑i * Cb * b) ∧ ∀ (x : V), ∑ y : V, (P.correctionIter X Y f C i * B) x y ≤ ↑i

A bin of the stage matrix is substochastic. Multiplication by the actual correction gives entry cap i * Cb * b and row mass i. These are consequences, not omission certificates.

theorem Matrix.HierarchyParams.correctionIter_mul_bin_omission_le {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f : ℝ} {C : Matrix V V ℝ} {Γ : Type u_4} {Υ : Type u_5} [Fintype Γ] [Fintype Υ] (Xs : Γ → V → Prop) (Yt : Υ → V → Prop) [(γ : Γ) → (x : V) → Decidable (Xs γ x)] [(τ : Υ) → (y : V) → Decidable (Yt τ y)] (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) {N u a b Cu Ca Cb : ℝ} (hN : 0 < N) (hu : 0 < u) (ha : 0 < a) (hb : 0 ≤ b) (hCu : 0 ≤ Cu) (hCa : 0 ≤ Ca) (hCb : 0 ≤ Cb) (hcard : ↑(Fintype.card V) ≤ N) (hXs : ∀ (x : V), ↑{γ : Γ | Xs γ x}.dens ≤ Cu * u) (hYt : ∀ (y : V), ↑{τ : Υ | Yt τ y}.dens ≤ Ca * a) (B : Matrix V V ℝ) (hB : ∀ (x y : V), 0 ≤ B x y) (hBC : ∀ (x y : V), B x y ≤ C x y) (hcap : ∀ (x y : V), B x y ≤ Cb * b) :
(Cslib.rowNormPow 4 N u (fun (σ : Γ × Υ) (x : V) => Xs σ.1 x) (fun (σ : Γ × Υ) (y : V) => Yt σ.2 y) fun (x : Γ × Υ) (x_1 y : V) => (P.correctionIter X Y f C i * B) x_1 y / a) ≤ Cu * Ca * (↑i * Cb) ^ 3 * ↑i * (b / a) ^ 3

Fine omission for a product built from an actual hierarchy correction iterate. The only mass hypotheses concern the bin itself; the correction bounds are discharged here.

theorem Matrix.HierarchyParams.sum_correctionIter_mul_bin_omission_norm_le {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f : ℝ} {C : Matrix V V ℝ} {Γ : Type u_4} {Υ : Type u_5} [Fintype Γ] [Fintype Υ] (Xs : Γ → V → Prop) (Yt : Υ → V → Prop) [(γ : Γ) → (x : V) → Decidable (Xs γ x)] [(τ : Υ) → (y : V) → Decidable (Yt τ y)] (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (i : ℕ) {N u a Cu Ca Cb Ksum : ℝ} (hN : 0 < N) (hu : 0 < u) (ha : 0 < a) (hCu : 0 ≤ Cu) (hCa : 0 ≤ Ca) (hCb : 0 ≤ Cb) (hKsum : 0 ≤ Ksum) (hconstant : Cu * Ca * (↑i * Cb) ^ 3 * ↑i ≤ Ksum ^ 4) (hcard : ↑(Fintype.card V) ≤ N) (hXs : ∀ (x : V), ↑{γ : Γ | Xs γ x}.dens ≤ Cu * u) (hYt : ∀ (y : V), ↑{τ : Υ | Yt τ y}.dens ≤ Ca * a) (M c : ℕ) (hc : 0 < c) (T : Finset ℤ) (b : ℤ → ℝ) (B : ℤ → Matrix V V ℝ) (hb : ∀ h ∈ T, 0 < b h) (hfine : ∀ h ∈ T, h < 0) (homit : ∀ h ∈ T, M ≤ Cslib.LogSpaceEstimation.scaleCutoff c h) (hscale : ∀ h ∈ T, Real.logb 2 (b h / a) = ↑h) (hB : ∀ h ∈ T, ∀ (x y : V), 0 ≤ B h x y) (hBC : ∀ h ∈ T, ∀ (x y : V), B h x y ≤ C x y) (hcap : ∀ h ∈ T, ∀ (x y : V), B h x y ≤ Cb * b h) :
∑ h ∈ T, (Cslib.rowNormPow 4 N u (fun (σ : Γ × Υ) (x : V) => Xs σ.1 x) (fun (σ : Γ × Υ) (y : V) => Yt σ.2 y) fun (x : Γ × Υ) (x_1 y : V) => (P.correctionIter X Y f C i * B h) x_1 y / a) ^ 4⁻¹ ≤ Ksum * (2 ^ (1 / 2 - ↑M / (2 * ↑c)) * (2 / (1 - 2 ^ (-1 / 8)) - 1))

Assemble the actual omitted-product family on the integer slack schedule. Its total fourth-root norm is uniformly summable, with every per-bin product mass bound discharged.