Documentation

CslibFrontier.Computability.LogSpaceDerandomization.CorrectionRowRecipeStability

Stability of incoming correction preparation #

The raw tables may be signed and unbounded. Both ranks use the same finite source and terminal sets, including empty sets. The incoming estimate explicitly retains column errors and the maximum row error over the full source by terminal rectangle. The normalized factorization reuses the bounded scalar decoder; preparatory estimates enter its clipped denominator through the actual joint conditional mean.

Main results #

theorem Matrix.auxScore_stability {V : Type u_1} {I : ℝ → ℝ → ℝ} {L : ℝ} (hL : 0 ≤ L) (hI : ∀ (v q v' q' : ℝ), |I v q - I v' q'| ≤ L * (|v - v'| + |q - q'|)) {K : ℕ} (hK : 0 < K) {f : ℝ} (hf : 0 < f) (A B : Matrix V V ℝ) (T : Finset V) (x y : V) :
|auxScore I K f A T x y - auxScore I K f B T x y| ≤ L * (|A x y - B x y| + Finset.kthLargest 1 T fun (w : V) => |A x w - B x w|) / f

Auxiliary incoming scores propagate entry and row-rank errors at the actual rate.

theorem Matrix.incomingGate_stability {V : Type u_1} {I : ℝ → ℝ → ℝ} {τ : ℝ → ℝ} {LI Lτ : ℝ} (hLI : 0 ≤ LI) (hLτ : 0 ≤ Lτ) (hI : ∀ (v q v' q' : ℝ), |I v q - I v' q'| ≤ LI * (|v - v'| + |q - q'|)) (hτ : ∀ (a b : ℝ), |τ a - τ b| ≤ Lτ * |a - b|) {K Kc : ℕ} (hK : 0 < K) (hKc : 0 < Kc) {f : ℝ} (hf : 0 < f) (A B : Matrix V V ℝ) (S T : Finset V) (y : V) {Ec Er : ℝ} (hEc : 0 ≤ Ec) (hEr : 0 ≤ Er) (hc : ∀ x ∈ S, |A x y - B x y| ≤ Ec) (hr : ∀ x ∈ S, (Finset.kthLargest 1 T fun (w : V) => |A x w - B x w|) ≤ Er) :
|incomingGate I τ K Kc f A S T y - incomingGate I τ K Kc f B S T y| ≤ Lτ * (LI * (Ec + Er) / f)

Incoming ranks see the column error and every source row's terminal-rank error. No source or terminal resampling occurs in this estimate.

theorem Matrix.correctionPrep_stability {V : Type u_1} {I : ℝ → ℝ → ℝ} {τ h ρ : ℝ → ℝ} {LI Lτ Lh Lρ : ℝ} (hLI : 0 ≤ LI) (hLτ : 0 ≤ Lτ) (hLρ : 0 ≤ Lρ) (hh : ∀ (z : ℝ), h z ∈ Set.Icc 0 1) (hρ : ∀ (z : ℝ), ρ z ∈ Set.Icc 0 1) (hτrange : ∀ (z : ℝ), τ z ∈ Set.Icc 0 1) (hI : ∀ (v q v' q' : ℝ), |I v q - I v' q'| ≤ LI * (|v - v'| + |q - q'|)) (hτ : ∀ (a b : ℝ), |τ a - τ b| ≤ Lτ * |a - b|) (hlh : ∀ (a b : ℝ), |h a - h b| ≤ Lh * |a - b|) (hlρ : ∀ (a b : ℝ), |ρ a - ρ b| ≤ Lρ * |a - b|) {K Kc : ℕ} (hK : 0 < K) (hKc : 0 < Kc) {f : ℝ} (hf : 0 < f) (A B : Matrix V V ℝ) (S T : Finset V) (x y : V) {Ec Er : ℝ} (hEc : 0 ≤ Ec) (hEr : 0 ≤ Er) (hc : ∀ z ∈ S, |A z y - B z y| ≤ Ec) (hr : ∀ z ∈ S, (Finset.kthLargest 1 T fun (w : V) => |A z w - B z w|) ≤ Er) :
|correctionPrep I τ K Kc f A h ρ S T x y - correctionPrep I τ K Kc f B h ρ S T x y| ≤ (Lh * |A x y - B x y| + Lρ * Finset.kthLargest 1 T fun (w : V) => |A x w - B x w|) / f + Lτ * (LI * (Ec + Er) / f)

Actual correction preparation, with a changing completed raw child. The incoming term keeps the full source/terminal rectangle; the local term uses the selected row.

theorem Matrix.CorrectionRowRecipe.normalizer_stability {V : Type u_1} {Γ : Type u_2} {Ζ : Type u_3} [Fintype Γ] [Fintype Ζ] (Xs : Γ → V → Prop) (Zt : Ζ → V → Prop) [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] (prep prep' : Γ × Ζ → Matrix V V ℝ) (x y : V) :
|normalizer Xs Zt prep x y - normalizer Xs Zt prep' x y| ≤ ({s : Γ | Xs s x} ×ˢ {t : Ζ | Zt t y}).expect fun (σ : Γ × Ζ) => |prep σ x y - prep' σ x y|

Preparatory changes enter through the existing joint source/usage conditional mean, including empty conditioning slices. This does not separate correlated children.

theorem Matrix.CorrectionRowRecipe.normalized_factorization {V : Type u_1} [Fintype V] {Γ : Type u_2} {Ζ : Type u_3} [Fintype Γ] [Fintype Ζ] (HP : FourthRootHierarchyParams 16 1 16 32 8) (I : ℝ → ℝ → ℝ) (τ : ℝ → ℝ) (Kc : ℕ) (f : ℝ) (Xs : Γ → V → Prop) (Z Zt : Ζ → V → Prop) [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] (A : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (hy : Zt σ.2 y) :
normalized I τ HP.ρ HP.atomCutoff HP.γ HP.K Kc f Xs Z Zt A prep maximum σ x y = FourthRootHierarchyParams.NormalizedRow.output HP 1 (A x y / f) (normalizer Xs Zt prep x y) (Finset.kthLargest HP.K {w : V | Z σ.2 w} fun (w : V) => A x w / f) * incomingGate I τ HP.K Kc f A {w : V | Xs σ.1 w} {w : V | Z σ.2 w} y * HP.γ (maximum y)

Factorization through the existing bounded scalar decoder. Only its scalar argument is capped; the row and incoming ranks still inspect the original signed raw table.