Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyChildRootMoment

Rooted lower-child errors on their own request domains #

Finite fourth-moment payments for bounded normalized children on one full environment. The positive cost charges only actual left support. Right requests reset their source to that midpoint, so errors outside the midpoint source cannot enter this payment. These original finite estimates do not construct a recursive approximate evaluator.

theorem Matrix.HierarchyParams.HierarchyTask.positiveChildError_fourth_le {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype V] [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (l bin : ℕ) (t : RawTask k) (source midpoint endpoint : CorrectionRowTask.Channel Role (List Symbol)) (b CA CB : ℝ) (estimated canonical : Request k Role Symbol → Matrix V V ℝ) (x y : V) {ED EL ER : ℝ} (hCA : 0 ≤ CA) (hCB : 0 ≤ CB) (hEL : 0 ≤ EL) (hER : 0 ≤ ER) (hD : |estimated (rawRequests l bin t source midpoint endpoint b).direct x y - canonical (rawRequests l bin t source midpoint endpoint b).direct x y| ^ 4 ≤ ED) (hL : ∀ (z : V), |estimated (rawRequests l bin t source midpoint endpoint b).left x z - canonical (rawRequests l bin t source midpoint endpoint b).left x z| ^ 4 ≤ EL) (hR : ∀ (z : V), estimated (rawRequests l bin t source midpoint endpoint b).left x z ≠ 0 ∨ canonical (rawRequests l bin t source midpoint endpoint b).left x z ≠ 0 → |estimated (rawRequests l bin t source midpoint endpoint b).right z y - canonical (rawRequests l bin t source midpoint endpoint b).right z y| ^ 4 ≤ ER) :
have R := rawRequests l bin t source midpoint endpoint b; positiveChildError channels l bin t source midpoint endpoint b CA CB estimated canonical x y ^ 4 ≤ 8 * (|b * usageRatio channels endpoint R.direct y| ^ 4 * ED + |b * usageRatio channels endpoint R.right y * (midpoint.rate / ↑{σ : Ω | midpoint.retains channels σ y}.dens)| ^ 4 * ↑(Fintype.card V) ^ 4 * (8 * (CA ^ 4 * ER + CB ^ 4 * EL)))

A pointwise fourth-power payment. Each error hypothesis is used only on the domain where that child is actually called. In particular the reset right source is z, and the left terminal is z; no off-source right error is requested. The union-support guard in positiveChildError is essential here.

noncomputable def Matrix.HierarchyParams.HierarchyTask.residualErrorCalls {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} (bins : Finset ℕ) (l : ℕ) (source midpoint terminal : CorrectionRowTask.Channel Role (List Symbol)) (b : ℕ → ℝ) :
Finset (ℕ × Request k Role Symbol)

Lower requests whose errors enter the finite residual: three positive requests per bin and the endpoint negative at bin zero once, even when the positive bin set is empty.

noncomputable def Matrix.HierarchyParams.HierarchyTask.conditionalChildCost {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype V] [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (bins : Finset ℕ) (l : ℕ) (source midpoint terminal : CorrectionRowTask.Channel Role (List Symbol)) (b : ℕ → ℝ) (CA CB : ℝ) (estimated canonical : ℕ → Ω → Request k Role Symbol → Matrix V V ℝ) (x y : V) :

Actual conditional cost shared by the mean, common-envelope and output clients. It sums positive bins and adds the special negative error once.

noncomputable def Matrix.HierarchyParams.HierarchyTask.residualCostCoefficient {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype V] [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (bins : Finset ℕ) (l : ℕ) (source midpoint terminal : CorrectionRowTask.Channel Role (List Symbol)) (b : ℕ → ℝ) (CA CB : ℝ) :

Literal finite importance and midpoint-density payment. The coarse bound uses the sum of fourth powers over every endpoint to bound each coefficient. It pays a fourth power of the positive-bin count and of the vertex width; no bin/rate factor is hidden.

theorem Matrix.HierarchyParams.HierarchyTask.conditionalChildCost_le_of_root_budgets {k : ℕ} {Role : Type u_1} {Symbol : Type u_2} {V : Type u_3} {Ω : Type u_4} [Fintype V] [Fintype Ω] (channels : Role → ℝ → List Symbol → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : List Symbol) → (σ : Ω) → (v : V) → Decidable (channels role rate suffix σ v)] (bins : Finset ℕ) (l : ℕ) (source midpoint terminal : CorrectionRowTask.Channel Role (List Symbol)) (b : ℕ → ℝ) {CA CB B N u δ : ℝ} (hCA : 0 ≤ CA) (hCB : 0 ≤ CB) (hN : 0 < N) (hu : 0 < u) (hδ : 0 ≤ δ) (estimated canonical : ℕ → Ω → Request k Role Symbol → Matrix V V ℝ) (hsource : ∀ (i : ℕ) (r : Request k Role Symbol), (i, r) ∈ residualErrorCalls bins l source midpoint terminal b → 0 < r.source.rate) (hrange : ∀ (i : ℕ) (r : Request k Role Symbol), (i, r) ∈ residualErrorCalls bins l source midpoint terminal b → ∀ (σ : Ω) (x y : V), estimated i σ r x y ∈ Set.Icc 0 B ∧ canonical i σ r x y ∈ Set.Icc 0 B) (hoff : ∀ (i : ℕ) (r : Request k Role Symbol), (i, r) ∈ residualErrorCalls bins l source midpoint terminal b → ∀ (σ : Ω) (x y : V), ¬r.usage.retains channels σ y → estimated i σ r x y = 0 ∧ canonical i σ r x y = 0) :
have scale := ↑(Fintype.card V) ^ 2 / (N * u) * residualCostCoefficient channels bins l source midpoint terminal b CA CB; (∀ (i : ℕ) (r : Request k Role Symbol), (i, r) ∈ residualErrorCalls bins l source midpoint terminal b → (Cslib.rootDistPow 4 N r.source.rate (fun (σ : Ω) (x : V) => r.source.retains channels σ x) (fun (σ : Ω) (y : V) => r.usage.retains channels σ y) (fun (σ : Ω) => estimated i σ r) fun (σ : Ω) => canonical i σ r) ≤ δ / (1 + scale) / (1 + (4 * B ^ (3 / 4)) ^ 4 * (N * r.source.rate)) / (1 + ↑(residualErrorCalls bins l source midpoint terminal b).card)) → (Cslib.rowNormPow 4 N u (fun (σ : Ω) (x : V) => source.retains channels σ x) (fun (σ : Ω) (y : V) => terminal.retains channels σ y) fun (x : Ω) => conditionalChildCost channels bins l source midpoint terminal b CA CB estimated canonical) ≤ δ

Sufficient explicit accuracy allocation from rooted moments on each called child's own source/usage domain. The ordinary conversion is applied only to bounded nonnegative normalized outputs. All finite vertex, bin, importance and midpoint-density costs are displayed. The negative request is included once by residualErrorCalls.

Expectations and finite sums stay integrated on the full shared environment. No independence or minimum atom probability is used. Recursive accuracy and parameter growth remain open.