Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyAccess

Stochastic calls in the global hierarchy order #

These are the actual normalized-bin calls of [OpenAI2026LogSpace, Sections 7.1–7.2, (7.1)–(7.3)], revision 7ef5c0cc. Calls specify whole functions, never a retained source vertex or endpoint. The negative correction uses its own scale-f endpoint rank channel; the product-right child resets the entire source tuple. Copy traversal prepends both fixed symbols before inherited suffixes and calls a routed residual bin, rather than expanding a second copy hierarchy. Preparation and normalized-bin constructors belong to HierarchyTask.

The evaluator substitutes arbitrary completed child functions before products or averaging. It has no supplied rank, mean or error certificate. Zero correction iterations read zero; positive iterations read their actual earlier normalized constructor with a finite index. The scalar parameters, including normalization margins, retain the contracts of the existing bounded recipes. These are noncomputable finite functions, with no native complexity claim.

Finite-accuracy pre-incoming classes/caps and port/address enumeration are separate open work. A complete mean-prefix theorem still needs estimated direct/product/negative, routed-copy, second-channel, detector/maximum and reward comparisons, including source release, the full cutoff/gate root and complement regularity ladder, and summable omitted-bin payments. The true-atom means alone do not provide those comparisons. Paired raw differences, full-coordinate walks and summed noise, compression, statistical-budget induction and native workspace/class equality remain open.

Raw constructor whose stochastic first channel is assembled from bins.

The existing global constructor served by a raw sample.

A zero correction is a literal zero constructor; a positive correction reads the normalized child of its preceding finite iteration.

@[simp]

The final positive correction dispatches to the last normalized child, whose zero-based index is the preceding iterate. This structural index is not a precision.

Positive structural size selects its own last normalized index.

structure Matrix.HierarchyParams.HierarchyTask.RawRequests (k : ℕ) (Role : Type u_1) (Symbol : Type u_2) :
Type (max u_1 u_2)

Four distinct whole-function requests; the negative term is present only for residuals.

  • direct : Request k Role Symbol

    Direct normalized base bin.

  • left : Request k Role Symbol

    Left normalized correction on the midpoint role.

  • right : Request k Role Symbol

    Right normalized base bin with midpoint source reset.

  • negative : Option (Request k Role Symbol)

    Negative endpoint correction on its own scale-f rank channel.

def Matrix.HierarchyParams.HierarchyTask.RawRequests.calls {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} (R : RawRequests k Role Symbol) :
List (Request k Role Symbol)

All called functions, retaining distinct requests even when their constructors agree.

def Matrix.HierarchyParams.HierarchyTask.rawRequests {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} (l bin : ℕ) (t : RawTask k) (source midpoint endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b : ℝ) :
RawRequests k Role Symbol

Bin and usage are different endpoint channels: their rates are b and min(a,b). The negative channel has rank rate f, independently of b.

The normalized correction really precedes its target raw input, including iteration zero.

theorem Matrix.HierarchyParams.HierarchyTask.rawRequests_rank_lt {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} (l bin : ℕ) (t : RawTask k) (source midpoint endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b : ℝ) (r : Request k Role Symbol) (hr : r ∈ (rawRequests l bin t source midpoint endpoint b).calls) :

Every stochastic first-channel request decreases the same global constructor rank.

def Matrix.HierarchyParams.HierarchyTask.routedCopyRequests {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} (l bin : ℕ) (source endpoint : CorrectionRowTask.Channel Role (List Symbol)) (f b : ℝ) (i j : Symbol) :
List (Request k Role Symbol)

Actual copy access uses the earlier routed normalized residual and broad-source weight. Routing is part of the bin's scalar recipe, and is evaluated before averaging.

theorem Matrix.HierarchyParams.HierarchyTask.routedCopyRequests_rank_lt {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} (l bin : ℕ) (source endpoint : CorrectionRowTask.Channel Role (List Symbol)) (f b : ℝ) (i j : Symbol) (r : Request k Role Symbol) (hr : r ∈ routedCopyRequests l bin source endpoint f b i j) :

Copy access follows residual normalization and stays before the next stage's base.

noncomputable def Matrix.HierarchyParams.HierarchyTask.usageRatio {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (endpoint : CorrectionRowTask.Channel Role (List Symbol)) (r : Request k Role Symbol) (y : V) :

Endpoint importance uses the parent's conditioning slice and the child's actual usage.

noncomputable def Matrix.HierarchyParams.HierarchyTask.rawPositiveSample {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype V] [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (l bin : ℕ) (t : RawTask k) (source midpoint endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b : ℝ) (child : Request k Role Symbol → Matrix V V ℝ) (x y : V) :

Positive direct and shared-midpoint product contribution of one raw bin. Keeping this separate lets bin assembly include the special negative correction only once.

noncomputable def Matrix.HierarchyParams.HierarchyTask.rawNegativeSample {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (l bin : ℕ) (t : RawTask k) (source midpoint endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b : ℝ) (child : Request k Role Symbol → Matrix V V ℝ) (x y : V) :

Special endpoint correction at scale f. It is absent for non-residual raw tasks; residual bin assembly subtracts this contribution once, separately from positive bins.

noncomputable def Matrix.HierarchyParams.HierarchyTask.rawSample {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype V] [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (l bin : ℕ) (t : RawTask k) (source midpoint endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b : ℝ) (child : Request k Role Symbol → Matrix V V ℝ) (x y : V) :

Equations (7.1)–(7.2), with a distinct special negative term for residuals. The child oracle returns arbitrary completed whole matrices on this draw. Midpoints are function arguments and not parameters stored by the right child.

noncomputable def Matrix.HierarchyParams.HierarchyTask.routedCopySample {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (l bin : ℕ) (source endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b : ℝ) (i j : Symbol) (weight : V → ℝ) (child : Request k Role Symbol → Matrix V V ℝ) (x y : V) :

Equation (7.3) on a fixed copy-symbol part. The routing fraction is already included in the supplied residual bin, rather than applied to its conditional mean.