Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.SecondSignal

Preparatory second signals on the actual usage slice #

The selected preparation is evaluated on a supplied completed raw child, including the actual first-signal H4 walk, on one full environment. Its rank gate uses the terminal rate, while its walk and mean use source × usage. The initial second coordinate is literally zero. The selected input's range and rank support pay 16K on an admitted source horizon, giving an explicit finite walk length for positive noise tolerance. No desired mean or independence of children is assumed. The target remains the existing genuine joint preparation mean; convergence of the selected input means to that target is a separate obligation.

These are original finite bridges using the existing fourth-moment adaptation of [OpenAI2026LogSpace, Lemma 7.8, printed p. 42], revision 7ef5c0cc. Telescoping and support proofs reuse Samuel Schlesinger's compression API. Recursive child budgets and envelopes, recursive estimation and native RL remain open.

Main definitions #

Main results #

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (st : List (ZMod P)) (k : ℕ) (A : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) :

Selected preparation of a supplied completed raw child in matrix units. The atom recipe performs the sole division by rate k; a normalized first prefix must be rescaled.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.rawSamplePreparation {P J : ℕ} [Fact (Nat.Prime P)] {q : ℕ} (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (l bin ks km k kb : ℕ) (ss sm st : List (ZMod P)) (Kc : ℕ) (binCutoff : ℝ → ℝ) (raw prep : HierarchyTask.Request q (Fin J) (ZMod P) → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (maximum : HierarchyTask.Request q (Fin J) (ZMod P) → Environment P J → ZMod P → ℝ) (σ : Environment P J) :

Optional finite preparation of an unaveraged raw sample, not a recursive evaluator. All child functions see the same environment; dense base and zero-correction cases are inherited.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation_range {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (st : List (ZMod P)) (k : ℕ) (A : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) (x y : ZMod P) :
selectedPreparation HP D R st k A σ x y ∈ Set.Icc 0 1

The selected cutoff and gate give [0,1] even for signed, correlated residuals.

@[simp]
theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation_zero {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (st : List (ZMod P)) (k : ℕ) (σ : Environment P J) (x y : ZMod P) :
selectedPreparation HP D R st k (fun (x : Environment P J) (x_1 x_2 : ZMod P) => 0) σ x y = 0

A zero completed raw child has zero preparation, irrespective of the rank slice.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation_support {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (st : List (ZMod P)) (k : ℕ) (A : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) (x : ZMod P) :
{y ∈ {y : ZMod P | retainedMask R.terminal (side P k) D st σ y} | selectedPreparation HP D R st k A σ x y ≠ 0}.card < HP.K

This rank support bound concerns the preparation input, not the averaged walk. Walk averaging can combine different retained supports.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation_moment {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (ks k kt : ℕ) (ss st : List (ZMod P)) (A : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) {N u : ℝ} (hNu : 0 ≤ N * u) :
(Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) fun (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k A σ x y) ≤ (N * u)⁻¹ * ∑ x : ZMod P, ∑ y : ZMod P, ↑{σ : Environment P J | retainedMask R.source (side P ks) D ss σ x ∧ retainedMask R.terminal (side P kt) D st σ y}.dens

Finite input payment with the exact joint densities and both width sums retained. This does not imply a uniform numerical recursive budget. Empty slices contribute zero.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation_support_moment {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 kt : ℕ) (husage : k ≤ kt) (ss st : List (ZMod P)) (A : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) {N u : ℝ} (hNu : 0 ≤ N * u) :
(Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) fun (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k A σ x y) ≤ ↑HP.K * ((N * u)⁻¹ * ∑ x : ZMod P, ↑{σ : Environment P J | retainedMask R.source (side P ks) D ss σ x}.dens)

Sparsity pays for the selected input before averaging, even when the residual, source retention and rank support depend on the same full environment. Usage is narrower than rank. Only the source density sum remains; there is no endpoint width factor.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.selectedPreparation_moment_le {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (H : Horizon P) (ks k kt : ℕ) (hks : ks ≤ H.maxExponent) (husage : k ≤ kt) (ss st : List (ZMod P)) (A : Environment P J → Matrix (ZMod P) (ZMod P) ℝ) :
(Cslib.rowNormPow 4 (↑P) (rate ks) (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) fun (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k A σ x y) ≤ 16 * ↑HP.K

On an admitted source horizon the normalized pre-walk fourth moment is at most 16K. Only source exponent ks needs the horizon; no input/support independence is used.

def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.secondSignalIncrement {P J : ℕ} (F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (ζ : ℝ) (σ : Environment P J) (x : ZMod P) (i : ℕ) (y : ZMod P) :

Scaled second differences with prior zero at index zero.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualPrefix_twoSignal_first {P J : ℕ} (F H : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (i : ℕ) (σ : Environment P J) (x y : ZMod P) :
actualPrefix (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) i σ x y 0 = F (i + 1) σ x y / rate k

The existing first increment accepts the second slot without changing its prefix.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualPrefix_twoSignal_second {P J : ℕ} (F H : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (i : ℕ) (σ : Environment P J) (x y : ZMod P) :
actualPrefix (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) i σ x y 1 = ζ * H (i + 1) σ x y

Telescoping the second coordinate from literal zero gives ζ times the actual walk.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualTwoSignal_zero_off {P J : ℕ} [Fact (Nat.Prime P)] {E : Type u_1} [Fintype E] (s t : Fin J) (Ls 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 Lt D st) x y) E) (times : ℕ → ZMod P → ZMod P → ℕ) (input F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (σ : Environment P J) (x y : ZMod P) (hy : ¬retainedMask t Lt D st σ y) :
have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask s Ls D ss) (retainedMask t Lt D st) (graphs j) (times j) (input j); have Δ := firstSignalIncrement F k (secondSignalIncrement H ζ); (∀ (i : ℕ), actualPrefix Δ (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) i σ x y 1 = 0) ∧ ∀ (S : Finset (ZMod P)) (n K : ℕ → ℕ) (ρ : ℕ → ℝ) (m : ℕ), (Cslib.RowCompression.iterate S n K ρ (Δ σ x) { defaultValue := 0, row := fun (x : ZMod P) (x_1 : Fin 2) => 0 } m).row y 1 = 0

Actual two-signal zero extension persists through the uncompressed prefix and compression. There is no support restriction on the full-rank first signal.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualNoiseEntry_secondSignalIncrement {P J : ℕ} [Fact (Nat.Prime P)] {E : Type u_1} [Fintype E] [Nonempty E] (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 Lt D st) x y) E) (times : ℕ → ZMod P → ZMod P → ℕ) (input F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (i : ℕ) (σ : Environment P J) (x y : ZMod P) :
have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask s Ls D ss) (retainedMask t Lt D st) (graphs j) (times j) (input j); actualNoiseEntry s t Ls La Lt D ss st k G (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 1 i σ x y = |ζ| * |H (i + 1) σ x y - Cslib.rowSliceMean (retainedMask s Ls D ss) (retainedMask t Lt D st) (input (i + 1)) x y|

Stationarity identifies the actual second noise on source × usage, including empty slices. The first slot and full-rank denominator data remain arbitrary.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualNoiseEntry_second_row {P J : ℕ} [Fact (Nat.Prime P)] {E : Type u_1} [Fintype E] [Nonempty E] (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 Lt D st) x y) E) (times : ℕ → ZMod P → ZMod P → ℕ) (input F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (k : ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (i : ℕ) (N u : ℝ) :
have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask s Ls D ss) (retainedMask t Lt D st) (graphs j) (times j) (input j); Cslib.rowNormPow 4 N u (retainedMask s Ls D ss) (retainedMask t Lt D st) (actualNoiseEntry s t Ls La Lt D ss st k G (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 1 i) = ζ ^ 4 * Cslib.rowNormPow 4 N u (retainedMask s Ls D ss) (retainedMask t Lt D st) fun (σ : Environment P J) (x y : ZMod P) => H (i + 1) σ x y - Cslib.rowSliceMean (retainedMask s Ls D ss) (retainedMask t Lt D st) (input (i + 1)) x y

Exact row scaling of the actual second noise.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualSecondSignal_noise_le_input {P J : ℕ} [Fact (Nat.Prime P)] (R : RoleProfile J) (ks kt La : ℕ) (D : ZMod P) (ss st : List (ZMod P)) (input F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (steps : ℕ → ℕ) (k : ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) {N u : ℝ} (hNu : 0 ≤ N * u) (i : ℕ) :
have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (graph R.source R.terminal ⋯ (side P ks) (side P kt) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => steps j) (input j); Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (actualNoiseEntry R.source R.terminal (side P ks) La (side P kt) D ss st k G (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 1 i) ≤ ζ ^ 4 * (32 * (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) ^ (2 * steps (i + 1)) * Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (input (i + 1)))

The actual usage-slice graph discharges the endpoint ROW noise contract. No desired final noise is a premise, and the input is at budget i+1 on the full shared environment.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualSelectedSecondSignal_noise {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (R : RoleProfile J) (ks k kt : ℕ) (_husage : k ≤ kt) (ss st : List (ZMod P)) (A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (steps : ℕ → ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) {N u : ℝ} (hNu : 0 ≤ N * u) (i : ℕ) :
have T := fun (j : ℕ) (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k (A j) σ x y; have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (graph R.source R.terminal ⋯ (side P ks) (side P kt) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => steps j) (T j); Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (actualNoiseEntry R.source R.terminal (side P ks) (side P k) (side P kt) D ss st k G (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 1 i) ≤ ζ ^ 4 * (32 * (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) ^ (2 * steps (i + 1)) * Cslib.rowNormPow 4 N u (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (T (i + 1)))

Completed-child preparation client of the endpoint ROW contraction. The walk uses the narrower usage exponent kt, while preparation ranks use k. Every budget j uses its own completed raw child; no desired mean is supplied.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualSelectedSecondSignal_noise_le {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (Horizon : Horizon P) (ks k kt : ℕ) (husage : k ≤ kt) (hks : ks ≤ Horizon.maxExponent) (ss st : List (ZMod P)) (A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (steps : ℕ → ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (i : ℕ) :
have T := fun (j : ℕ) (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k (A j) σ x y; have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (graph R.source R.terminal ⋯ (side P ks) (side P kt) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => steps j) (T j); Cslib.rowNormPow 4 (↑P) (rate ks) (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (actualNoiseEntry R.source R.terminal (side P ks) (side P k) (side P kt) D ss st k G (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 1 i) ≤ ζ ^ 4 * (32 * (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) ^ (2 * steps (i + 1)) * (16 * ↑HP.K))

Numerical second-noise payment for the selected completed-child preparation. The support argument applies to T before the walk, never to its possibly dense average.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actualSelectedSecondSignal_noise_le_dyadic {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (hK : 0 < HP.K) (D : ZMod P) (R : RoleProfile J) (Horizon : Horizon P) (ks k kt : ℕ) (husage : k ≤ kt) (hks : ks ≤ Horizon.maxExponent) (ss st : List (ZMod P)) (A : ℕ → Environment P J → Matrix (ZMod P) (ZMod P) ℝ) (F : ℕ → Environment P J → ZMod P → ZMod P → ℝ) (steps : ℕ → ℕ) (ζ : ℝ) (G : Matrix (ZMod P) (ZMod P) ℝ) (i m : ℕ) {ε : ℝ} (hε : 0 < ε) (hsteps : Cslib.Probability.spectralWalkLength (1 - 1 / (155648 * (↑J + 1) * 4 ^ 4)) (ζ ^ 4 * 512 * ↑HP.K) ε (Cslib.RowCompression.dyadicSlack m i) ≤ steps (i + 1)) :
have T := fun (j : ℕ) (σ : Environment P J) (x y : ZMod P) => selectedPreparation HP D R st k (A j) σ x y; have H := fun (j : ℕ) => Cslib.conditionalWalk (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (graph R.source R.terminal ⋯ (side P ks) (side P kt) ⋯ ⋯ (fun (x : ZMod P) => CopyPadding.identifier D ss x) fun (y : ZMod P) => CopyPadding.identifier D st y) (fun (x x_1 : ZMod P) => steps j) (T j); Cslib.rowNormPow 4 (↑P) (rate ks) (retainedMask R.source (side P ks) D ss) (retainedMask R.terminal (side P kt) D st) (actualNoiseEntry R.source R.terminal (side P ks) (side P k) (side P kt) D ss st k G (firstSignalIncrement F k (secondSignalIncrement H ζ)) (fun (x : Environment P J) (x_1 x_2 : ZMod P) (x_3 : Fin 2) => 0) 1 i) ≤ (ε * 64⁻¹ ^ Cslib.RowCompression.dyadicSlack m i) ^ 4

The logarithmic step choice discharges the actual second-prefix noise budget at i+1. First-signal payments and deterministic mean envelopes remain separate obligations.