Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyCutoffs

Selected polynomial cutoffs for actual normalized correction and pilot tasks #

These are original API bridges using the existing fourth-moment hierarchy construction (by Samuel Schlesinger) and correction/pilot sampling constructors. No recursive noise or native resource theorem is asserted. Incoming counts are derived by the existing detector.

The selected incoming gate uses the actual core copy thresholds.

Nonzero exact cutoff forces an entry strictly above the true threshold.

theorem Matrix.FourthRootHierarchyParams.rank_lt_of_rho_ne_zero (P : FourthRootHierarchyParams 16 1 16 32 8) {r : ℝ} (hr : P.ρ r ≠ 0) :
r < P.θ / 300

The actual row gate support lies strictly inside the auxiliary full-rank region.

theorem Matrix.FourthRootHierarchyParams.aux_full_on_Q_rho (P : FourthRootHierarchyParams 16 1 16 32 8) {v r : ℝ} (hv : P.Q v ≠ 0) (hr : P.ρ r ≠ 0) :

Discharges the incoming support premise using the actual core row gate, not a surrogate.

Positive preparation and nonzero actual row gate also give full auxiliary score.

theorem Matrix.FourthRootHierarchyParams.aux_full_near_Q_rho (P : FourthRootHierarchyParams 16 1 16 32 8) {v r v' r' : ℝ} (hv : P.Q v ≠ 0) (hr : P.ρ r ≠ 0) (hd : |v - v'| ≤ P.θ / 4) (hs : |r - r'| ≤ P.θ / 300) :

A genuine perturbation margin around the actual normalized Q/rho support. Neither perturbed coordinate is assumed to remain in the original support.

theorem Matrix.FourthRootHierarchyParams.aux_full_near_prep_rho (P : FourthRootHierarchyParams 16 1 16 32 8) {v r v' r' : ℝ} (hv : Cslib.polynomialPrepCutoff4 P.θ v ≠ 0) (hr : P.ρ r ≠ 0) (hd : |v - v'| ≤ P.θ / 8) (hs : |r - r'| ≤ P.θ / 300) :

Preparation has its own explicit entry margin within the auxiliary full region.

The broader witness is full on positive auxiliary support.

The incoming column cap ⌈4 (1 + 32 R)⌉₊ of the correction and pilot samplers is positive, since 4 J ≤ R (R_rank).

noncomputable def Matrix.FourthRootHierarchyParams.pilotSampling (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
P.PilotSampling X Y X Y Y f C i

Actual pilot sampling data: the incoming count comes from the existing detector theorem.

noncomputable def Matrix.FourthRootHierarchyParams.correctionSampling (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
P.CorrectionSampling X Y X Y Y f C i

Actual correction sampling data with the final pilot multiplier and derived incoming count.

theorem Matrix.FourthRootHierarchyParams.normalized_col_support (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] (Yt : κ → V → Prop) [(t : κ) → (v : V) → Decidable (Yt t v)] (K Kc : ℕ) (hKc : 0 < Kc) (f : ℝ) (input : Matrix V V ℝ) (prep : ι × κ → Matrix V V ℝ) (maximum : V → ℝ) (σ : ι × κ) (y : V) :
{x ∈ {w : V | X σ.1 w} | CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 P.θ) P.incomingCutoff P.ρ P.atomCutoff P.γ K Kc f X Y Yt input prep maximum σ x y ≠ 0}.card < Kc

Arbitrary raw/preparatory/vector children retain the actual normalized incoming cap. The bounded atom cutoff is the hierarchy's actual Qat; ranks read the raw table.

theorem Matrix.FourthRootHierarchyParams.selected_pi (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).π = π

The selected sampler uses the supplied terminal density.

theorem Matrix.FourthRootHierarchyParams.selected_p (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).p = 32 * f

The selected sampler's incoming budget is based on the true stage source rate.

theorem Matrix.FourthRootHierarchyParams.selected_c (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).c = 32

The selected sampler retains the frame terminal pair constant.

theorem Matrix.FourthRootHierarchyParams.selected_I (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).I = Cslib.polynomialAuxCutoff4 P.θ

The selected sampler uses its prescribed I parameter.

theorem Matrix.FourthRootHierarchyParams.selected_τ (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).τ = P.incomingCutoff

The selected sampler uses its prescribed τ parameter.

theorem Matrix.FourthRootHierarchyParams.selected_h (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).h = Cslib.polynomialPrepCutoff4 P.θ

The selected sampler uses its prescribed h parameter.

theorem Matrix.FourthRootHierarchyParams.selected_ρ (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).ρ = P.ρ

The selected sampler uses its prescribed ρ parameter.

theorem Matrix.FourthRootHierarchyParams.selected_K (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).K = P.K

The selected sampler uses its prescribed K parameter.

theorem Matrix.FourthRootHierarchyParams.selected_Kc (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).Kc = ⌈4 * (1 + 32 * P.R)⌉₊

The selected sampler uses its prescribed Kc parameter.

theorem Matrix.FourthRootHierarchyParams.selected_preparation (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (input : Matrix V V ℝ) :

Preparation uses precisely the selected cutoffs and detector ranks.

theorem Matrix.FourthRootHierarchyParams.selected_normalized (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (input : Matrix V V ℝ) (prep : ι × κ → Matrix V V ℝ) (maximum : V → ℝ) :
(P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi).normalizedRecipe input prep maximum = CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 P.θ) P.incomingCutoff P.ρ P.atomCutoff P.γ P.K ⌈4 * (1 + 32 * P.R)⌉₊ f X Y Y input prep maximum

Normalization uses precisely the selected cutoffs and actual bounded atom.

theorem Matrix.FourthRootHierarchyParams.selectedPilot_preparation (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (input : Matrix V V ℝ) :

Preparation uses precisely the selected cutoffs and detector ranks.

theorem Matrix.FourthRootHierarchyParams.selectedPilot_normalized (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (input : Matrix V V ℝ) (prep : ι × κ → Matrix V V ℝ) (maximum : V → ℝ) :
(P.pilotSampling X Y hXY hYX hf hπ hC hC1 hi).normalizedRecipe input prep maximum = CorrectionRowRecipe.normalized (Cslib.polynomialAuxCutoff4 P.θ) P.incomingCutoff P.ρ P.atomCutoff P.γ P.K ⌈4 * (1 + 32 * P.R)⌉₊ f X Y Y input prep maximum

Normalization uses precisely the selected cutoffs and actual bounded atom.

theorem Matrix.FourthRootHierarchyParams.correction_col_support (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (input : Matrix V V ℝ) (prep : ι × κ → Matrix V V ℝ) (maximum : V → ℝ) (σ : ι × κ) (y : V) :
have A := P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi; {x ∈ {w : V | X σ.1 w} | A.normalizedRecipe input prep maximum σ x y ≠ 0}.card < A.Kc

The correction client discharges incoming-cap hypotheses on arbitrary children.

theorem Matrix.FourthRootHierarchyParams.pilot_col_support (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (input : Matrix V V ℝ) (prep : ι × κ → Matrix V V ℝ) (maximum : V → ℝ) (σ : ι × κ) (y : V) :
have A := P.pilotSampling X Y hXY hYX hf hπ hC hC1 hi; {x ∈ {w : V | X σ.1 w} | A.normalizedRecipe input prep maximum σ x y ≠ 0}.card < A.Kc

The same selected functions discharge the actual pilot recipe's column cap.

theorem Matrix.FourthRootHierarchyParams.correction_mean (P : FourthRootHierarchyParams 16 1 16 32 8) {V ι κ : Type u} [Fintype V] [Fintype ι] [Fintype κ] (X : ι → V → Prop) (Y : κ → V → Prop) [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f π : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hXY : Cslib.Probability.RetentionChannels X Y f π 1 16 32 8) (hYX : Cslib.Probability.RetentionChannels Y X f π 1 16 32 8) (hf : 0 < f) (hπ : 0 < π) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hi : i < P.k) (hCf : ∀ (x y : V), C x y ≤ f) {x : V} (hx : {s : ι | X s x}.Nonempty) (y : V) :
have A := P.correctionSampling X Y hXY hYX hf hπ hC hC1 hi; (({s : ι | X s x} ×ˢ Finset.univ).expect fun (σ : ι × κ) => f / A.π * A.normalizedRecipe (P.correctionInput X Y f C i) (A.preparationRecipe (P.correctionInput X Y f C i)) (HierarchyParams.PilotTask.value P.toHierarchyParams X Y f C (HierarchyParams.PilotTask.maximum P.k)) σ x y) = P.correctionIter X Y f C (i + 1) x y

True normalized rows from the selected correction constructor have the genuine iterate mean.

Regularity of the selected incoming gate reuses the existing complementary root theorem.