Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.Integrated

Integrated support and false-event comparison for actual normalized rows #

sum_rootError_four converts a uniform endpoint root error into a row fourth moment using the union of the two actual output supports, of cardinality at most 2K. rowNormPow_falseFirstOverflowBefore_le pays the complementary false-event union at the already-added raw prefix j+1. exists_compression_rowNormPow_le combines this charge with sharp no-overflow final error, weighted preloss and heavy first-overflow tails. All masks and errors may depend on the same environment; true first entries are arbitrary nonnegative reals. Comparison constants precede the later floor, except the stationary coefficient.

This is the conditional fourth-moment assembly corresponding to §8.2, Proposition 8.5 (printed pp. 45–49), of [OAI26e], revision 7ef5c0cc. The generic sharp decoder comparison comes from the existing NormalizedAtomRows API; stochastic prefix estimates, recursive induction and native resource bounds are separate. Christian Reitwiessner supplied the actual decoder specialization; Samuel Schlesinger supplied the adapted compression/norm proof patterns.

theorem Matrix.FourthRootHierarchyParams.NormalizedRow.sum_rootError_four (HP : FourthRootHierarchyParams 16 1 16 32 8) {ι : Type u_1} (S : Finset ι) (ζ : ℝ) (a b : Cslib.RowCompression.State ι) {E : ℝ} (h : ∀ y ∈ S, |Cslib.RowCompression.stateRootError (output HP ζ) S HP.K a b y| ≤ E) :
∑ y ∈ S, |Cslib.RowCompression.stateRootError (output HP ζ) S HP.K a b y| ^ 4 ≤ 2 * ↑HP.K * E ^ 4

The root error has support below 2K, independently of row width and defaults.

Uniform bound for the difference of two actual output fourth roots.

theorem Matrix.FourthRootHierarchyParams.NormalizedRow.rowNormPow_falseFirstOverflow_le (HP : FourthRootHierarchyParams 16 1 16 32 8) (ζ : ℝ) {Ω : Type u_2} {V : Type u_3} [Fintype Ω] [Fintype V] {η N u : ℝ} (hη : 0 < η) (hη1 : η ≤ 1) (hNu : 0 ≤ N * u) (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (n : ℕ → ℕ) (_hK : 0 < HP.K) (m j : ℕ) (hj : j < m) (hn : 0 < n j) (Δ : Ω → V → ℕ → V → Fin 2 → ℝ) (a : Ω → V → Cslib.RowCompression.State V) (truth : Ω → V → V → Fin 2 → ℝ) (ha : ∀ (σ : Ω) (x : V), X σ x → (a σ x).defaultValue = 0) (hfirst : ∀ (σ : Ω) (x y : V), X σ x → Y σ y → 0 ≤ truth σ x y 0) (hsecond : ∀ (σ : Ω) (x y : V), X σ x → Y σ y → truth σ x y 0 ≤ Cslib.RowCompression.dyadicFloor η m j / 4 → truth σ x y 1 = 0) :
have S := fun (σ : Ω) => {y : V | Y σ y}; have b := fun (σ : Ω) (x : V) => Cslib.RowCompression.iterate (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) (a σ x) m; let F := fun (σ : Ω) (x : V) => Cslib.RowCompression.IsFirstOverflow (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) (a σ x) j ∧ ¬Cslib.Probability.heavyCountEvent Y Finset.univ (fun (y : V) => truth σ x y 0) (Cslib.RowCompression.dyadicFloor η m j) (n j) σ; (Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => if F σ x then Cslib.RowCompression.stateRootError (output HP ζ) (S σ) HP.K (b σ x) { defaultValue := 0, row := truth σ x } y else 0) ≤ 64 * ↑HP.K * rangeBound HP ^ 4 / (↑(n j) * Cslib.RowCompression.dyadicFloor η m j ^ 4) * Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (a σ x).row (j + 1) y)

The final actual polynomial outputs on a specified false-first-overflow event are paid for by the raw-prefix moment at j + 1. Every random quantity may share the environment.

theorem Matrix.FourthRootHierarchyParams.NormalizedRow.rowNormPow_falseFirstOverflowBefore_le (HP : FourthRootHierarchyParams 16 1 16 32 8) (ζ : ℝ) {Ω : Type u_2} {V : Type u_3} [Fintype Ω] [Fintype V] {η N u : ℝ} (hη : 0 < η) (hη1 : η ≤ 1) (hNu : 0 ≤ N * u) (X Y : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (X σ x)] [(σ : Ω) → (y : V) → Decidable (Y σ y)] (n : ℕ → ℕ) (hK : 0 < HP.K) (m : ℕ) (hn : ∀ j < m, 0 < n j) (Δ : Ω → V → ℕ → V → Fin 2 → ℝ) (a : Ω → V → Cslib.RowCompression.State V) (truth : Ω → V → V → Fin 2 → ℝ) (ha : ∀ (σ : Ω) (x : V), X σ x → (a σ x).defaultValue = 0) (hfirst : ∀ (σ : Ω) (x y : V), X σ x → Y σ y → 0 ≤ truth σ x y 0) (hsecond : ∀ j < m, ∀ (σ : Ω) (x y : V), X σ x → Y σ y → truth σ x y 0 ≤ Cslib.RowCompression.dyadicFloor η m j / 4 → truth σ x y 1 = 0) :
have S := fun (σ : Ω) => {y : V | Y σ y}; have b := fun (σ : Ω) (x : V) => Cslib.RowCompression.iterate (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) (a σ x) m; let F := fun (j : ℕ) (σ : Ω) (x : V) => Cslib.RowCompression.IsFirstOverflow (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) (a σ x) j ∧ ¬Cslib.Probability.heavyCountEvent Y Finset.univ (fun (y : V) => truth σ x y 0) (Cslib.RowCompression.dyadicFloor η m j) (n j) σ; (Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => if ∃ j < m, F j σ x then Cslib.RowCompression.stateRootError (output HP ζ) (S σ) HP.K (b σ x) { defaultValue := 0, row := truth σ x } y else 0) ≤ ∑ j ∈ Finset.range m, 64 * ↑HP.K * rangeBound HP ^ 4 / (↑(n j) * Cslib.RowCompression.dyadicFloor η m j ^ 4) * Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (a σ x).row (j + 1) y)

The false-type contribution to actual final output error. Taking the union of the possible false first overflows gives the sum of their raw-prefix charges. Both sides use the same RootMetric normalization, and no independence or final-output error premise is required.

theorem Matrix.FourthRootHierarchyParams.NormalizedRow.exists_compression_rowNormPow_le (HP : FourthRootHierarchyParams 16 1 16 32 8) (ζ : ℝ) (hζ : 0 < ζ) {scale : ℝ} (hs : 0 < scale) (hmargin : scale ≤ HP.η) (hcapscale : scale ≤ HP.atomCap / 10000) :
∃ (C : ℝ), 0 ≤ C ∧ ∀ (η : ℝ), 0 < η → η ≤ scale → η ≤ 1 → ∃ (A : ℝ), 0 ≤ A ∧ ∀ {Ω : Type u_1} {V : Type u_2} [inst : Fintype Ω] [inst_1 : Fintype V] (N u : ℝ), 0 ≤ N * u → ∀ (X Y : Ω → V → Prop) [inst_2 : (σ : Ω) → (x : V) → Decidable (X σ x)] [inst_3 : (σ : Ω) → (y : V) → Decidable (Y σ y)] (n : ℕ → ℕ) (m : ℕ), (∀ i < m, HP.K ≤ n i) → ∀ (Δ : Ω → V → ℕ → V → Fin 2 → ℝ) (raw truth : Ω → V → V → Fin 2 → ℝ), (∀ (σ : Ω) (x y : V), X σ x → Y σ y → 0 ≤ truth σ x y 0) → (∀ (σ : Ω) (x y : V), X σ x → Y σ y → |truth σ x y 1| ≤ scale / 2) → (∀ j < m, ∀ (σ : Ω) (x y : V), X σ x → Y σ y → truth σ x y 0 ≤ Cslib.RowCompression.dyadicFloor η m j / 4 → truth σ x y 1 = 0) → ∀ (ε : ℕ → Ω → V → ℝ) (εfinal : Ω → V → ℝ), (∀ i < m, ∀ (σ : Ω) (x : V), X σ x → 0 ≤ ε i σ x) → (∀ (σ : Ω) (x : V), X σ x → 0 ≤ εfinal σ x) → (∀ i < m, ∀ (σ : Ω) (x y : V), X σ x → Y σ y → Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (raw σ x) (i + 1) y) ≤ ε i σ x) → (∀ (σ : Ω) (x y : V), X σ x → Y σ y → Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (raw σ x) m y) ≤ εfinal σ x) → have S := fun (σ : Ω) => {y : V | Y σ y}; have actual := fun (σ : Ω) (x : V) => Cslib.RowCompression.iterate (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) { defaultValue := 0, row := raw σ x } m; have Pre := fun (σ : Ω) (x : V) => ∑ i ∈ Finset.range m, Cslib.RowCompression.dyadicFloor η m i * ε i σ x; have No := fun (σ : Ω) (x : V) => if ∀ i < m, Cslib.RowCompression.stepThreshold (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) { defaultValue := 0, row := raw σ x } i ≤ Cslib.RowCompression.dyadicFloor η m i then εfinal σ x else 0; have Tail := fun (σ : Ω) (x : V) => ∑ j ∈ Finset.range m, if Cslib.RowCompression.IsFirstOverflow (S σ) n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor η m) (Δ σ x) { defaultValue := 0, row := raw σ x } j ∧ Cslib.Probability.heavyCountEvent Y Finset.univ (fun (y : V) => truth σ x y 0) (Cslib.RowCompression.dyadicFloor η m j) (n j) σ then ∑ i ∈ Finset.Ico j m, 28 ^ (m - i) * ε i σ x else 0; (Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => Cslib.RowCompression.stateRootError (output HP ζ) (S σ) HP.K (actual σ x) { defaultValue := 0, row := truth σ x } y) ≤ 128 * ↑HP.K * (A ^ 4 * Cslib.vertexNormPow 4 N u X Pre + C ^ 4 * Cslib.vertexNormPow 4 N u X No + C ^ 4 * Cslib.vertexNormPow 4 N u X Tail) + ∑ j ∈ Finset.range m, 64 * ↑HP.K * rangeBound HP ^ 4 / (↑(n j) * Cslib.RowCompression.dyadicFloor η m j ^ 4) * Cslib.rowNormPow 4 N u X Y fun (σ : Ω) (x y : V) => Cslib.RowCompression.clippedError (truth σ x y 0) (truth σ x y 1) (Cslib.RowCompression.uncompressedRow (Δ σ x) (raw σ x) (j + 1) y)

The actual final output is bounded by weighted prefix, no-overflow final and true-overflow budgets, plus the existing false-overflow raw-prefix charge. The masks and all errors may be correlated. No final-output error premise or factor counting endpoints or groups is introduced.