Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PilotRowTasks

Stochastic pilot preparation and normalization #

The complete local pilot family of [OpenAI2026LogSpace, Sections 5.3–5.4 and 7.1–7.2], revision 7ef5c0cc, extends PilotTask with the preparation (5.13) and normalized correction (5.14). Our input index i is the source's step i+1. The pilot multiplier is γ(M_(i+1)(y)), after the current detector, whereas the actual correction uses γ(M_k(y)). Both use the incoming gate on the completed raw table, ranked over the fixed retained source set before port filtering. The detector score (5.16) remains unnormalized and has no incoming gate.

Recipes accept arbitrary child functions. The raw input is C + Êᵢ C, with the right row called at the midpoint (source release). The preparation and normalized row use the inherited source channel Xs, broad rank channel Z at stage rate f, and usage channel Zt at rate t ≤ f. The channels can already have arbitrary fixed padding suffixes applied: every call keeps those functions, and the second signal averages on Xs(x) × Zt(y), without an importance factor. The newly completed maximum is a vertex function on the broad detector domain, not a value at an endpoint carried as a task parameter. Suffix invariance and admissible rates are supplied by the channel laws; this file introduces no native suffix encoding.

PilotRowTask.children inserts preparation and normalization into the existing deterministic pilot order, and the correction's expectation is a real client of the normalized child. PilotSampling.ofChannels derives the incoming-count premise from the current pilot detector, not the final actual multiplier. Exact means follow from primitive pair-count and gate laws, with no assumed mean/error certificate. The common recipes and atom theory are shared with CorrectionRowTasks; only the true input and maximum differ.

The bounded scalar cutoff agrees with the true pilot input for i ≤ k; beyond that range the recipe remains bounded without a true-mean claim. The gate and preparatory cutoffs retain their explicit primitive contracts. The shared atom law uses quarter-failure budgets sufficient for exact means, without claiming the source's stronger 3/4 denominator margin. Range bounds do not establish root regularity or error recurrence. The global stage order, routed bins, cross-stage copy/reward assembly, mean prefixes, noise/compression, strong recursion and native workspace/class equality remain open. Exact finite means are independent of the fourth/eighth moment choice; precision clients retain the integer rate grid.

Main definitions #

Main results #

The existing deterministic pilot, with one preparation and normalized row per step.

Preparations and normalizations read whole earlier children. Corrections additionally use normalization through its proved conditional mean; deterministic inputs are retained.

Three slots per old pilot rank leave room after the current maximum and before correction.

theorem Matrix.HierarchyParams.PilotRowTask.rank_lt_of_mem_children {parent child : PilotRowTask} (h : child ∈ parent.children) :
child.rank < parent.rank

Every actual child is earlier, including the newly completed maximum and normalized row.

Expanded tasks have a fixed number of slots per finite pilot iteration.

Bound computed from the original finite iteration count, including stochastic children.

The original rank is preserved up to a fixed factor on deterministic tasks.

theorem Matrix.HierarchyParams.PilotRowTask.scheduled_child_cost_le {parent child : PilotRowTask} (hchild : child ∈ parent.children) {A a a' u u' : ℝ} (hA : 0 ≤ A) (M d c : ℕ) (hc : 0 < c) (h : ℤ) (ha : 0 < a) (ha' : 0 < a') (hu : 0 < u) (huu' : u ≤ u') (hscale : Real.logb 2 (a' / a) = ↑h) :

Child decrease pays the existing scheduled fourth-moment precision cost.

Actual direct/product input calls inherit their rates from PilotTask.inputRequests. In particular the right base call resets the source to the midpoint rate.

theorem Matrix.HierarchyParams.PilotRowTask.input_request_cost_le {f u a A : ℝ} {i : ℕ} {r : PilotTask.Request} (hr : r ∈ PilotTask.inputRequests f u i) (hA : 0 ≤ A) (M d c : ℕ) (hc : 0 < c) (h : ℤ) (ha : 0 < a) (hf : 0 < f) (hu : 0 < u) (huf : u ≤ f) (hscale : Real.logb 2 (f / a) = ↑h) :

The expanded pilot order pays for a real child call with its inherited/reset source rate.

@[reducible, inline]

Sampled rows use independent source/terminal seeds; old tasks retain their exact types.

noncomputable def Matrix.HierarchyParams.PilotRowRecipe.score {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {κ : Type u_3} [Fintype V] (Y : κ → V → Prop) [(t : κ) → (v : V) → Decidable (Y t v)] (f : ℝ) (input : Matrix V V ℝ) (t : κ) :

Unnormalized detector score on an arbitrary completed raw child. It has no incoming gate or preparatory denominator, as in [OpenAI2026LogSpace, Section 5.4, (5.16)].

theorem Matrix.HierarchyParams.PilotRowRecipe.score_mem_Icc {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {κ : Type u_3} [Fintype V] (Y : κ → V → Prop) [(t : κ) → (v : V) → Decidable (Y t v)] (f : ℝ) (hρ : ∀ (r : ℝ), 0 ≤ P.ρ r) (input : Matrix V V ℝ) (t : κ) (x y : V) :
score P Y f input t x y ∈ Set.Icc 0 1

Arbitrary raw estimates still produce detector scores in the fixed gate range.

noncomputable def Matrix.HierarchyParams.PilotRowRecipe.detector {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)] (scores : κ → Matrix V V ℝ) (y : V) :

The detector reads the whole score child and averages its padded rank on the broad stage source/terminal roles. Vector answers are clipped as prescribed after (7.5).

theorem Matrix.HierarchyParams.PilotRowRecipe.detector_mem_Icc {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)] (scores : κ → Matrix V V ℝ) (y : V) :
detector P X Y scores y ∈ Set.Icc 0 1

Clipping bounds arbitrary estimated detector children, without assuming their mean.

def Matrix.HierarchyParams.PilotRowRecipe.maximum {V : Type u_1} (previous current : V → ℝ) (y : V) :

The current maximum is assembled from two whole vertex children, then clipped.

theorem Matrix.HierarchyParams.PilotRowRecipe.maximum_mem_Icc {V : Type u_1} (previous current : V → ℝ) (y : V) :
maximum previous current y ∈ Set.Icc 0 1

Every pair of estimated vector children gives a bounded running maximum.

noncomputable def Matrix.HierarchyParams.PilotRowRecipe.value {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ Γ Ζ : Type u} {ι : Type u_4} [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 ℝ) (prepare : Matrix V V ℝ → Γ × Ζ → Matrix V V ℝ) (normalize : Matrix V V ℝ → (Γ × Ζ → Matrix V V ℝ) → (V → ℝ) → Γ × Ζ → Matrix V V ℝ) (t : PilotRowTask) :
PilotRowTask.Value V κ Γ Ζ t

Interpret the expanded family with shared preparation and normalization recipes. The recipes are functions of whole child tables; their sampling laws are separate.

structure Matrix.HierarchyParams.PilotSampling {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (Xs : Γ → V → Prop) (Z Zt : Ζ → V → Prop) [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] (f : ℝ) (C : Matrix V V ℝ) (i : ℕ) extends Matrix.CorrectionSamplingLaws P.Q (Matrix.HierarchyParams.PilotTask.value P X Y f C (Matrix.HierarchyParams.PilotTask.input i)) (fun (y : V) => P.γ (Matrix.HierarchyParams.PilotTask.value P X Y f C (Matrix.HierarchyParams.PilotTask.maximum (i + 1)) y)) Xs Z Zt f (↑i + 1) :

Primitive sampling data for the pilot input and its current completed maximum. The laws are shared with actual corrections, but their input and multiplier are different.

noncomputable def Matrix.HierarchyParams.PilotSampling.preparationRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (σ : Γ × Ζ) :

Preparation recomputes all incoming scores from the substituted raw child.

noncomputable def Matrix.HierarchyParams.PilotSampling.normalizedRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) :

The pilot uses the same bounded normalized row recipe as actual corrections; its maximum child is the current one. The child functions may be arbitrary estimates.

theorem Matrix.HierarchyParams.PilotSampling.normalizedRecipe_mem_Icc {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) :
A.normalizedRecipe input prep maximum σ x y ∈ Set.Icc 0 (2 * P.Q P.atomCap)

Arbitrary oversized/negative raw, preparatory and maximum estimates stay uniformly bounded.

theorem Matrix.HierarchyParams.PilotSampling.normalizedRecipe_eq_zero_of_nonpos {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (hd : input x y / f ≤ 0) :
A.normalizedRecipe input prep maximum σ x y = 0

Nonpositive first signals cannot introduce support under estimated-child substitution.

theorem Matrix.HierarchyParams.PilotSampling.normalizedRecipe_eq_zero_of_not_usage {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (hy : ¬Zt σ.2 y) :
A.normalizedRecipe input prep maximum σ x y = 0

Only the narrower usage mask controls zero extension, for all substituted children.

theorem Matrix.HierarchyParams.PilotSampling.card_filter_normalizedRecipe_row_ne_zero_lt {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x : V) (hK : 0 < A.K) {e g : ℝ} (he : 0 ≤ e) (hQ : ∀ d ≤ e, P.Q d = 0) (hg : g ≤ e) (hρ : ∀ (r : ℝ), g ≤ r → A.ρ r = 0) :
{y ∈ {w : V | Z σ.2 w} | A.normalizedRecipe input prep maximum σ x y ≠ 0}.card < A.K

Bounded estimated rows retain the original row-support guarantee. Preparation substitution cannot create a nonzero entry when the cutoff or row gate vanishes.

theorem Matrix.HierarchyParams.PilotSampling.card_filter_normalizedRecipe_col_ne_zero_lt {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (y : V) (hKc : 0 < A.Kc) (hIQ : ∀ (v r : ℝ), P.Q v ≠ 0 → A.ρ r ≠ 0 → A.I v r = 1) {g : ℝ} (hg : g ≤ 1) (hτ : ∀ (r : ℝ), g ≤ r → A.τ r = 0) :
{x ∈ {w : V | Xs σ.1 w} | A.normalizedRecipe input prep maximum σ x y ≠ 0}.card < A.Kc

The incoming support bound also survives arbitrary child substitutions. Scores and ranks use the original raw table, and the cap cannot introduce new scalar support.

noncomputable def Matrix.HierarchyParams.PilotSampling.value {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (t : PilotRowTask) :
PilotRowTask.Value V κ Γ Ζ t

Values of the complete local family use the existing pilot at every deterministic task.

theorem Matrix.HierarchyParams.PilotSampling.value_input {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

Raw input calls the right base row at the midpoint, releasing the old source.

theorem Matrix.HierarchyParams.PilotSampling.value_preparation {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

Preparatory calls retain the same source/rank functions, including all fixed suffixes.

theorem Matrix.HierarchyParams.PilotSampling.value_normalized {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

The normalized child uses the just-completed maximum, not the final pilot maximum.

theorem Matrix.HierarchyParams.PilotSampling.value_detector {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) (y : V) :
A.value (PilotRowTask.pilot (PilotTask.detector j)) y = Finset.univ.expect fun (s : ι) => {t : κ | Y t y}.expect fun (t : κ) => Finset.kthLargest P.J {x : V | X s x} fun (x : V) => A.value (PilotRowTask.pilot (PilotTask.score j)) t x y

The detector still reads the earlier score row without normalization or an incoming gate.

theorem Matrix.HierarchyParams.PilotSampling.value_score_recipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

Substituting the true input in the score recipe gives the original detector table.

theorem Matrix.HierarchyParams.PilotSampling.value_detector_recipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

The clipped detector recipe agrees on true scores, including empty/zero-padded ranks.

theorem Matrix.HierarchyParams.PilotSampling.value_maximum_mem_Icc {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) (y : V) :

The true running maximum stays in the vector range at every iteration.

theorem Matrix.HierarchyParams.PilotSampling.value_maximum_recipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

Substituting the two earlier vector children gives the actual current maximum.

theorem Matrix.HierarchyParams.PilotSampling.value_maximum_succ {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (j : ℕ) :

The maximum child includes the current detector.

theorem Matrix.HierarchyParams.PilotSampling.normalizedRecipe_eq_atom {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) (σ : Γ × Ζ) (x y : V) :
A.value (PilotRowTask.normalized i) σ x y = correctionAtom A.I A.τ A.K A.Kc f (PilotTask.value P X Y f C (PilotTask.input i)) Xs Z Zt P.Q A.h A.ρ (fun (y : V) => P.γ (PilotTask.value P X Y f C (PilotTask.maximum (i + 1)) y)) σ x y

True-input clipping agreement follows from the pilot's correction-sequence entry bound.

theorem Matrix.HierarchyParams.PilotSampling.expect_normalizedRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) {x : V} (hx : {s : Γ | Xs s x}.Nonempty) (y : V) :
(({s : Γ | Xs s x} ×ˢ {t : Ζ | Zt t y}).expect fun (σ : Γ × Ζ) => f * A.value (PilotRowTask.normalized i) σ x y) = A.value (PilotRowTask.pilot (PilotTask.correction (i + 1))) x y

On the source/usage slice, the normalized pilot row has the exact pilot correction mean.

theorem Matrix.HierarchyParams.PilotSampling.value_correction_mean {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) {x : V} (hx : {s : Γ | Xs s x}.Nonempty) (y : V) :
A.value (PilotRowTask.pilot (PilotTask.correction (i + 1))) x y = ({s : Γ | Xs s x} ×ˢ Finset.univ).expect fun (σ : Γ × Ζ) => f / A.π * A.value (PilotRowTask.normalized i) σ x y

The actual deterministic correction constructor is the mean of its earlier normalized child. The actual usage density, rather than the nominal rate, cancels the membership mask.

theorem Matrix.HierarchyParams.PilotSampling.secondChannel_eq {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.PilotSampling X Y Xs Z Zt f C i) (ζ : ℝ) (σ : Γ × Ζ) (x y : V) :
CorrectionRowRecipe.secondChannel Xs Zt ζ (A.value (PilotRowTask.preparation i)) σ x y = if Zt σ.2 y then ζ * correctionNormalizer A.I A.τ A.K A.Kc f (PilotTask.value P X Y f C (PilotTask.input i)) Xs Z Zt A.h A.ρ x y else 0

The second signal uses the same preparatory child and narrower channel functions.

noncomputable def Matrix.HierarchyParams.PilotSampling.ofChannels {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
P.PilotSampling X Y X Y Y f C i

Build pilot correction sampling data from two ordered channel laws and primitive cutoffs. The incoming count follows from the hierarchy detector, rather than being a supplied field.

theorem Matrix.HierarchyParams.PilotSampling.ofChannels_I {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
(ofChannels P X Y hXY hYX hf hπ hcπ hpair hC hC1 hi I τ h τ₀ hQ hτ0 hτ1 hτ₀ hτ hI).I = I

The channel constructor preserves its I parameter.

theorem Matrix.HierarchyParams.PilotSampling.ofChannels_τ {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
(ofChannels P X Y hXY hYX hf hπ hcπ hpair hC hC1 hi I τ h τ₀ hQ hτ0 hτ1 hτ₀ hτ hI).τ = τ

The channel constructor preserves its τ parameter.

theorem Matrix.HierarchyParams.PilotSampling.ofChannels_ρ {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
(ofChannels P X Y hXY hYX hf hπ hcπ hpair hC hC1 hi I τ h τ₀ hQ hτ0 hτ1 hτ₀ hτ hI).ρ = P.ρ

The channel constructor preserves its ρ parameter.

theorem Matrix.HierarchyParams.PilotSampling.ofChannels_Kc {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
(ofChannels P X Y hXY hYX hf hπ hcπ hpair hC hC1 hi I τ h τ₀ hQ hτ0 hτ1 hτ₀ hτ hI).Kc = ⌈4 * (1 + Cpair * P.R)⌉₊

The channel constructor preserves its Kc parameter.

theorem Matrix.HierarchyParams.PilotSampling.ofChannels_h {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
(ofChannels P X Y hXY hYX hf hπ hcπ hpair hC hC1 hi I τ h τ₀ hQ hτ0 hτ1 hτ₀ hτ hI).h = h

The pilot channel constructor retains its preparation cutoff.

theorem Matrix.HierarchyParams.PilotSampling.ofChannels_K {q cπ Cπ Cpair Cvar : ℝ} (P : FourthRootHierarchyParams q cπ Cπ Cpair Cvar) {V ι κ : Type u} [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 : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π cπ Cπ Cpair Cvar) (hYX : Cslib.Probability.RetentionChannels Y X f π cπ Cπ Cpair Cvar) (hf : 0 < f) (hπ : 0 < π) (hcπ : 0 < cπ) (hpair : 0 ≤ Cpair) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (I : ℝ → ℝ → ℝ) (τ h : ℝ → ℝ) (τ₀ : ℝ) (hQ : ∀ (v : ℝ), P.Q v ≠ 0 → h v = 1) (hτ0 : ∀ (r : ℝ), 0 ≤ τ r) (hτ1 : ∀ (r : ℝ), τ r ≤ 1) (hτ₀ : 0 ≤ τ₀) (hτ : ∀ r ≤ τ₀, τ r = 1) (hI : ∀ (v r : ℝ), v ≤ P.δ₁ → I v r = 0) :
(ofChannels P X Y hXY hYX hf hπ hcπ hpair hC hC1 hi I τ h τ₀ hQ hτ0 hτ1 hτ₀ hτ hI).K = P.K

The pilot channel constructor retains the hierarchy row rank.