Documentation

CslibFrontier.Computability.LogSpaceDerandomization.PilotRowStability

Accuracy of the actual pilot score, detector and maximum recipes #

These original local contracts apply to the recipes used by hierarchyTaskRecipe. Raw tables and score children may be signed and unbounded. Rank sets, normalization rates and source/terminal conditioning are identical in both versions. No independent seed, error certificate for the final pilot, or bound on raw rank inputs is assumed.

Score error pays the entry and full terminal-rank errors at the actual inverse rate. Detector error contracts through its two literal finite means, then pays the finite source maximum by a sum of fourth powers. Maximum error pays its two actual children. The constants for the selected fourth-root hierarchy are chosen before all domains, rates and child tables. These ordinary fourth moments feed the maximum-error input of correction stability; they do not construct approximate recursive child calls.

Main definitions #

Main results #

theorem Matrix.HierarchyParams.PilotRowRecipe.score_stability {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {κ : Type u_3} [Fintype V] (Y : κ → V → Prop) [(t : κ) → (v : V) → Decidable (Y t v)] {Lϕ Lρ f : ℝ} (hρ : ∀ (z : ℝ), 0 ≤ P.ρ z) (hLρ : 0 ≤ Lρ) (hϕ : ∀ (a b : ℝ), |P.ϕ a - P.ϕ b| ≤ Lϕ * |a - b|) (hlρ : ∀ (a b : ℝ), |P.ρ a - P.ρ b| ≤ Lρ * |a - b|) (hK : 0 < P.K) (hf : 0 < f) (A B : Matrix V V ℝ) (t : κ) (x y : V) :
|score P Y f A t x y - score P Y f B t x y| ≤ (Lϕ * |A x y - B x y| + Lρ * Finset.kthLargest 1 {w : V | Y t w} fun (w : V) => |A x w - B x w|) / f

The actual unnormalized pilot score propagates signed entry and full row-rank errors. There is no preparatory denominator or incoming gate in this constructor.

noncomputable def Matrix.HierarchyParams.PilotRowRecipe.sourceDetector {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (A : ι → κ → Matrix V V ℝ) (y : V) :

Evaluate a completed score on its literal source and terminal integration variables. The source argument includes every spectator required by the child.

theorem Matrix.HierarchyParams.PilotRowRecipe.sourceDetector_eq_detector {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (A : κ → Matrix V V ℝ) :
(sourceDetector P X Y fun (x : ι) => A) = detector P X Y A

Ignoring the integrated source recovers the original true detector exactly.

theorem Matrix.HierarchyParams.PilotRowRecipe.sourceDetector_stability {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (A B : ι → κ → Matrix V V ℝ) (y : V) :
|sourceDetector P X Y A y - sourceDetector P X Y B y| ≤ Finset.univ.expect fun (s : ι) => {t : κ | Y t y}.expect fun (t : κ) => Finset.kthLargest 1 {x : V | X s x} fun (x : V) => |A s t x y - B s t x y|

The clipped detector contracts the literal two conditional means of the source-rank maximum error. Both score children can depend on every other environment coordinate.

theorem Matrix.HierarchyParams.PilotRowRecipe.sourceDetector_moment {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (A B : ι → κ → Matrix V V ℝ) (y : V) :
|sourceDetector P X Y A y - sourceDetector P X Y B y| ^ 4 ≤ Finset.univ.expect fun (s : ι) => {t : κ | Y t y}.expect fun (t : κ) => ∑ x : V with X s x, |A s t x y - B s t x y| ^ 4

Conditional Jensen and finite maximum payment for the actual detector, including empty source types, empty terminal conditioning and padded source ranks.

theorem Matrix.HierarchyParams.PilotRowRecipe.detector_stability {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (A B : κ → Matrix V V ℝ) (y : V) :
|detector P X Y A y - detector P X Y B y| ≤ Finset.univ.expect fun (s : ι) => {t : κ | Y t y}.expect fun (t : κ) => Finset.kthLargest 1 {x : V | X s x} fun (x : V) => |A t x y - B t x y|

The clipped detector contracts the literal two conditional means of the source-rank maximum error. Both score children can depend on every other environment coordinate.

theorem Matrix.HierarchyParams.PilotRowRecipe.detector_moment {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (A B : κ → Matrix V V ℝ) (y : V) :
|detector P X Y A y - detector P X Y B y| ^ 4 ≤ Finset.univ.expect fun (s : ι) => {t : κ | Y t y}.expect fun (t : κ) => ∑ x : V with X s x, |A t x y - B t x y| ^ 4

Conditional Jensen and finite maximum payment for the actual detector, including empty source types, empty terminal conditioning and padded source ranks.

theorem Matrix.HierarchyParams.PilotRowRecipe.maximum_stability {V : Type u_1} (a b a' b' : V → ℝ) (y : V) :
|maximum a b y - maximum a' b' y| ≤ max |a y - a' y| |b y - b' y|

Clipped running maxima are nonexpansive in the maximum of their two actual child errors.

theorem Matrix.HierarchyParams.PilotRowRecipe.maximum_moment {V : Type u_1} (a b a' b' : V → ℝ) (y : V) :
|maximum a b y - maximum a' b' y| ^ 4 ≤ |a y - a' y| ^ 4 + |b y - b' y| ^ 4

No final-maximum certificate is needed: the fourth moment pays the two supplied children.

theorem Matrix.HierarchyParams.PilotRowRecipe.maximum_row_moment {V : Type u_1} [Fintype V] {Ω : Type u_4} [Fintype Ω] (Xs Z : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (Xs σ x)] [(σ : Ω) → (y : V) → Decidable (Z σ y)] (a b a' b' : Ω → V → ℝ) {N u : ℝ} (hNu : 0 ≤ N * u) :
(Cslib.rowNormPow 4 N u Xs Z fun (σ : Ω) (x y : V) => maximum (a σ) (b σ) y - maximum (a' σ) (b' σ) y) ≤ (Cslib.rowNormPow 4 N u Xs Z fun (σ : Ω) (x y : V) => a σ y - a' σ y) + Cslib.rowNormPow 4 N u Xs Z fun (σ : Ω) (x y : V) => b σ y - b' σ y

Integrated maximum error on any original pair masks. This is directly the ordinary maximum-error payment consumed by correctionRequest_children_root_moment.

theorem Matrix.HierarchyParams.PilotRowRecipe.score_row_moment {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} [Fintype V] {Ω : Type u_4} [Fintype Ω] (Xs Z : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (Xs σ x)] [(σ : Ω) → (y : V) → Decidable (Z σ y)] {Lϕ Lρ f N u : ℝ} (hρ : ∀ (z : ℝ), 0 ≤ P.ρ z) (hLϕ : 0 ≤ Lϕ) (hLρ : 0 ≤ Lρ) (hϕ : ∀ (a b : ℝ), |P.ϕ a - P.ϕ b| ≤ Lϕ * |a - b|) (hlρ : ∀ (a b : ℝ), |P.ρ a - P.ρ b| ≤ Lρ * |a - b|) (hK : 0 < P.K) (hf : 0 < f) (hNu : 0 ≤ N * u) (A B : Ω → Matrix V V ℝ) :
(Cslib.rowNormPow 4 N u Xs Z fun (σ : Ω) (x y : V) => score P Z f (A σ) σ x y - score P Z f (B σ) σ x y) ≤ ↑(Fintype.card V) * ((Lϕ + Lρ) / f) ^ 4 * Cslib.rowNormPow 4 N u Xs Z fun (σ : Ω) (x y : V) => A σ x y - B σ x y

Integrated score error on the original source and terminal masks. The full terminal maximum costs one ambient width, with the actual inverse-rate fourth power displayed.

theorem Matrix.HierarchyParams.PilotRowRecipe.detector_row_moment {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : Type u_1} {ι : Type u_2} {κ : Type u_3} [Fintype V] [Fintype ι] [Fintype κ] {Ω : Type u_4} [Fintype Ω] (Xs Z : Ω → V → Prop) [(σ : Ω) → (x : V) → Decidable (Xs σ x)] [(σ : Ω) → (y : V) → Decidable (Z σ y)] (rankSource : Ω → ι → V → Prop) (rankTerminal : Ω → κ → V → Prop) [(σ : Ω) → (s : ι) → (x : V) → Decidable (rankSource σ s x)] [(σ : Ω) → (t : κ) → (y : V) → Decidable (rankTerminal σ t y)] (A B : Ω → κ → Matrix V V ℝ) {N u : ℝ} (hNu : 0 ≤ N * u) :
(Cslib.rowNormPow 4 N u Xs Z fun (σ : Ω) (x y : V) => detector P (rankSource σ) (rankTerminal σ) (A σ) y - detector P (rankSource σ) (rankTerminal σ) (B σ) y) ≤ (N * u)⁻¹ * Finset.univ.expect fun (σ : Ω) => ∑ _a : V with Xs σ _a, ∑ y : V with Z σ y, Finset.univ.expect fun (s : ι) => {t : κ | rankTerminal σ t y}.expect fun (t : κ) => ∑ x : V with rankSource σ s x, |A σ t x y - B σ t x y| ^ 4

Integrated detector error, retaining both literal means and their actual finite source-maximum payment. Outer masks and all children may share the same environment. There is no inverse atom probability or full-environment cardinality cost.

theorem Matrix.FourthRootHierarchyParams.pilot_score_stability_constants (HP : FourthRootHierarchyParams 16 1 16 32 8) :
∃ (Lϕ : ℝ) (Lρ : ℝ), 0 ≤ Lϕ ∧ 0 ≤ Lρ ∧ (∀ (a b : ℝ), |HP.ϕ a - HP.ϕ b| ≤ Lϕ * |a - b|) ∧ ∀ (a b : ℝ), |HP.ρ a - HP.ρ b| ≤ Lρ * |a - b|

Score constants are selected at fixed hierarchy parameters, before rates, widths, rank masks or signed raw children. The original ϕ and ρ are retained.