Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyPilotStability

Paying actual correction error from running-maximum children #

This original local client composes correction stability with the actual clipped running-maximum recipe. It pays the previous maximum and current detector children, rather than assuming a final pilot error. RAW and PREP remain on their original masks, with the existing width and rate costs. Child functions may share every environment coordinate. The detector payment is transported through the exact terminal split, with the rank source reset to the terminal stage rate. Composing actual score stability pays signed raw-child moments. Iterating these contracts with allocated accuracies is still open.

Main results #

theorem Matrix.HierarchyParams.H4RankEnvironment.stageDetector_row_moment {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] {k : ℕ} (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)) (hr : Admissible r) {N u π : ℝ} (hN : 0 < N) (hu : 0 < u) (hf : 0 < r.terminal.rate) (hπ : 0 < π) (hY : ∀ (y : V), π ≤ ↑{t : Cslib.Probability.FrameChannel P 4 1 | splitTerminal D ident r t y}.dens) (A B : Environment P J → Cslib.Probability.FrameChannel P 4 1 → Matrix V V ℝ) :
(Cslib.rowNormPow 4 N u (fun (σ : Environment P J) (x : V) => r.source.retains (channels D) σ (ident x)) (fun (σ : Environment P J) (y : V) => r.terminal.retains (channels D) σ (ident y)) fun (σ : Environment P J) (x y : V) => PilotRowRecipe.detector HP.toHierarchyParams (stageSource D ident r hr) (splitTerminal D ident r) (A σ) y - PilotRowRecipe.detector HP.toHierarchyParams (stageSource D ident r hr) (splitTerminal D ident r) (B σ) y) ≤ ↑(Fintype.card V) * r.terminal.rate / (u * π) * Cslib.rowNormPow 4 N r.terminal.rate (fun (p : Environment P J × Environment P J) (x : V) => (have __src := r.source; { role := __src.role, rate := r.terminal.rate, suffix := __src.suffix }).retains (channels D) p.2 (ident x)) (fun (p : Environment P J × Environment P J) (y : V) => r.terminal.retains (channels D) p.2 (ident y)) fun (p : Environment P J × Environment P J) (x y : V) => A p.1 (p.2 r.terminal.role) x y - B p.1 (p.2 r.terminal.role) x y

Actual stage detector payment on one full rank environment. The child's source is reset to the terminal stage rate while retaining the original source role and suffix; the terminal role and suffix are unchanged. Its score can depend on every outer coordinate and the terminal frame. The detector integrates its source spectators literally; this statement does not replace them by independently seeded child calls.

theorem Matrix.HierarchyParams.H4RankEnvironment.stageDetector_raw_row_moment (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (V : Type) [inst_1 : Fintype V] (k : ℕ) (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)) (hr : Admissible r) (N u π : ℝ), 0 < N → 0 < u → 0 < r.terminal.rate → 0 < π → (∀ (y : V), π ≤ ↑{t : Cslib.Probability.FrameChannel P 4 1 | splitTerminal D ident r t y}.dens) → ∀ (A B : Environment P J → Cslib.Probability.FrameChannel P 4 1 → Matrix V V ℝ), have score := fun (raw : Environment P J → Cslib.Probability.FrameChannel P 4 1 → Matrix V V ℝ) (σ : Environment P J) (t : Cslib.Probability.FrameChannel P 4 1) => PilotRowRecipe.score HP.toHierarchyParams (splitTerminal D ident r) r.terminal.rate (raw σ t) t; (Cslib.rowNormPow 4 N u (fun (σ : Environment P J) (x : V) => r.source.retains (channels D) σ (ident x)) (fun (σ : Environment P J) (y : V) => r.terminal.retains (channels D) σ (ident y)) fun (σ : Environment P J) (x y : V) => PilotRowRecipe.detector HP.toHierarchyParams (stageSource D ident r hr) (splitTerminal D ident r) (score A σ) y - PilotRowRecipe.detector HP.toHierarchyParams (stageSource D ident r hr) (splitTerminal D ident r) (score B σ) y) ≤ ↑(Fintype.card V) * r.terminal.rate / (u * π) * (↑(Fintype.card V) * (C / r.terminal.rate) ^ 4) * Cslib.rowNormPow 4 N r.terminal.rate (fun (p : Environment P J × Environment P J) (x : V) => (have __src := r.source; { role := __src.role, rate := r.terminal.rate, suffix := __src.suffix }).retains (channels D) p.2 (ident x)) (fun (p : Environment P J × Environment P J) (y : V) => r.terminal.retains (channels D) p.2 (ident y)) fun (p : Environment P J × Environment P J) (x y : V) => A p.1 (p.2 r.terminal.role) x y - B p.1 (p.2 r.terminal.role) x y

The fixed-HP score contract and actual stage detector compose without an assumed score error. Raw children remain signed and terminal-dependent. The two displayed width factors pay parent rows and the raw terminal rank, respectively. Precision allocation, bin assembly and closure of lower raw calls remain separate obligations.

theorem Matrix.HierarchyParams.H4RankEnvironment.correctionRequest_pilot_children_root_moment (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (Cr : ℝ) (Cp : ℝ) (Cm : ℝ), 0 ≤ Cr ∧ 0 ≤ Cp ∧ 0 ≤ Cm ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (V : Type u_1) [inst_1 : Fintype V] (k : ℕ) (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)), Admissible r → 0 < r.terminal.rate → ∀ (Kc : ℕ), 0 < Kc → ∀ (raw raw' prep prep' : Environment P J → Matrix V V ℝ) (previous current previous' current' : Environment P J → V → ℝ) (N u : ℝ), 0 ≤ N * u → (∀ (σ : Environment P J) (y : V), r.usage.retains (channels D) σ (ident y) → r.terminal.retains (channels D) σ (ident y)) → let X := fun (σ : Environment P J) (x : V) => r.source.retains (channels D) σ (ident x); let Y := fun (σ : Environment P J) (y : V) => r.terminal.retains (channels D) σ (ident y); let U := fun (σ : Environment P J) (y : V) => r.usage.retains (channels D) σ (ident y); Cslib.rootDistPow 4 N u X Y (correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw prep fun (σ : Environment P J) => PilotRowRecipe.maximum (previous σ) (current σ)) (correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw' prep' fun (σ : Environment P J) => PilotRowRecipe.maximum (previous' σ) (current' σ)) ≤ 64 * ((((Cr / r.terminal.rate) ^ 4 * ↑(Fintype.card V) ^ 2 * Cslib.rowNormPow 4 N u X Y fun (σ : Environment P J) (x y : V) => raw σ x y - raw' σ x y) + Cp ^ 4 * Cslib.rowNormPow 4 N u X U fun (σ : Environment P J) (x y : V) => prep σ x y - prep' σ x y) + Cm ^ 4 * ((Cslib.rowNormPow 4 N u X Y fun (σ : Environment P J) (x y : V) => previous σ y - previous' σ y) + Cslib.rowNormPow 4 N u X Y fun (σ : Environment P J) (x y : V) => current σ y - current' σ y))

The actual correction consumes the completed running maximum of two supplied children. Both are paid by their ordinary fourth moments on the same original pairs. The current detector may be paid using PilotRowRecipe.detector_row_moment. Constants are selected before prime, width, structural request, rates or child functions.

theorem Matrix.HierarchyParams.H4RankEnvironment.correctionRequest_stageDetector_root_moment (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (Cr : ℝ) (Cp : ℝ) (Cm : ℝ) (C : ℝ), 0 ≤ Cr ∧ 0 ≤ Cp ∧ 0 ≤ Cm ∧ 0 ≤ C ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (V : Type) [inst_1 : Fintype V] (k : ℕ) (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)) (hr : Admissible r) (N u π : ℝ), 0 < N → 0 < u → 0 < r.terminal.rate → 0 < π → (∀ (y : V), π ≤ ↑{t : Cslib.Probability.FrameChannel P 4 1 | splitTerminal D ident r t y}.dens) → ∀ (Kc : ℕ), 0 < Kc → ∀ (raw raw' prep prep' : Environment P J → Matrix V V ℝ) (previous previous' : Environment P J → V → ℝ) (A B : Environment P J → Cslib.Probability.FrameChannel P 4 1 → Matrix V V ℝ), (∀ (σ : Environment P J) (y : V), r.usage.retains (channels D) σ (ident y) → r.terminal.retains (channels D) σ (ident y)) → let X := fun (σ : Environment P J) (x : V) => r.source.retains (channels D) σ (ident x); let Y := fun (σ : Environment P J) (y : V) => r.terminal.retains (channels D) σ (ident y); let U := fun (σ : Environment P J) (y : V) => r.usage.retains (channels D) σ (ident y); have current := fun (raw : Environment P J → Cslib.Probability.FrameChannel P 4 1 → Matrix V V ℝ) (σ : Environment P J) => PilotRowRecipe.detector HP.toHierarchyParams (stageSource D ident r hr) (splitTerminal D ident r) fun (t : Cslib.Probability.FrameChannel P 4 1) => PilotRowRecipe.score HP.toHierarchyParams (splitTerminal D ident r) r.terminal.rate (raw σ t) t; Cslib.rootDistPow 4 N u X Y (correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw prep fun (σ : Environment P J) => PilotRowRecipe.maximum (previous σ) (current A σ)) (correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw' prep' fun (σ : Environment P J) => PilotRowRecipe.maximum (previous' σ) (current B σ)) ≤ 64 * ((((Cr / r.terminal.rate) ^ 4 * ↑(Fintype.card V) ^ 2 * Cslib.rowNormPow 4 N u X Y fun (σ : Environment P J) (x y : V) => raw σ x y - raw' σ x y) + Cp ^ 4 * Cslib.rowNormPow 4 N u X U fun (σ : Environment P J) (x y : V) => prep σ x y - prep' σ x y) + Cm ^ 4 * ((Cslib.rowNormPow 4 N u X Y fun (σ : Environment P J) (x y : V) => previous σ y - previous' σ y) + ↑(Fintype.card V) * r.terminal.rate / (u * π) * (↑(Fintype.card V) * (C / r.terminal.rate) ^ 4) * Cslib.rowNormPow 4 N r.terminal.rate (fun (p : Environment P J × Environment P J) (x : V) => (have __src := r.source; { role := __src.role, rate := r.terminal.rate, suffix := __src.suffix }).retains (channels D) p.2 (ident x)) (fun (p : Environment P J × Environment P J) (y : V) => r.terminal.retains (channels D) p.2 (ident y)) fun (p : Environment P J × Environment P J) (x y : V) => A p.1 (p.2 r.terminal.role) x y - B p.1 (p.2 r.terminal.role) x y))

Full local pipeline: changing RAW/PREP correction children and a running maximum whose current child is the actual score/detector composition. All constants are fixed before requests and child functions. The previous maximum still requires its own local moment; no final pilot-error premise is introduced.