Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyCanonicalTargets

Canonical correction targets across actual request roles #

Genuine request targets are independent of their source and terminal role labels and of inherited copy suffixes. We integrate the actual source spectators and use the existing affine frame permutation for each suffix. The result is the same correction recurrence on unpadded single-frame channels, with the original terminal stage rate and matrix units. No equality of samples at the same environment is claimed.

This is a prerequisite milestone for canonical residual sampling, not a conditional-mean identity for HierarchyTask.rawSample. Shared-midpoint product transport and canonical dense and correction child assembly remain open, as do propagation of estimated child errors and recursive derandomization. The transport is Christian Reitwiessner's original work, retaining Samuel Schlesinger's adapted hierarchy construction.

The canonical stage channel, using an unpadded identifier on one frame. The stage rate remains explicit; roles and copy suffixes are transported by permutations.

theorem Matrix.HierarchyParams.H4RankEnvironment.coordinate_padding {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} (D : ZMod P) (ident : V → ZMod P) (hD : D ≠ 0) (ch : Channel P J) (A : Cslib.Probability.FrameChannel P 4 1) (v : V) :

Copy padding is removed by an actual permutation of the frame seed, preserving all vertices jointly. No pointwise equality on an unchanged seed is asserted.

theorem Matrix.HierarchyParams.H4RankEnvironment.stage_columnDetector_eq_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (C : Matrix V V ℝ) :
columnDetector (stageSource D ident r hr) (splitTerminal D ident r) HP.ϕ HP.ρ HP.J HP.K r.terminal.rate C = columnDetector (canonicalChannel ident r.terminal.rate) (canonicalChannel ident r.terminal.rate) HP.ϕ HP.ρ HP.J HP.K r.terminal.rate C

The true stage detector has one canonical target after integrating spectators and transporting both copy suffixes. This does not identify approximate samples.

theorem Matrix.HierarchyParams.H4RankEnvironment.stage_pilot_eq_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (C : Matrix V V ℝ) :

Integrate the actual source spectators and transport both suffixes. This identifies the genuine stage pilot with one common canonical pilot, for every admissible request.

theorem Matrix.HierarchyParams.H4RankEnvironment.stage_correctionIter_eq_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (C : Matrix V V ℝ) (i : ℕ) :

All genuine correction iterates use the same canonical target, with every role and suffix retained until its measure-preserving transport has been proved. Usage does not enter this deterministic target; it still enters the actual request's normalization.

theorem Matrix.HierarchyParams.H4RankEnvironment.stage_correctionIter_eq_of_terminal_rate {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (r' : HierarchyTask.Request n (Fin J) (ZMod P)) (hr' : Admissible r') (hD : D ≠ 0) (ht : r.terminal.rate = r'.terminal.rate) (C : Matrix V V ℝ) (i : ℕ) :
HP.correctionIter (stageSource D ident r hr) (splitTerminal D ident r) r.terminal.rate C i = HP.correctionIter (stageSource D ident r' hr') (splitTerminal D ident r') r'.terminal.rate C i

Source resets and terminal-role changes preserve the true correction target at the same stage rate, even with different sampling/usage rates and arbitrary copy suffixes.

theorem Matrix.HierarchyParams.H4RankEnvironment.stageMaximum_eq_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (C : Matrix V V ℝ) :

The actual final pilot child has the canonical target as well.

theorem Matrix.HierarchyParams.H4RankEnvironment.stage_residual_eq_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (C : Matrix V V ℝ) :

The genuine hierarchy residual is transported as C-E+EC, including its negative term. This target identity does not average a stochastic residual sample.

theorem Matrix.HierarchyParams.H4RankEnvironment.stageRaw_eq_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (C : Matrix V V ℝ) (i : ℕ) :

The true raw correction child is C+E_i C on the same canonical stage, in matrix units.

theorem Matrix.HierarchyParams.H4RankEnvironment.source_request_mean_canonical {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (HP : FourthRootHierarchyParams 16 1 16 32 8) (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (hD : D ≠ 0) (hid : Function.Injective ident) (H : Horizon P) {k s u : ℕ} (hsH : s ≤ H.maxExponent) (hks : k ≤ s) (hs : r.source.rate = rate s) (ht : r.terminal.rate = rate k) (hu : r.usage.rate = rate u) (C : Matrix V V ℝ) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ r.terminal.rate) {i : ℕ} (hi : i < HP.k) (x y : V) :
({σ : Environment P J | r.source.retains (channels D) σ (ident x)}.expect fun (σ : Environment P J) => r.terminal.rate / ↑{σ : Environment P J | r.usage.retains (channels D) σ (ident y)}.dens * correctionRequest D ident r (Cslib.polynomialAuxCutoff4 HP.θ) HP.incomingCutoff HP.ρ HP.atomCutoff HP.γ HP.K ⌈4 * (1 + 32 * HP.R)⌉₊ (fun (x : Environment P J) => stageRaw HP D ident r hr C i) (sourcePreparation HP D ident r hr C i) (fun (x : Environment P J) => stageMaximum HP D ident r hr C) σ x y) = HP.correctionIter (canonicalChannel ident r.terminal.rate) (canonicalChannel ident r.terminal.rate) r.terminal.rate C (i + 1) x y

The existing full-Ω correction mean has one canonical target across role resets and copy suffixes. The original source/rank/usage rates and density divisor are unchanged. This is a single correction child, not a product or residual raw-sample mean.