Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.FirstMeanError

First deterministic mean error after the completed raw walk #

Stationarity of the full-terminal raw walk and first-prefix telescoping preserve the absolute input mean error, divided by rate k + G x y. This gives the first clipped mean envelope without converting a clipped relative bound back to an absolute bound. The target is explicitly nonnegative. Second-signal preparation still requires the full-rank maximum in preparationError; no recursive relative budget is proved here. The first-prefix pattern is adapted from Samuel Schlesinger's compression API.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualClippedMean_first_eq {P J : ℕ} [Fact (Nat.Prime P)] {E : Type u_1} [Fintype E] [Nonempty E] (HP : FourthRootHierarchyParams 16 1 16 32 8) (s t : Fin J) (Ls La Lt : ℕ) (D : ZMod P) (ss st : List (ZMod P)) (graphs : ℕ → (x y : ZMod P) → Cslib.RotationMap (Cslib.RetainedPairSlice (retainedMask s Ls D ss) (retainedMask t La D st) x y) E) (times : ℕ → ZMod P → ZMod P → ℕ) (input : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (second : Environment P J → ZMod P → ℕ → ZMod P → ℝ) (i : ℕ) (x y : ZMod P) :
have F := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask s Ls D ss) (retainedMask t La D st) (graphs j) (times j) (input j); actualClippedMean HP s t Ls La Lt D ss st k G ζ (firstSignalIncrement F k second) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 0 i x y = min 1 (|Cslib.rowSliceMean (retainedMask s Ls D ss) (retainedMask t La D st) (input (i + 1)) x y - G x y| / (rate k + G x y))

Actual first discrepancy of a completed raw walk: stationarity removes the walk, while rate normalization is retained exactly. Empty conditioning slices are allowed.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualClippedMean_first_le {P J : ℕ} [Fact (Nat.Prime P)] {E : Type u_1} [Fintype E] [Nonempty E] (HP : FourthRootHierarchyParams 16 1 16 32 8) (s t : Fin J) (Ls La Lt : ℕ) (D : ZMod P) (ss st : List (ZMod P)) (graphs : ℕ → (x y : ZMod P) → Cslib.RotationMap (Cslib.RetainedPairSlice (retainedMask s Ls D ss) (retainedMask t La D st) x y) E) (times : ℕ → ZMod P → ZMod P → ℕ) (input : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (second : Environment P J → ZMod P → ℕ → ZMod P → ℝ) (i : ℕ) (x y : ZMod P) (hG : 0 ≤ G x y) {error : ℝ} (he : |Cslib.rowSliceMean (retainedMask s Ls D ss) (retainedMask t La D st) (input (i + 1)) x y - G x y| ≤ error) :
have F := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask s Ls D ss) (retainedMask t La D st) (graphs j) (times j) (input j); actualClippedMean HP s t Ls La Lt D ss st k G ζ (firstSignalIncrement F k second) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 0 i x y ≤ min 1 (error / (rate k + G x y))

A matrix-unit absolute input mean bound gives the genuine first clipped mean bound after any completed raw walk. This direction needs no upper bound on G.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualEstimatedResidual_first_mean_le {P J : ℕ} [Fact (Nat.Prime P)] {HP : FourthRootHierarchyParams 16 1 16 32 8} (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (steps : ℕ → ℕ) (ζ : ℝ) (second : Environment P J → ZMod P → ℕ → ZMod P → ℝ) (j : ℕ) (x y : ZMod P) :
actualClippedMean HP s.roles.source s.roles.terminal (side P s.sourceExponent) (side P s.terminalExponent) (side P s.terminalExponent) s.direction s.sourceSuffix s.terminalSuffix s.terminalExponent s.residual ζ (firstSignalIncrement (s.walkSteps children steps) s.terminalExponent second) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 0 j x y ≤ min 1 (s.cost children j x y / (rate s.terminalExponent + s.residual x y))

First deterministic envelope of the actual finite estimated residual, after its completed full-terminal raw walk. Structural requests stay fixed across walk precisions. Preparation is applied later; no full-rank maximum has been replaced by a usage maximum.