Documentation

CslibFrontier.Computability.LogSpaceDerandomization.InitialPilotScore

Allocated initial-pilot RAW calls followed by the actual score recipe #

The initial pilot has a literal zero correction. Its direct dense bin is computed from the stage-zero base matrix and its actual preparation, then averaged by the full-coordinate H4 retained-pair walk. The score reads that completed matrix on the same environment. No child oracle, accuracy certificate or independent seed is supplied. This original finite fragment does not close later pilot iterations or detector recursion. Its reference is the literal conditional RAW mean; identifying it with the whole base requires bin coverage and the dense-atom hypotheses, separately from spectral accuracy. The final single-bin theorem derives this identification for nonnegative substochastic bases.

Main definitions #

Main results #

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.initialPilotRaw {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) (x y : ZMod P) :

One initial-pilot bin, evaluated from the actual base and preparatory recipes. The product with the zero-iteration pilot correction vanishes. The request retains its actual bin rank, usage, role and suffix.

The computed dense request is structurally earlier than the actual initial RAW call. The structural iteration is fixed by HP and is independent of statistical accuracy.

theorem Matrix.HierarchyParams.H4RankEnvironment.initialPilotRaw_eq_rawSample {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (bin ks km kt kb : ℕ) (ss sm st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) (child : HierarchyTask.Request HP.k (Fin J) (ZMod P) → Matrix (ZMod P) (ZMod P) ℝ) (hleft : child (HierarchyTask.rawRequests 0 bin (HierarchyTask.RawTask.pilotInput ⟨0, ⋯⟩) (gridChannel R.source ks ss) (gridChannel R.midpoint km sm) (gridChannel R.terminal kt st) (rate kb)).left = 0) (hdirect : child (HierarchyTask.rawRequests 0 bin (HierarchyTask.RawTask.pilotInput ⟨0, ⋯⟩) (gridChannel R.source ks ss) (gridChannel R.midpoint km sm) (gridChannel R.terminal kt st) (rate kb)).direct = denseChild D id { task := HierarchyTask.baseNormalized 0 bin, source := gridChannel R.source ks ss, terminal := gridChannel R.terminal kb st, usage := gridChannel R.terminal (max kt kb) st } cutoff h HP.ρ HP.K C σ) :
initialPilotRaw HP D R bin ks kt kb ss st cutoff h C σ = HierarchyTask.rawSample (channels D) 0 bin (HierarchyTask.RawTask.pilotInput ⟨0, ⋯⟩) (gridChannel R.source ks ss) (gridChannel R.midpoint km sm) (gridChannel R.terminal kt st) (rate kb) child

This is the actual first pilot RAW formula after evaluating its literal zero correction child. The right child is unrestricted: it is multiplied by that zero. Only the three genuine requests are inspected.

theorem Matrix.HierarchyParams.H4RankEnvironment.initialPilotRaw_mean {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (hD : D ≠ 0) (R : RoleProfile J) (H : Horizon P) (bin ks kb : ℕ) (hks : ks ≤ H.maxExponent) (hkb : kb ≤ H.maxExponent) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (hkh : ∀ (v : ℝ), cutoff v ≠ 0 → h v = 1) {η : ℝ} (hη : 0 < η) (hρη : ∀ v ≤ η, HP.ρ v = 1) (hK : 2 * (1 + 32 / η) ≤ ↑HP.K) (hC : ∀ (x y : ZMod P), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (x y : ZMod P) :
Cslib.rowSliceMean (X R.source (side P ks) (CopyPadding.identifier D ss)) (Y R.terminal (side P kb) (CopyPadding.identifier D st)) (initialPilotRaw HP D R bin ks kb kb ss st cutoff h C) x y = rate kb * cutoff (C x y / rate kb)

At equal bin/parent terminal rates the literal conditional mean is the true matrix-unit bin. This uses the actual dense normalization law, not a desired-mean hypothesis. Source rank, source suffix and terminal suffix remain explicit.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.initialPilotWalk {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (steps : ℕ) (σ : Environment P J) (x y : ZMod P) :

Actual completed initial RAW child. All coordinates are moved by the existing H4 graph; no nonlinear score is evaluated inside the lower walk.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.initialPilotScore {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (steps : ℕ) (σ : Environment P J) :

The upper score actually calls the completed lower RAW function on this environment.

The RAW call of the score is strictly earlier in the existing hierarchy task order.

theorem Matrix.HierarchyParams.H4RankEnvironment.initialPilotScore_error (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (L : ℝ), 0 ≤ L ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (steps : ℕ), let X := X R.source (side P ks) (CopyPadding.identifier D ss); let Y := Y R.terminal (side P kt) (CopyPadding.identifier D st); have input := initialPilotRaw HP D R bin ks kt kb ss st cutoff h C; have mean := Cslib.rowSliceMean X Y input; (Cslib.rowNormPow 4 (↑P) (rate ks) X Y fun (σ : Environment P J) (x y : ZMod P) => initialPilotScore HP D R bin ks kt kb ss st cutoff h C steps σ x y - PilotRowRecipe.score HP.toHierarchyParams Y (rate kt) mean σ x y) ≤ ↑P * (L / rate kt) ^ 4 * (32 * (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) ^ (2 * steps) * Cslib.rowNormPow 4 (↑P) (rate ks) X Y input)

Fixed-HP score constants pay the actual completed RAW walk. The explicit input moment is of a computed dense sample, rather than an assumed final child error. All widths, rates and walk factors remain visible.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.initialPilotSteps {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (L : ℝ) (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (ε : ℝ) :

Positive finite walk allocation for the computed lower child. The budget is the literal finite fourth moment of the base-derived dense sample, multiplied by the score width/rate payment. Zero input moments still receive at least one step.

theorem Matrix.HierarchyParams.H4RankEnvironment.initialPilotSteps_pos {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (L : ℝ) (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (ε : ℝ) :
0 < initialPilotSteps HP L D R bin ks kt kb ss st cutoff h C ε

The allocated lower call has a real, positive walk length, even for a zero budget.

theorem Matrix.HierarchyParams.H4RankEnvironment.initialPilotScore_allocated (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (L : ℝ), 0 ≤ L ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (D : ZMod P) (R : RoleProfile J) (bin ks kt kb : ℕ) (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ) (ε : ℝ), 0 < ε → let X := X R.source (side P ks) (CopyPadding.identifier D ss); let Y := Y R.terminal (side P kt) (CopyPadding.identifier D st); have input := initialPilotRaw HP D R bin ks kt kb ss st cutoff h C; have mean := Cslib.rowSliceMean X Y input; have steps := initialPilotSteps HP L D R bin ks kt kb ss st cutoff h C ε; (Cslib.rowNormPow 4 (↑P) (rate ks) X Y fun (σ : Environment P J) (x y : ZMod P) => initialPilotScore HP D R bin ks kt kb ss st cutoff h C steps σ x y - PilotRowRecipe.score HP.toHierarchyParams Y (rate kt) mean σ x y) ≤ ε ^ 4

A two-constructor allocated call: the upper score reads the actual computed RAW walk on the same environment. No lower error premise is supplied. The reference is the score of that bin's literal conditional mean, not a full recursive pilot theorem.

theorem Matrix.HierarchyParams.H4RankEnvironment.initialPilotScore_allocated_of_single_bin (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (L : ℝ), 0 ≤ L ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (D : ZMod P), D ≠ 0 → ∀ (R : RoleProfile J) (H : Horizon P) (bin ks kb : ℕ), ks ≤ H.maxExponent → kb ≤ H.maxExponent → ∀ (ss st : List (ZMod P)) (cutoff h : ℝ → ℝ) (C : Matrix (ZMod P) (ZMod P) ℝ), (∀ (v : ℝ), cutoff v ≠ 0 → h v = 1) → ∀ (η : ℝ), 0 < η → (∀ v ≤ η, HP.ρ v = 1) → 2 * (1 + 32 / η) ≤ ↑HP.K → (∀ (x y : ZMod P), 0 ≤ C x y) → C.mulVec 1 ≤ 1 → (∀ (x y : ZMod P), rate kb * cutoff (C x y / rate kb) = C x y) → ∀ (ε : ℝ), 0 < ε → let X := X R.source (side P ks) (CopyPadding.identifier D ss); let Y := Y R.terminal (side P kb) (CopyPadding.identifier D st); have steps := initialPilotSteps HP L D R bin ks kb kb ss st cutoff h C ε; (Cslib.rowNormPow 4 (↑P) (rate ks) X Y fun (σ : Environment P J) (x y : ZMod P) => initialPilotScore HP D R bin ks kb kb ss st cutoff h C steps σ x y - PilotRowRecipe.score HP.toHierarchyParams Y (rate kb) C σ x y) ≤ ε ^ 4

If one genuine dense bin covers the base matrix, the allocated two-level call approximates the initial pilot score of that base. The mean is derived from dense normalization and scalar bin coverage. Later pilot iterations and general bin sums are not part of this fragment.