Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.CommonEnvelope

Common deterministic envelopes of the actual two-signal prefixes #

The first envelope is the actual absolute input mean error divided by rate k + G. The second is B1 of the completed full-terminal RAW walk. A finite zero-padded maximum after division by the dyadic slope gives one deterministic matrix per channel. Both prefixes use the same completed raw walk, and preparation follows that walk. The fourth moment is paid by the sum of the scaled actual prefix envelope moments. This finite construction does not assume a final common envelope or a target cap. The finite output consumer is ReserveOutput; recursive reserve induction remains separate. The row/normalization proof patterns are adapted from Samuel Schlesinger.

Main definitions #

Main results #

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.firstMeanEnvelope {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k : ℕ) (input : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (x y : ZMod P) :

First absolute input-mean envelope, in the actual relative first-signal units.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.firstMeanEnvelope_moment_le {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k : ℕ) (input : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) (cost : Matrix (ZMod P) (ZMod P) ℝ) (he : ∀ (x y : ZMod P), |Cslib.rowSliceMean (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) input x y - G x y| ≤ cost x y) {N u : ℝ} (hNu : 0 ≤ N * u) :
(Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) fun (x : Environment P J) => firstMeanEnvelope R D ss st ks k input G) ≤ (rate k)⁻¹ ^ 4 * Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) fun (x : Environment P J) => cost

An absolute input mean-error payment bounds the first envelope. No clipped relative estimate is inverted, and no upper bound on the genuine residual is used.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.twoSignalMeanEnvelope {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k ku : ℕ) (Lh Lρ ζ : ℝ) (input A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (ν : Fin 2) (i : ℕ) :

The actual per-prefix envelopes, before the finite maximum.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.commonMeanEnvelope {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k ku m : ℕ) (Lh Lρ ζ : ℝ) (input A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (ν : Fin 2) :

One actual deterministic matrix per channel, zero at an empty prefix horizon.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.commonMeanEnvelope_nonneg {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k ku m : ℕ) (Lh Lρ ζ : ℝ) (input A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (ν : Fin 2) (x y : ZMod P) :
0 ≤ commonMeanEnvelope R D ss st ks k ku m Lh Lρ ζ input A G ν x y

All common matrices are nonnegative, including an empty prefix set.

@[simp]
theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.commonMeanEnvelope_zero {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k ku : ℕ) (Lh Lρ ζ : ℝ) (input A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (ν : Fin 2) :
commonMeanEnvelope R D ss st ks k ku 0 Lh Lρ ζ input A G ν = 0

At horizon zero there is no residual prefix contribution in either channel.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualTwoSignal_mean_le_common {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (ks k ku m : ℕ) (husage : k ≤ ku) (ss st : List (ZMod P)) (input : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (rawSteps prepSteps : ℕ → ℕ) {Lh Lρ : ℝ} (hLρ : 0 ≤ Lρ) (hh : ∀ (a b : ℝ), |Cslib.polynomialPrepCutoff4 HP.θ a - Cslib.polynomialPrepCutoff4 HP.θ b| ≤ Lh * |a - b|) (hρ : ∀ (a b : ℝ), |HP.ρ a - HP.ρ b| ≤ Lρ * |a - b|) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (ν : Fin 2) (i : ℕ) (hi : i < m) (x y : ZMod P) :
have A := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) (graph R.source R.terminal ⋯ (side P ks) (side P k) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => rawSteps j) (input j); have T := fun (j : ℕ) (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k (A j) σ x y; have W := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P ku) D st) (graph R.source R.terminal ⋯ (side P ks) (side P ku) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => prepSteps j) (T j); |actualClippedMean HP R.source R.terminal (side P ks) (side P k) (side P ku) D ss st k G ζ (firstSignalIncrement A k (secondSignalIncrement W ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) ν i x y| ≤ commonMeanEnvelope R D ss st ks k ku m Lh Lρ ζ input A G ν x y * 2 ^ Cslib.RowCompression.dyadicSlack m i

Actual completed raw walking, followed by selected preparation and the narrower preparation walk, satisfies the common envelope. Neither mean/noise nor B is a premise.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.commonMeanEnvelope_moment_le {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k ku m : ℕ) (Lh Lρ ζ : ℝ) (input A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (ν : Fin 2) {N u : ℝ} (hNu : 0 ≤ N * u) :
(Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P (if ν = 0 then k else ku)) D st) fun (x : Environment P J) => commonMeanEnvelope R D ss st ks k ku m Lh Lρ ζ input A G ν) ≤ ∑ i ∈ Finset.range m, Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P (if ν = 0 then k else ku)) D st) fun (x : Environment P J) (x_1 y : ZMod P) => twoSignalMeanEnvelope R D ss st ks k ku Lh Lρ ζ input A G ν i x_1 y / 2 ^ Cslib.RowCompression.dyadicSlack m i

Common B fourth moments are paid by scaled ACTUAL prefix envelope moments. The second channel keeps the narrower usage mask throughout integration.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.commonMeanEnvelope_moment_le_cost {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (D : ZMod P) (ss st : List (ZMod P)) (ks k ku m : ℕ) (husage : k ≤ ku) {Lh Lρ : ℝ} (hLh : 0 ≤ Lh) (hLρ : 0 ≤ Lρ) (ζ : ℝ) (input A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) (cost : ℕ → Matrix (ZMod P) (ZMod P) ℝ) (he : ∀ i < m, ∀ (x y : ZMod P), |Cslib.rowSliceMean (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) (input (i + 1)) x y - G x y| ≤ cost i x y) {N u childBudget rawBudget : ℝ} (hNu : 0 ≤ N * u) (hc : ∀ i < m, (Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) fun (x : Environment P J) => cost i) ≤ childBudget) (hz : ∀ i < m, (Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) fun (σ : Environment P J) (x y : ZMod P) => A (i + 1) σ x y - Cslib.rowSliceMean (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P k) D st) (input (i + 1)) x y) ≤ rawBudget) (ν : Fin 2) :
(Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P (if ν = 0 then k else ku)) D st) fun (x : Environment P J) => commonMeanEnvelope R D ss st ks k ku m Lh Lρ ζ input A G ν) ≤ ↑m * max ((rate k)⁻¹ ^ 4 * childBudget) (↑P * (|ζ| * (Lh + Lρ) / rate k) ^ 4 * (8 * (rawBudget + childBudget)))

Concrete finite allocation from absolute conditional child costs and centered RAW moments. The width/rate/gate/zeta amplification of B1 remains visible. This payment is deliberately finite-horizon: it charges at most m copies of the larger channel budget.