Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PilotTasks

Concrete pilot tasks and their dependency order #

The pilot family of [OpenAI2026LogSpace, Sections 7.1–7.2, printed pp. 33–35], revision 7ef5c0cc, is indexed here by its actual input, score row, detector vector, running maximum and correction. PilotTask.value uses the existing pilotInput, atomPrep, columnDetector, pilotMax and pilotCorrection; it introduces no alternative hierarchy. The score is the unnormalized detector score of Section 5.4, not a dense atom with a clipped denominator.

PilotTask.children specifies the constructor recipes. Ranks are computed from the iteration and constructor, never supplied by a caller. Their strict decrease supplies the rank premise of the existing fourth-moment precision calculation. The stage-local iteration bound is explicit; this is not yet the global stage order or a recursive estimator. The stochastic extension is in CslibFrontier/Computability/LogSpaceDerandomization/PilotRowTasks.lean; routed bins, copy/reward multipliers and full mean-prefix assembly remain open.

The exact finite detector mean is independent of the fourth/eighth moment choice. The precision client specializes to fourth moments and uses the existing integer logarithmic-rate schedule.

Main definitions #

Main results #

The complete deterministic pilot family at one stage. input i is the input of step i+1; detector i measures that input; maximum i and correction i are the completed step i.

Immediate inputs used by the actual constructor equations. Zero-step values are exact bases.

Positive constructor rank, with five slots per completed pilot step.

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

Every recursive input is strictly earlier, including the current maximum used by correction.

Iteration label, for bounding the number of ranks at a stage.

The finite pilot has at most a constant number of rank slots per iteration.

@[reducible, inline]

Row tasks, sampled score rows and vertex tasks have their actual distinct argument types.

theorem Matrix.HierarchyParams.PilotTask.scheduled_child_cost_le {parent child : PilotTask} (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) :

Constructor decrease discharges the rank payment in the scheduled fourth-moment bound. Rates may change, and the child may restart on a broader source domain.

A task call carries its rates, never a particular old source or right endpoint. The arguments of the called row remain arguments of value.

  • task : PilotTask

    Constructor being called.

  • endRate : ℝ

    Endpoint scale of the child row.

  • sourceRate : ℝ

    Inherited source rate, or the midpoint rate after release.

Child calls in C + Êᵢ C: direct stage row, left correction, and right stage row. The right call restarts on the midpoint domain and does not retain the old source rate.

Every call in the input's actual direct/product recipe decreases constructor rank.

theorem Matrix.HierarchyParams.PilotTask.input_request_cost_le {f u a A : ℝ} {i : ℕ} {r : Request} (hr : r ∈ 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) :

Precision for an actual direct/product child of the pilot input. Its endpoint rate is the stage rate; only the right product child resets its source to that stage rate.

noncomputable def Matrix.HierarchyParams.PilotTask.value {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 ℝ) (t : PilotTask) :
Value V κ t

Concrete values of the existing pilot, including its sampled detector score row.

theorem Matrix.HierarchyParams.PilotTask.value_input {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 : ℕ) :
value P X Y f C (input i) = value P X Y f C base + value P X Y f C (correction i) * value P X Y f C base

The input recipe reads precisely the base matrix and the earlier pilot correction.

theorem Matrix.HierarchyParams.PilotTask.value_score {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 : ℕ) (t : κ) (x y : V) :
value P X Y f C (score i) t x y = P.ϕ (value P X Y f C (input i) x y / f) * rowGate P.ρ P.K f (value P X Y f C (input i)) {w : V | Y t w} x

The score recipe reads only its input and the terminal seed.

theorem Matrix.HierarchyParams.PilotTask.value_detector {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 : ℕ) (y : V) :
value P X Y f C (detector i) 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) => value P X Y f C (score i) t x y

Taking the actual score rank and its conditional mean gives the detector value. This is (7.4), with zero padding supplied by the existing kthLargest convention.

theorem Matrix.HierarchyParams.PilotTask.value_detector_eq_zero {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 ℝ) (hJ : Fintype.card V < P.J) (i : ℕ) :
value P X Y f C (detector i) = 0

Zero padding makes every detector vanish when its rank exceeds the entire vertex domain.

theorem Matrix.HierarchyParams.PilotTask.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 κ] (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 : ℕ) :
value P X Y f C (maximum (i + 1)) = value P X Y f C (maximum i) ⊔ value P X Y f C (detector i)

The running maximum uses its previous value and the just-completed detector.

theorem Matrix.HierarchyParams.PilotTask.value_maximum_eq_zero {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 ℝ) (hJ : Fintype.card V < P.J) (i : ℕ) :
value P X Y f C (maximum i) = 0

A zero-padded detector family leaves every running maximum at its exact zero base.

theorem Matrix.HierarchyParams.PilotTask.value_correction_succ {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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) :
value P X Y f C (correction (i + 1)) x y = f * P.Q (value P X Y f C (input i) x y / f) * P.γ (value P X Y f C (maximum (i + 1)) y)

The correction uses the current maximum, after the detector has completed.

theorem Matrix.HierarchyParams.PilotTask.value_maximum_last {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 ℝ) :
value P X Y f C (maximum P.k) = P.pilot X Y f C

The final vector is exactly the hierarchy's pilot multiplier input.

theorem Matrix.HierarchyParams.PilotTask.value_input_bounds {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ : Type u} {ι : Type u_1} [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 : ℕ) :
(∀ (x y : V), 0 ≤ value P X Y f C (input i) x y) ∧ ∀ (x : V), ∑ y : V, value P X Y f C (input i) x y ≤ ↑i + 1

Input nonnegativity and row mass follow from the actual pilot, rather than task fields.