Documentation

CslibFrontier.Computability.LogSpaceDerandomization.NormalizedAtomRows.MeanEvent

Actual heavy-event mean charges #

The actual H4 environment and uncentered hierarchy decoder are preserved. This fourth-moment adaptation of §8.2, Proposition 8.5 (printed pp. 45–49), of [OAI26e], revision 7ef5c0cc, retains explicit lower-child contracts; it does not establish recursive induction or native resource bounds. Christian Reitwiessner supplied the H4 specialization; the compression and norm proof patterns are adapted from Samuel Schlesinger.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.source_mixed_pair {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (hst : t ≠ s) (Ls Lt : ℕ) (a b : ZMod P) (H : Horizon P) {k : ℕ} (hk : k ≤ H.maxExponent) (hLt : Lt ≤ P) {w : ZMod P} (hwb : w ≠ b) :
↑{σ : Environment P J | Cslib.Probability.frameRetains P 4 Ls (σ s) a ∧ Cslib.Probability.frameRetains P 4 Lt (σ t) b ∧ Cslib.Probability.frameRetains P 4 (side P k) (σ t) w}.card ≤ 32 * rate k * ↑{σ : Environment P J | Cslib.Probability.frameRetains P 4 Ls (σ s) a ∧ Cslib.Probability.frameRetains P 4 Lt (σ t) b}.card

Mixed-rate pair count on the actual independently source-conditioned slice. No independence among endpoints of the terminal coordinate is assumed.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.genuinePrep {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (t : Fin J) (D : ZMod P) (suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (σ : Environment P J) :

Exact preparation evaluated on the full environment's terminal role.

noncomputable def Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.genuineMean {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (s t : Fin J) (Ls Lt : ℕ) (a D : ZMod P) (suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (x y : ZMod P) :

This is the actual joint source/usage conditional mean, not a second copy of the environment.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.genuineMean_range {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (s t : Fin J) (Ls Lt : ℕ) (a D : ZMod P) (suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (x y : ZMod P) :
genuineMean HP s t Ls Lt a D suffix k G x y ∈ Set.Icc 0 1
theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.genuineMean_zero {P J : ℕ} [Fact (Nat.Prime P)] (HP : FourthRootHierarchyParams 16 1 16 32 8) (s t : Fin J) (Ls Lt : ℕ) (a D : ZMod P) (suffix : List (ZMod P)) (k : ℕ) (G : Matrix (ZMod P) (ZMod P) ℝ) (x y : ZMod P) (hd : G x y / rate k ≤ HP.θ / 2) :
genuineMean HP s t Ls Lt a D suffix k G x y = 0
theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actual_conditional_rarity {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (hst : t ≠ s) (Ls Lt : ℕ) (a D : ZMod P) (hD : D ≠ 0) (suffix : List (ZMod P)) (H : Horizon P) {k : ℕ} (hk : k ≤ H.maxExponent) (hLt : Lt ≤ P) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) {M floor : ℝ} (hmass : ∀ (x : ZMod P), ∑ y : ZMod P, G x y ≤ M) (hf : 0 < floor) {n : ℕ} (hn : 0 < n) (x y : ZMod P) :
have T := {σ : Environment P J | Cslib.Probability.frameRetains P 4 Ls (σ s) a ∧ Cslib.Probability.frameRetains P 4 Lt (σ t) (CopyPadding.identifier D suffix y)}; have Y := fun (σ : Environment P J) (w : ZMod P) => Cslib.Probability.frameRetains P 4 (side P k) (σ t) (CopyPadding.identifier D suffix w); ↑{σ ∈ T | Cslib.Probability.heavyCountEvent Y Finset.univ (fun (w : ZMod P) => G x w / rate k) floor n σ}.card / ↑T.card ≤ (2 + 8 * 32 * M / floor) / ↑n

The sharper conditional rarity factor retains the distinguished endpoint's contribution as 2/n. This uses actual H4 mixed-rate laws, deterministic row mass, and source-role independence.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actual_rarity_card {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (hst : t ≠ s) (Ls Lt : ℕ) (D : ZMod P) (hD : D ≠ 0) (sourceSuffix suffix : List (ZMod P)) (H : Horizon P) {k : ℕ} (hk : k ≤ H.maxExponent) (hLt : Lt ≤ P) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) {M floor : ℝ} (hmass : ∀ (x : ZMod P), ∑ y : ZMod P, G x y ≤ M) (hf : 0 < floor) {n : ℕ} (hn : 0 < n) (x y : ZMod P) :
↑{σ : Environment P J | Cslib.Probability.frameRetains P 4 Ls (σ s) (CopyPadding.identifier D sourceSuffix x) ∧ Cslib.Probability.frameRetains P 4 Lt (σ t) (CopyPadding.identifier D suffix y) ∧ Cslib.Probability.heavyCountEvent (fun (τ : Environment P J) (w : ZMod P) => Cslib.Probability.frameRetains P 4 (side P k) (τ t) (CopyPadding.identifier D suffix w)) Finset.univ (fun (w : ZMod P) => G x w / rate k) floor n σ}.card ≤ (2 + 256 * M / floor) / ↑n * ↑{σ : Environment P J | Cslib.Probability.frameRetains P 4 Ls (σ s) (CopyPadding.identifier D sourceSuffix x) ∧ Cslib.Probability.frameRetains P 4 Lt (σ t) (CopyPadding.identifier D suffix y)}.card

Cardinal form of actual conditional rarity, including empty conditioning slices.

theorem Matrix.HierarchyParams.H4RankEnvironment.NormalizedMoments.actual_mean_event_moment {P J : ℕ} [Fact (Nat.Prime P)] (s t : Fin J) (hst : t ≠ s) (Ls Lt : ℕ) (D : ZMod P) (hD : D ≠ 0) (sourceSuffix suffix : List (ZMod P)) (H : Horizon P) {k : ℕ} (hk : k ≤ H.maxExponent) (hLt : Lt ≤ P) (G : Matrix (ZMod P) (ZMod P) ℝ) (hG : ∀ (x y : ZMod P), 0 ≤ G x y) {M floor N u : ℝ} (hmass : ∀ (x : ZMod P), ∑ y : ZMod P, G x y ≤ M) (hf : 0 < floor) {n : ℕ} (hn : 0 < n) (hNu : 0 ≤ N * u) (b : Matrix (ZMod P) (ZMod P) ℝ) (v : Environment P J → ZMod P → ℝ) (hv : ∀ (σ : Environment P J) (x : ZMod P), Cslib.Probability.frameRetains P 4 Ls (σ s) (CopyPadding.identifier D sourceSuffix x) → |v σ x| ^ 4 ≤ ∑ y : ZMod P with Cslib.Probability.frameRetains P 4 Lt (σ t) (CopyPadding.identifier D suffix y), |b x y| ^ 4) :
let X := fun (σ : Environment P J) (x : ZMod P) => Cslib.Probability.frameRetains P 4 Ls (σ s) (CopyPadding.identifier D sourceSuffix x); let Yt := fun (σ : Environment P J) (y : ZMod P) => Cslib.Probability.frameRetains P 4 Lt (σ t) (CopyPadding.identifier D suffix y); have Y := fun (σ : Environment P J) (y : ZMod P) => Cslib.Probability.frameRetains P 4 (side P k) (σ t) (CopyPadding.identifier D suffix y); (Cslib.vertexNormPow 4 N u X fun (σ : Environment P J) (x : ZMod P) => if Cslib.Probability.heavyCountEvent Y Finset.univ (fun (y : ZMod P) => G x y / rate k) floor n σ then v σ x else 0) ≤ (2 + 256 * M / floor) / ↑n * Cslib.rowNormPow 4 N u X Yt fun (x : Environment P J) (x_1 y : ZMod P) => b x_1 y

Actual mixed-rate H4 rarity contracts any deterministic endpoint mean discrepancy. The random row magnitude may select an endpoint adaptively; only its endpoint-power majorant is required. The usage channel is Lt, not the wider rank channel.