Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.RequestSharp

Sharp comparison on the existing full-environment request #

This client applies the actual decoder theorem to the existing normalizedRequest using its source/usage conditional mean and original terminal rank. True first entries only need be nonnegative. The first-overflow client derives its actual mean range from bounded preparation inputs, including empty slices. Raw prefix errors and the overflow events remain explicit inputs; no normalized-output certificate is assumed. Lower-child moments and recursive budgets remain open.

theorem Matrix.HierarchyParams.H4RankEnvironment.normalizedRequest_sharp_noOverflow {P J : ℕ} [Fact (Nat.Prime P)] {V : Type u_1} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) {ζ scale : ℝ} (hζ : 0 < ζ) (hs : 0 < scale) (hmargin : scale ≤ HP.η) :
∃ (Cfinal : ℝ), 0 ≤ Cfinal ∧ ∀ (δ : ℝ), 0 < δ → δ ≤ scale → ∃ (Cpre : ℝ), 0 ≤ Cpre ∧ ∀ {k : ℕ} (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)), Admissible r → ∀ (raw prep trueRaw truePrep : Environment P J → Matrix V V ℝ) (σ : Environment P J) (x : V) (n : ℕ → ℕ) (Δ : ℕ → V → Fin 2 → ℝ) (m : ℕ), have s := {z : V | r.terminal.retains (channels D) σ (ident z)}; have signals := requestSignals ζ D ident r raw prep σ x; have truth := requestSignals ζ D ident r trueRaw truePrep σ x; (∀ i < m, Cslib.RowCompression.stepThreshold s n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor δ m) Δ { defaultValue := 0, row := signals } i ≤ Cslib.RowCompression.dyadicFloor δ m i) → (∀ y ∈ s, 0 ≤ trueRaw σ x y / r.terminal.rate) → ∀ (ε : ℕ → ℝ), (∀ i < m, 0 ≤ ε i) → (∀ i < m, ∀ y ∈ s, δ / 2 ≤ truth y 0 → Cslib.RowCompression.clippedError (truth y 0) (truth y 1) (Cslib.RowCompression.uncompressedRow Δ signals (i + 1) y) ≤ ε i) → ∀ (εfinal : ℝ), 0 ≤ εfinal → (∀ y ∈ s, Cslib.RowCompression.clippedError (truth y 0) (truth y 1) (Cslib.RowCompression.uncompressedRow Δ signals m y) ≤ εfinal) → ∀ y ∈ s, have a := Cslib.RowCompression.iterate s n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor δ m) Δ { defaultValue := 0, row := signals } m; |(if r.usage.retains (channels D) σ (ident y) then FourthRootHierarchyParams.NormalizedRow.output HP ζ (a.row y 0) (a.row y 1) (Cslib.RowCompression.firstRank s HP.K a.defaultValue a.row) else 0) ^ 4⁻¹ - normalizedRequest D ident r HP.atomCutoff HP.ρ HP.K trueRaw truePrep σ x y ^ 4⁻¹| ≤ Cpre * ∑ i ∈ Finset.range m, Cslib.RowCompression.dyadicFloor δ m i * ε i + Cfinal * εfinal

Actual full-environment output comparison on the no-overflow event. The final coefficient is fixed before choosing compressionScale; no lower prep-mean bound is required.

theorem Matrix.HierarchyParams.H4RankEnvironment.normalizedRequest_sharp_firstOverflow {P J : ℕ} [Fact (Nat.Prime P)] {V : Type u_1} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) {ζ scale : ℝ} (hζ : 0 < ζ) (hs : 0 < scale) (hmargin : scale ≤ HP.η) (hsmall : ζ ≤ scale / 2) (hcapscale : scale ≤ HP.atomCap / 10000) :
∃ (Ctail : ℝ), 0 ≤ Ctail ∧ ∀ (δ : ℝ), 0 < δ → δ ≤ scale → ∃ (Cpre : ℝ), 0 ≤ Cpre ∧ ∀ {k : ℕ} (D : ZMod P) (ident : V → ZMod P) (r : HierarchyTask.Request k (Fin J) (ZMod P)), Admissible r → ∀ (raw prep trueRaw truePrep : Environment P J → Matrix V V ℝ) (σ : Environment P J) (x : V) (n : ℕ → ℕ) (Δ : ℕ → V → Fin 2 → ℝ) (m j : ℕ), j < m → have s := {z : V | r.terminal.retains (channels D) σ (ident z)}; have signals := requestSignals ζ D ident r raw prep σ x; have truth := requestSignals ζ D ident r trueRaw truePrep σ x; Cslib.RowCompression.IsFirstOverflow s n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor δ m) Δ { defaultValue := 0, row := signals } j → (∀ y ∈ s, 0 ≤ trueRaw σ x y / r.terminal.rate) → (∀ (τ : Environment P J) (x y : V), truePrep τ x y ∈ Set.Icc 0 1) → (∀ (i : ℕ), j ≤ i → i < m → HP.K ≤ n i) → ∀ (ε : ℕ → ℝ), (∀ i < m, 0 ≤ ε i) → (∀ i < j, ∀ y ∈ s, δ / 2 ≤ truth y 0 → Cslib.RowCompression.clippedError (truth y 0) (truth y 1) (Cslib.RowCompression.uncompressedRow Δ signals (i + 1) y) ≤ ε i) → (∀ (i : ℕ), j ≤ i → i < m → ∀ y ∈ s, Cslib.RowCompression.clippedError (truth y 0) (truth y 1) (Cslib.RowCompression.uncompressedRow Δ signals (i + 1) y) ≤ ε i) → ∀ y ∈ s, have a := Cslib.RowCompression.iterate s n (fun (x : ℕ) => HP.K) (Cslib.RowCompression.dyadicFloor δ m) Δ { defaultValue := 0, row := signals } m; |(if r.usage.retains (channels D) σ (ident y) then FourthRootHierarchyParams.NormalizedRow.output HP ζ (a.row y 0) (a.row y 1) (Cslib.RowCompression.firstRank s HP.K a.defaultValue a.row) else 0) ^ 4⁻¹ - normalizedRequest D ident r HP.atomCutoff HP.ρ HP.K trueRaw truePrep σ x y ^ 4⁻¹| ≤ Cpre * ∑ i ∈ Finset.range j, Cslib.RowCompression.dyadicFloor δ m i * ε i + Ctail * ∑ i ∈ Finset.Ico j m, 28 ^ (m - i) * ε i

The same actual request after its first overflow. The uncentered prep signal is bounded using the one full-environment mean; no independent preparatory environment is introduced.