Documentation

CslibFrontier.Computability.LogSpaceDerandomization.StageContext

Cutoff, Bin-Schedule, and Residual-Stage Contexts #

Orthogonal stage records for finite routed-bin residual estimation on Environment P J:

Main definitions #

Main results #

Primitive bin-routing cutoff and canonical request-gate profile shared across finite residual-stage mean, child-reserve, and envelope theorems.

  • binCutoff : ℝ → ℝ

    Monotone bin-routing cutoff χ.

  • cutoff_monotone : Monotone self.binCutoff

    The bin cutoff is monotone.

  • cutoff_zero (v : ℝ) : v ≤ 1 / 2 → self.binCutoff v = 0

    The bin cutoff vanishes at or below 1 / 2.

  • cutoff_one (v : ℝ) : 1 ≤ v → self.binCutoff v = 1

    The bin cutoff equals 1 at or above 1.

  • cutoff_range (v : ℝ) : self.binCutoff v ∈ Set.Icc 0 1

    The bin cutoff takes values in [0, 1].

  • requestGate : ℝ → ℝ

    Row gate ρ used by canonical dense child requests.

  • requestGate_nonneg (v : ℝ) : 0 ≤ self.requestGate v

    The request gate is nonnegative.

  • requestGate_le_one (v : ℝ) : self.requestGate v ≤ 1

    The request gate is bounded above by 1.

  • gateThreshold : ℝ

    Positive interval threshold through which the request gate equals 1.

  • gateThreshold_pos : 0 < self.gateThreshold

    The request-gate threshold is positive.

  • gate_one (v : ℝ) : v ≤ self.gateThreshold → self.requestGate v = 1

    The request gate equals 1 at or below gateThreshold.

  • requestRank : ℕ

    Row-gate rank supplied to canonical dense child requests.

  • rank_bound : 2 * (1 + 32 / self.gateThreshold) ≤ ↑self.requestRank

    The request rank satisfies the dense-sampling rank bound 2 * (1 + 32 / gateThreshold).

Concrete degree-4 polynomial cutoff and row-gate profile (cutoff, gate, threshold 1, rank 66) from HierarchyRankEnvironment.

Finite active-bin exponent schedule, first-bin density cap, and per-bin preparation cutoffs for routed residual estimation on the q = 16 rate grid.

  • lastBin : ℕ

    Last active bin index; active bins are Finset.range (lastBin + 1).

  • binExponent : ℕ → ℕ

    Grid-rate exponent kb i of each bin i.

  • rates_antitone : Antitone fun (i : ℕ) => rate (self.binExponent i)

    Bin grid rates decrease with the bin index.

  • rate_ratio (i : ℕ) : rate (self.binExponent i) / rate (self.binExponent (i + 1)) ≤ 16

    Adjacent bin rates change by at most the grid factor 16.

  • densityCap : ℝ

    First-bin kernel density cap.

  • densityCap_nonneg : 0 ≤ self.densityCap

    The first-bin density cap is nonnegative.

  • preparationCutoff : ℕ → ℝ → ℝ

    Preparation cutoff h i supplied at each bin i.

@[reducible, inline]

Active bin index set range (b.lastBin + 1).

@[reducible, inline]

Real grid rate rate (b.binExponent i) at bin i.

@[reducible, inline]

Separate top-bin (densityCap) and fine-bin (16) range cap at bin i.

@[reducible, inline]

Uncapped routed bin cutoff at bin i for a cutoff profile c.

@[reducible, inline]

Bounded routed bin cutoff at bin i for a cutoff profile c.

Every per-bin cap b.cap i is nonnegative.

Bounded routed bin cutoffs lie in Set.Icc 0 (b.cap i) at every bin i.

Bounded routed bin cutoffs lie uniformly in Set.Icc 0 (max b.densityCap 16).

def Matrix.HierarchyParams.H4RankEnvironment.BinSchedule.const (lastBin exponent : ℕ) {cap : ℝ} (hcap : 0 ≤ cap) :

Constant-exponent bin schedule with unit preparation cutoffs.

Unit-step bin schedule i ↦ i + start, whose adjacent grid rates have exact ratio 16.

Raw, preparation, and running-maximum child families, indexed by statistical precision, bin, and structural HierarchyTask.Request HP.k. No accuracy assumption is bundled here.

@[reducible, inline]

Spectral contraction factor used by finite component-walk allocations on Environment P J.

Finite single-stage geometric, horizon, cutoff, bin-schedule, and kernel hypotheses for residual estimation on Environment P J.

theorem Matrix.HierarchyParams.H4RankEnvironment.rowNormPow_congr_masks {Ω : Type u_1} {V : Type u_2} [Fintype Ω] [Fintype V] {p : ℕ} {N u : ℝ} {X₁ X₂ Y₁ Y₂ : Ω → V → Prop} [(σ : Ω) → (x : V) → Decidable (X₁ σ x)] [(σ : Ω) → (x : V) → Decidable (X₂ σ x)] [(σ : Ω) → (y : V) → Decidable (Y₁ σ y)] [(σ : Ω) → (y : V) → Decidable (Y₂ σ y)] (hX : ∀ (σ : Ω) (x : V), X₁ σ x ↔ X₂ σ x) (hY : ∀ (σ : Ω) (y : V), Y₁ σ y ↔ Y₂ σ y) (Z : Ω → V → V → ℝ) :
Cslib.rowNormPow p N u X₁ Y₁ Z = Cslib.rowNormPow p N u X₂ Y₂ Z

Congruence of Cslib.rowNormPow under logically equivalent source and terminal masks, independent of their Decidable instances.

theorem Matrix.HierarchyParams.H4RankEnvironment.gridChannel_retains_iff_retainedMask {P J : ℕ} [Fact (Nat.Prime P)] (D : ZMod P) (role : Fin J) (k : ℕ) (suffix : List (ZMod P)) (σ : Environment P J) (v : ZMod P) :
CorrectionRowTask.Channel.retains (gridChannel role k suffix) (fun (r : Fin J) (b : ℝ) (s : List (ZMod P)) (τ : Environment P J) (w : ZMod P) => channels D r b s τ (id w)) σ v ↔ NormalizedMoments.retainedMask role (side P k) D suffix σ v

Channel retention on gridChannel role k suffix agrees logically with NormalizedMoments.retainedMask at side P k.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.cutoff {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) :
ℕ → ℝ → ℝ

Routed bin cutoff at the stage's bin schedule and cutoff profile.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.bounded {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) :
ℕ → ℝ → ℝ

Bounded routed bin cutoff at the stage's bin schedule and cutoff profile.

@[reducible, inline]

Source request channel, including its suffix.

@[reducible, inline]

Midpoint request channel, including its suffix.

@[reducible, inline]

Full terminal request channel, including its suffix.

@[reducible, inline]

Retained source mask at side P s.sourceExponent.

@[reducible, inline]

Retained terminal mask at an arbitrary exponent k.

@[reducible, inline]

Retained full-terminal mask at side P s.terminalExponent.

@[reducible, inline]

Retained channel interpretation on field vertices ZMod P.

Source channel retention agrees logically with s.sourceMask.

Terminal channel retention agrees logically with s.terminalMask.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.estimated {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (precision i : ℕ) (σ : Environment P J) (r : HierarchyTask.Request HP.k (Fin J) (ZMod P)) :

Incoming normalized child estimates from children at statistical precision precision and bin i.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.canonical {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) :
ℕ → Environment P J → HierarchyTask.Request HP.k (Fin J) (ZMod P) → Matrix (ZMod P) (ZMod P) ℝ

Canonical normalized children for the stage kernel, cutoffs, and request gate.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.input {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (precision : ℕ) (σ : Environment P J) (x y : ZMod P) :

Actual signed once-negative residual input assembled from children.

@[reducible, inline]

Genuine canonical residual of s.kernel at the midpoint rate.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.walkGraphAt {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (k : ℕ) (x z : ZMod P) :
Cslib.RotationMap (Cslib.RetainedPairSlice (X s.roles.source (side P s.sourceExponent) fun (x : ZMod P) => CopyPadding.identifier s.direction s.sourceSuffix x) (Y s.roles.terminal (side P k) fun (y : ZMod P) => CopyPadding.identifier s.direction s.terminalSuffix y) x z) (((_ : Fin J) × ({ p : Fin 4 × Fin 4 // p.1 ≠ p.2 } ⊕ Fin 4) ⊕ { p : Fin 4 × Fin 4 // p.1 ≠ p.2 } ⊕ Fin 4) × Bool ⊕ ((_ : Fin J) × ({ p : Fin 4 × Fin 4 // p.1 ≠ p.2 } ⊕ Fin 4) ⊕ { p : Fin 4 × Fin 4 // p.1 ≠ p.2 } ⊕ Fin 4) × Bool)

Lazy component-walk rotation map on the source and terminal-exponent k slice.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.walkSteps {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (steps : ℕ → ℕ) (j : ℕ) (σ : Environment P J) (x y : ZMod P) :

Conditional raw walk on s.sourceMask and s.terminalMask with step schedule steps.

@[reducible, inline]

Finite input fourth-moment payment, including the vertex width P.

@[reducible, inline]

Lower-request (bin, request) pairs entering the finite residual error cost.

@[reducible, inline]

Finite importance and midpoint-density cost coefficient for s.

@[reducible, inline]
noncomputable abbrev Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.cost {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (j : ℕ) (x y : ZMod P) :

Conditional lower-child error cost at precision j + 1 (one past prefix index j).

The canonical residual of s is entrywise nonnegative.

theorem Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.input_moment_le {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (precision : ℕ) :
Cslib.rowNormPow 4 (↑P) (rate s.sourceExponent) s.sourceMask s.terminalMask (s.input children precision) ≤ s.payment

Fourth moment of the stage's signed residual input at precision, paid before walking.

theorem Matrix.HierarchyParams.H4RankEnvironment.ResidualStage.input_noise_le {HP : FourthRootHierarchyParams 16 1 16 32 8} {P J : ℕ} [Fact (Nat.Prime P)] (s : ResidualStage HP P J) (children : ReserveOutputChildren HP P J) (steps : ℕ → ℕ) (j : ℕ) :
(Cslib.rowNormPow 4 (↑P) (rate s.sourceExponent) s.sourceMask s.terminalMask fun (σ : Environment P J) (x y : ZMod P) => s.walkSteps children steps j σ x y - Cslib.rowSliceMean s.sourceMask s.terminalMask (s.input children j) x y) ≤ 32 * reserveOutputContraction J ^ (2 * steps j) * s.payment

Centered raw walk noise of s.walkSteps children steps at index j.