Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyDenseChildren

Genuine dense children on the shared hierarchy environment #

The deterministic base matrix and its actual dense preparation define the direct and source-reset right children. Their joint source/usage normalizer integrates every source spectator. Consequently the right value at (z,y) depends only on the terminal frame, even though its request resets the complete source tuple to the midpoint channel. These identities preserve the raw ranks, usage rate and inherited copy suffixes.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.densePreparation {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (σ : Environment P J) :

Genuine dense preparation from the deterministic hierarchy base, on its actual rank frame. It is independent of the sampled source before taking the joint normalizer.

theorem Matrix.HierarchyParams.H4RankEnvironment.dense_normalizer {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (x y : V) (hx : {a : Spectators P J r.terminal.role | splitSource D ident r hr a x}.Nonempty) :
Cslib.rowSliceMean (fun (σ : Environment P J) (v : V) => r.source.retains (channels D) σ (ident v)) (fun (σ : Environment P J) (v : V) => r.usage.retains (channels D) σ (ident v)) (densePreparation D ident r h ρ K C) x y = atomNormalizer (splitTerminal D ident r) (splitUsage D ident r) h ρ K r.terminal.rate C x y

The actual dense joint normalizer integrates the source, including every spectator. Only nonemptiness of the actual source slice is used; no source seed is frozen.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.denseChild {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (cutoff h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (σ : Environment P J) :

Actual normalized dense request with deterministic raw base and genuine preparation. This is the existing request evaluator, rather than a child with a prescribed mean.

theorem Matrix.HierarchyParams.H4RankEnvironment.denseChild_eq {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (cutoff h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (σ : Environment P J) (x y : V) (hx : {a : Spectators P J r.terminal.role | splitSource D ident r hr a x}.Nonempty) :
denseChild D ident r cutoff h ρ K C σ x y = denseAtom (splitTerminal D ident r) (splitUsage D ident r) cutoff h ρ K r.terminal.rate C (σ r.terminal.role) x y

Source release is pointwise after the genuine joint normalization is identified. The right child keeps exactly its terminal rank and usage predicates and suffix.

theorem Matrix.HierarchyParams.H4RankEnvironment.denseChild_terminal {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (D : ZMod P) (ident : V → ZMod P) {n : ℕ} (r : HierarchyTask.Request n (Fin J) (ZMod P)) (hr : Admissible r) (cutoff h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (σ τ : Environment P J) (ht : σ r.terminal.role = τ r.terminal.role) (x y : V) (hx : {a : Spectators P J r.terminal.role | splitSource D ident r hr a x}.Nonempty) :
denseChild D ident r cutoff h ρ K C σ x y = denseChild D ident r cutoff h ρ K C τ x y

In particular source-reset and free spectator coordinates cannot affect a genuine dense right child when its terminal frame is unchanged.

theorem Matrix.HierarchyParams.H4RankEnvironment.dense_terminal_mean {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (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 u : ℕ} (hk : k ≤ H.maxExponent) (ht : r.terminal.rate = rate k) (hu : r.usage.rate = rate u) (cutoff h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (q : Cslib.Probability.FrameChannel P 4 1 → Prop) [DecidablePred q] (x y : V) (hsub : ∀ (A : Cslib.Probability.FrameChannel P 4 1), splitUsage D ident r A y → q A) (hkh : ∀ (v : ℝ), cutoff v ≠ 0 → h v = 1) (hρ0 : ∀ (v : ℝ), 0 ≤ ρ v) (hρ1 : ∀ (v : ℝ), ρ v ≤ 1) {η : ℝ} (hη : 0 < η) (hρη : ∀ v ≤ η, ρ v = 1) (hC0 : ∀ (w : V), 0 ≤ C x w) {M : ℝ} (hCM : ∑ w : V, C x w ≤ M) (hK : 2 * (1 + 32 * M / η) ≤ ↑K) :
({A : Cslib.Probability.FrameChannel P 4 1 | q A}.expect fun (A : Cslib.Probability.FrameChannel P 4 1) => r.terminal.rate * (↑{A : Cslib.Probability.FrameChannel P 4 1 | q A}.dens / ↑{A : Cslib.Probability.FrameChannel P 4 1 | splitUsage D ident r A y}.dens) * denseAtom (splitTerminal D ident r) (splitUsage D ident r) cutoff h ρ K r.terminal.rate C A x y) = r.terminal.rate * cutoff (C x y / r.terminal.rate)

Actual terminal one-child normalization with cross-rate frame counts. The finite endpoint event may be broader than usage; its literal density supplies importance.

theorem Matrix.HierarchyParams.H4RankEnvironment.denseChild_mean_on_terminal_event {P J : ℕ} [Fact (Nat.Prime P)] {V : Type} [Fintype V] (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) {s k u : ℕ} (hsH : s ≤ H.maxExponent) (hs : r.source.rate = rate s) (hk : k ≤ H.maxExponent) (ht : r.terminal.rate = rate k) (hu : r.usage.rate = rate u) (cutoff h ρ : ℝ → ℝ) (K : ℕ) (C : Matrix V V ℝ) (q : Cslib.Probability.FrameChannel P 4 1 → Prop) [DecidablePred q] (x y : V) (hsub : ∀ (A : Cslib.Probability.FrameChannel P 4 1), splitUsage D ident r A y → q A) (hkh : ∀ (v : ℝ), cutoff v ≠ 0 → h v = 1) (hρ0 : ∀ (v : ℝ), 0 ≤ ρ v) (hρ1 : ∀ (v : ℝ), ρ v ≤ 1) {η : ℝ} (hη : 0 < η) (hρη : ∀ v ≤ η, ρ v = 1) (hC0 : ∀ (w : V), 0 ≤ C x w) (hCM : ∑ w : V, C x w ≤ 1) (hK : 2 * (1 + 32 / η) ≤ ↑K) :
({σ : Environment P J | r.source.retains (channels D) σ (ident x) ∧ q (σ r.terminal.role)}.expect fun (σ : Environment P J) => r.terminal.rate * (↑{σ : Environment P J | q (σ r.terminal.role)}.dens / ↑{σ : Environment P J | r.usage.retains (channels D) σ (ident y)}.dens) * denseChild D ident r cutoff h ρ K C σ x y) = r.terminal.rate * cutoff (C x y / r.terminal.rate)

Actual dense direct mean on the inherited source and terminal event. Source spectators integrate out after genuine normalization, with its literal density ratio.