Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyCorrectionRawStability

Changing raw and preparatory correction children #

The actual hierarchy gates act on signed, unbounded raw tables. Constants are selected at fixed hierarchy parameters, before finite domains, rates or child tables. Preparation is averaged on its original joint source/usage slice. The integrated contract pays RAW absolute row moments with explicit width squared and inverse-rate fourth powers, PREP source/usage row moments through conditional Jensen, and the ordinary maximum error.

This is an original local accuracy contract. Pilot recipe moments are supplied separately in PilotRowStability. A well-founded approximate evaluator, allocated recursive fragments and closure, parameter/workspace growth and native RL=L remain open.

Main results #

Ordinary auxiliary-score regularity follows from its bounded root regularity. The bound is global in both signed raw arguments.

theorem Matrix.FourthRootHierarchyParams.incoming_root_stability_constants (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (LI : ℝ) (Lτ : ℝ), 0 ≤ LI ∧ 0 ≤ Lτ ∧ ∀ (V : Type u_1) (Kc : ℕ), 0 < Kc → ∀ (f : ℝ), 0 < f → ∀ (A B : Matrix V V ℝ) (S T : Finset V) (y : V) (Ec Er : ℝ), 0 ≤ Ec → 0 ≤ Er → (∀ x ∈ S, |A x y - B x y| ≤ Ec) → (∀ x ∈ S, (Finset.kthLargest 1 T fun (w : V) => |A x w - B x w|) ≤ Er) → |incomingGate (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.K Kc f A S T y ^ 4⁻¹ - incomingGate (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.K Kc f B S T y ^ 4⁻¹| ≤ Lτ * (LI * (Ec + Er) / f)

Root regularity of the actual incoming gate composed with both unchanged rank sets.

theorem Matrix.FourthRootHierarchyParams.correction_preparation_stability_constants (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (Lh : ℝ) (Lρ : ℝ) (LI : ℝ) (Lτ : ℝ), 0 ≤ Lh ∧ 0 ≤ Lρ ∧ 0 ≤ LI ∧ 0 ≤ Lτ ∧ ∀ (V : Type u_1) (Kc : ℕ), 0 < Kc → ∀ (f : ℝ), 0 < f → ∀ (A B : Matrix V V ℝ) (S T : Finset V) (x y : V) (Ec Er : ℝ), 0 ≤ Ec → 0 ≤ Er → (∀ z ∈ S, |A z y - B z y| ≤ Ec) → (∀ z ∈ S, (Finset.kthLargest 1 T fun (w : V) => |A z w - B z w|) ≤ Er) → |correctionPrep (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.K Kc f A (Cslib.polynomialPrepCutoff4 HP.θ) HP.ρ S T x y - correctionPrep (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.K Kc f B (Cslib.polynomialPrepCutoff4 HP.θ) HP.ρ S T x y| ≤ (Lh * |A x y - B x y| + Lρ * Finset.kthLargest 1 T fun (w : V) => |A x w - B x w|) / f + Lτ * (LI * (Ec + Er) / f)

The selected actual correction preparation responds to changing signed raw children. Both ranks retain the original source and terminal sets. The same estimate is usable by actual correction and pilot preparation clients.

theorem Matrix.FourthRootHierarchyParams.correction_preparation_row_moment (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (L : ℝ), 0 ≤ L ∧ ∀ (Ω : Type u_1) (V : Type u_2) [inst : Fintype Ω] [inst_1 : Fintype V] (X Y : Ω → V → Prop) [inst_2 : (σ : Ω) → (x : V) → Decidable (X σ x)] [inst_3 : (σ : Ω) → (y : V) → Decidable (Y σ y)] (Kc : ℕ), 0 < Kc → ∀ (f : ℝ), 0 < f → ∀ (A B : Ω → Matrix V V ℝ) (N u : ℝ), 0 ≤ N * u → (Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => correctionPrep (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.K Kc f (A σ) (Cslib.polynomialPrepCutoff4 HP.θ) HP.ρ {z : V | X σ z} {w : V | Y σ w} x y - correctionPrep (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.K Kc f (B σ) (Cslib.polynomialPrepCutoff4 HP.θ) HP.ρ {z : V | X σ z} {w : V | Y σ w} x y) ≤ (L / f) ^ 4 * ↑(Fintype.card V) ^ 2 * Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => A σ x y - B σ x y

The pre-walk incoming preparation is paid entirely by actual RAW error. A full source by terminal maximum incurs the explicit width squared and inverse-rate fourth power. No environment atom or pointwise convergence of walked PREP is used.

theorem Matrix.FourthRootHierarchyParams.normalized_raw_normalizer_root_stability (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (C : ℝ) (LI : ℝ) (Lτ : ℝ), 0 ≤ C ∧ 0 ≤ LI ∧ 0 ≤ Lτ ∧ ∀ (V : Type u_1) (Γ : Type u_2) (Ζ : Type u_3) [inst : Fintype V] [inst_1 : Fintype Γ] [inst_2 : Fintype Ζ] (Xs : Γ → V → Prop) (Z Zt : Ζ → V → Prop) [inst_3 : (s : Γ) → (v : V) → Decidable (Xs s v)] [inst_4 : (t : Ζ) → (v : V) → Decidable (Z t v)] [inst_5 : (t : Ζ) → (v : V) → Decidable (Zt t v)] (Kc : ℕ), 0 < Kc → ∀ (f : ℝ), 0 < f → ∀ (A B : Matrix V V ℝ) (prep prep' : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (Ec Er : ℝ), 0 ≤ Ec → 0 ≤ Er → (∀ z ∈ {w : V | Xs σ.1 w}, |A z y - B z y| ≤ Ec) → (∀ z ∈ {w : V | Xs σ.1 w}, (Finset.kthLargest 1 {w : V | Z σ.2 w} fun (w : V) => |A z w - B z w|) ≤ Er) → |CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc f Xs Z Zt A prep maximum σ x y ^ 4⁻¹ - CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc f Xs Z Zt B prep' maximum σ x y ^ 4⁻¹| ≤ C * (|A x y - B x y| / f + |CorrectionRowRecipe.normalizer Xs Zt prep x y - CorrectionRowRecipe.normalizer Xs Zt prep' x y| + (Finset.kthLargest 1 {w : V | Z σ.2 w} fun (w : V) => |A x w - B x w|) / f) + (2 * HP.Q HP.atomCap) ^ 4⁻¹ * (Lτ * (LI * (Ec + Er) / f))

Changing RAW and the literal joint normalizer in a normalized correction. Only the difference of conditional means is charged; no pointwise PREP approximation is needed. The original incoming ranks and clipped denominator are preserved.

theorem Matrix.FourthRootHierarchyParams.normalized_raw_prep_root_stability (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (C : ℝ) (LI : ℝ) (Lτ : ℝ), 0 ≤ C ∧ 0 ≤ LI ∧ 0 ≤ Lτ ∧ ∀ (V : Type u_1) (Γ : Type u_2) (Ζ : Type u_3) [inst : Fintype V] [inst_1 : Fintype Γ] [inst_2 : Fintype Ζ] (Xs : Γ → V → Prop) (Z Zt : Ζ → V → Prop) [inst_3 : (s : Γ) → (v : V) → Decidable (Xs s v)] [inst_4 : (t : Ζ) → (v : V) → Decidable (Z t v)] [inst_5 : (t : Ζ) → (v : V) → Decidable (Zt t v)] (Kc : ℕ), 0 < Kc → ∀ (f : ℝ), 0 < f → ∀ (A B : Matrix V V ℝ) (prep prep' : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (Ec Er : ℝ), 0 ≤ Ec → 0 ≤ Er → (∀ z ∈ {w : V | Xs σ.1 w}, |A z y - B z y| ≤ Ec) → (∀ z ∈ {w : V | Xs σ.1 w}, (Finset.kthLargest 1 {w : V | Z σ.2 w} fun (w : V) => |A z w - B z w|) ≤ Er) → |CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc f Xs Z Zt A prep maximum σ x y ^ 4⁻¹ - CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc f Xs Z Zt B prep' maximum σ x y ^ 4⁻¹| ≤ C * ((|A x y - B x y| / f + ({s : Γ | Xs s x} ×ˢ {t : Ζ | Zt t y}).expect fun (p : Γ × Ζ) => |prep p x y - prep' p x y|) + (Finset.kthLargest 1 {w : V | Z σ.2 w} fun (w : V) => |A x w - B x w|) / f) + (2 * HP.Q HP.atomCap) ^ 4⁻¹ * (Lτ * (LI * (Ec + Er) / f))

Optional coarse corollary charging mean pointwise preparation differences. Use normalized_raw_normalizer_root_stability when only the joint mean matters; walked preparation need not approach its true input pointwise.

theorem Matrix.HierarchyParams.H4RankEnvironment.correctionRequest_children_root_stability_of_bounds (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (C : ℝ) (LI : ℝ) (Lτ : ℝ) (Lγ : ℝ), 0 ≤ C ∧ 0 ≤ LI ∧ 0 ≤ Lτ ∧ 0 ≤ Lγ ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (V : Type u_2) [inst_1 : Fintype V] (k : ℕ) (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)) (hr : Admissible r), 0 < r.terminal.rate → ∀ (Kc : ℕ), 0 < Kc → ∀ (raw raw' prep prep' : Environment P J → Matrix V V ℝ) (maximum maximum' : Environment P J → V → ℝ) (σ : Environment P J) (x y : V) (Ec Er : ℝ), have split := Equiv.piSplitAt r.terminal.role fun (x : Fin J) => Cslib.Probability.FrameChannel P 4 1; have S := {z : V | coordinate D r.source ((split σ).2 ⟨r.source.role, ⋯⟩) (ident z)}; have T := {z : V | coordinate D r.terminal (split σ).1 (ident z)}; 0 ≤ Ec → 0 ≤ Er → (∀ z ∈ S, |raw σ z y - raw' σ z y| ≤ Ec) → (∀ z ∈ S, (Finset.kthLargest 1 T fun (w : V) => |raw σ z w - raw' σ z w|) ≤ Er) → |correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw prep maximum σ x y ^ 4⁻¹ - correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw' prep' maximum' σ x y ^ 4⁻¹| ≤ C * (|raw σ x y - raw' σ x y| / r.terminal.rate + Cslib.rowSliceMean (fun (τ : Environment P J) (z : V) => r.source.retains (channels D) τ (ident z)) (fun (τ : Environment P J) (z : V) => r.usage.retains (channels D) τ (ident z)) (fun (τ : Environment P J) (a b : V) => |prep τ a b - prep' τ a b|) x y + (Finset.kthLargest 1 T fun (w : V) => |raw σ x w - raw' σ x w|) / r.terminal.rate) + (2 * HP.Q HP.atomCap) ^ 4⁻¹ * (Lτ * (LI * (Ec + Er) / r.terminal.rate)) + (2 * HP.Q HP.atomCap) ^ 4⁻¹ * Lγ * |maximum σ y - maximum' σ y|

All changing children of the actual request are controlled on the original shared rank environment. The displayed preparation mean is its literal joint normalizer, including all spectator roles and inherited suffixes. Constants precede every request.

theorem Matrix.HierarchyParams.H4RankEnvironment.correctionRequest_children_root_stability (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (C : ℝ) (LI : ℝ) (Lτ : ℝ) (Lγ : ℝ), 0 ≤ C ∧ 0 ≤ LI ∧ 0 ≤ Lτ ∧ 0 ≤ Lγ ∧ ∀ (P J : ℕ) [inst : Fact (Nat.Prime P)] (V : Type u_2) [inst_1 : Fintype V] (k : ℕ) (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)) (hr : Admissible r), 0 < r.terminal.rate → ∀ (Kc : ℕ), 0 < Kc → ∀ (raw raw' prep prep' : Environment P J → Matrix V V ℝ) (maximum maximum' : Environment P J → V → ℝ) (σ : Environment P J) (x y : V), have split := Equiv.piSplitAt r.terminal.role fun (x : Fin J) => Cslib.Probability.FrameChannel P 4 1; have S := {z : V | coordinate D r.source ((split σ).2 ⟨r.source.role, ⋯⟩) (ident z)}; have T := {z : V | coordinate D r.terminal (split σ).1 (ident z)}; have Ec := Finset.kthLargest 1 S fun (z : V) => |raw σ z y - raw' σ z y|; have Er := Finset.kthLargest 1 S fun (z : V) => Finset.kthLargest 1 T fun (w : V) => |raw σ z w - raw' σ z w|; |correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw prep maximum σ x y ^ 4⁻¹ - correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw' prep' maximum' σ x y ^ 4⁻¹| ≤ C * (|raw σ x y - raw' σ x y| / r.terminal.rate + Cslib.rowSliceMean (fun (τ : Environment P J) (z : V) => r.source.retains (channels D) τ (ident z)) (fun (τ : Environment P J) (z : V) => r.usage.retains (channels D) τ (ident z)) (fun (τ : Environment P J) (a b : V) => |prep τ a b - prep' τ a b|) x y + (Finset.kthLargest 1 T fun (w : V) => |raw σ x w - raw' σ x w|) / r.terminal.rate) + (2 * HP.Q HP.atomCap) ^ 4⁻¹ * (Lτ * (LI * (Ec + Er) / r.terminal.rate)) + (2 * HP.Q HP.atomCap) ^ 4⁻¹ * Lγ * |maximum σ y - maximum' σ y|

Explicit entry, row, column and full source by terminal maximum bound for all three changing child classes, with no supplied raw-error envelope.

theorem Matrix.HierarchyParams.H4RankEnvironment.correctionRequest_children_root_envelope (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_2) [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 ℝ) (maximum maximum' : Environment P J → V → ℝ) (σ : Environment P J) (x y : V), let X := fun (τ : Environment P J) (a : V) => r.source.retains (channels D) τ (ident a); let Y := fun (τ : Environment P J) (b : V) => r.terminal.retains (channels D) τ (ident b); let U := fun (τ : Environment P J) (b : V) => r.usage.retains (channels D) τ (ident b); X σ x → Y σ y → |correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw prep maximum σ x y ^ 4⁻¹ - correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw' prep' maximum' σ x y ^ 4⁻¹| ≤ ((Cr / r.terminal.rate * Finset.kthLargest 1 {z : V | X σ z} fun (z : V) => Finset.kthLargest 1 {w : V | Y σ w} fun (w : V) => |raw σ z w - raw' σ z w|) + Cp * if U σ y then Cslib.rowSliceMean X U (fun (τ : Environment P J) (a b : V) => |prep τ a b - prep' τ a b|) x y else 0) + Cm * |maximum σ y - maximum' σ y|

A coarser pointwise envelope for integration, on the original full rank rectangle. The sharper entry/row/column terms remain in correctionRequest_children_root_stability.

theorem Matrix.HierarchyParams.H4RankEnvironment.correctionRequest_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_2) [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 ℝ) (maximum maximum' : 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 maximum) (correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K Kc raw' prep' maximum') ≤ 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) => maximum σ y - maximum' σ y)

Integrated original-source/full-terminal root error for all three changing child classes. RAW error pays its original row moment with explicit width squared and inverse rate to the fourth power. PREP pays its source/usage conditional-row error by Jensen; there is no full-environment atom payment or independence premise.