Documentation

CslibFrontier.Computability.LogSpaceDerandomization.CorrectionRowTasks

Unified pilot, actual-correction and copy/reward tasks #

This is the actual-correction family of [OpenAI2026LogSpace, Sections 5.3, 7.1–7.4], revision 7ef5c0cc: the raw input is C + Eᵢ C, the preparation is (5.13), and the normalized row is (5.14), using the bounded cutoff Qat(d) = Q(clip_[0,B_Q](d)) on arbitrary computed inputs. We choose B_Q = max (k + 1) θ₂ + 1, strictly above the true normalized entry bound and θ₂. Only the argument to Q is clipped: gates and ranks still read the original child table. The exact hierarchy continues to use uncapped Q. The multiplier is the final pilot maximum, rather than the current pilot maximum. The incoming scores and gates are local operations on the completed raw matrix, not recursive calls to another task. Constructor ranks below account for the final pilot and actual iterations. True agreement is proved for i ≤ k from nonnegative substochastic C with entries at most f. Beyond this iteration range the constructor is still bounded, without a true-mean claim.

The recipes take child functions, so substituting estimates changes all entries before ranks are evaluated. Source and terminal channels are explicit function arguments: Xs has the inherited source role/rate, Z the stage-rank role/rate, and Zt the usage role/rate. They may already be partially applied to fixed padding suffixes. Every call below retains these same functions and suffixes. The preparation's conditional mean uses Xs(x) and Zt(y), with no importance factor; the normalized row is extended by zero outside Zt(y). Neither an old source nor a fixed endpoint is retained as a child parameter. Both remain arguments of the child row.

The actual family embeds the expanded stochastic PilotRowTask, including its normalized child-to-correction edge. A pilot of at most k iterations uses at most 15*k+20 rank slots; actual iterations, the copy weights and the reward/projection constructors follow this bound. No caller supplies a rank certificate. The shared evaluator accepts whole preparation and normalization functions; embedded pilot mean laws require the pilot's own primitive sampling contract, with the same recipes, rather than using actual-correction laws for a different input.

inputRequests and rewardRequests retain channel roles, rates and already applied suffixes. The right child restarts on the midpoint tuple. expect_rewardRequests instantiates those tuples as actual channel predicates and proves the mean and computed dependency decrease for (7.5). expect_hierarchyTaskReward connects this local recipe to the existing DetectedHierarchy reward, including nonprimary copy weights computed from the final pilot vector.

This completes the unified local families and copy/reward client. HierarchyTasks connects the local previous-reward and base-matrix leaves to bounded earlier-stage constructors. Raw direct/routed-bin recursion, cross-stage role tuple assembly and the scheduled mean-prefix theorem remain open. Range and exact means do not prove root regularity or the full error recurrence. Primitive cutoffs retain the explicit contracts of CorrectionSampling. Mean identities are exact finite identities, independent of the source's eighth versus our fourth moments; no new real-valued rate schedule is asserted.

Main definitions #

Main results #

Fixed-stage constructors, including stochastic pilot preparation and normalization.

Actual inputs of a constructor. The final pilot is completed before actual corrections begin.

The finite expanded pilot occupies at most 15 * k + 20 slots. Actual iterations follow it with five slots each; reward and copy projection follow their correction.

Iteration bound inherited from the actual constructor, including the expanded pilot.

Both finite local families and their copy/reward client fit in a computed stage block. This is a local bound; no global stage recursion is defined here.

theorem Matrix.HierarchyParams.CorrectionRowTask.rank_lt_of_mem_children {k : ℕ} {parent child : CorrectionRowTask} (h : child ∈ children k parent) :
rank k child < rank k parent

Every actual child is earlier, including preparation and the final pilot multiplier.

structure Matrix.HierarchyParams.CorrectionRowTask.Channel (Role : Type u_1) (Suffix : Type u_2) :
Type (max u_1 u_2)

A channel argument includes its role, rate and already inherited padding. The suffix type is abstract: this does not introduce a native identifier encoding.

  • role : Role

    Independent channel role.

  • rate : ℝ

    Retention rate on this vertex domain.

  • suffix : Suffix

    Fixed padding passed unchanged to child calls.

@[reducible, inline]
abbrev Matrix.HierarchyParams.CorrectionRowTask.Channel.retains {Role : Type u_1} {Suffix : Type u_2} {Ω : Type u_3} {V : Type u_4} (ch : Channel Role Suffix) (channels : Role → ℝ → Suffix → Ω → V → Prop) :
Ω → V → Prop

Interpret a channel tuple with the existing channel family. Padding is passed as is.

structure Matrix.HierarchyParams.CorrectionRowTask.Request (Role : Type u_1) (Suffix : Type u_2) :
Type (max u_1 u_2)

A genuine row or vector call, with explicit conditioning and usage domains.

  • Constructor whose whole function is called.

  • source : Channel Role Suffix

    Inherited source, or the midpoint channel after source release.

  • terminal : Option (Channel Role Suffix)

    Row endpoint domain; absent for vectors.

  • usage : Option (Channel Role Suffix)

    Usage domain; absent for vectors.

def Matrix.HierarchyParams.CorrectionRowTask.inputRequests {Role : Type u_1} {Suffix : Type u_2} (source midpoint terminal : Channel Role Suffix) (i : ℕ) :
List (Request Role Suffix)

Direct and product calls for the actual raw input. Right multiplication resets the source to the midpoint role, rate and padding; it does not retain the old source vertex.

def Matrix.HierarchyParams.CorrectionRowTask.rewardRequests {Role : Type u_1} {Suffix : Type u_2} (source broadSource midpoint : Channel Role Suffix) (i : ℕ) :
List (Request Role Suffix)

The copy/reward sample calls the broad copy weight, the inherited reward, the normalized correction and the reward restarted on the midpoint domain, in (7.5) order. Channels may already include fixed copy-symbol padding and inherited suffixes.

theorem Matrix.HierarchyParams.CorrectionRowTask.inputRequest_mem_children {Role : Type u_1} {Suffix : Type u_2} {source midpoint terminal : Channel Role Suffix} {i k : ℕ} {r : Request Role Suffix} (hr : r ∈ inputRequests source midpoint terminal i) :

The task of every request in inputRequests is a child of input i, so it has smaller rank (rank_lt_of_mem_children).

theorem Matrix.HierarchyParams.CorrectionRowTask.rewardRequest_mem_children {Role : Type u_1} {Suffix : Type u_2} {source broadSource midpoint : Channel Role Suffix} {i k : ℕ} {r : Request Role Suffix} (hr : r ∈ rewardRequests source broadSource midpoint i) :

The task of every request in rewardRequests is a child of projectedReward (i + 1), so it has smaller rank (rank_lt_of_mem_children).

theorem Matrix.HierarchyParams.CorrectionRowTask.scheduled_child_cost_le {k : ℕ} {parent child : CorrectionRowTask} (hchild : child ∈ children k parent) {A a a' u u' : ℝ} (hA : 0 ≤ A) (M d c : ℕ) (hc : 0 < c) (h : ℤ) (ha : 0 < a) (ha' : 0 < a') (hu : 0 < u) (huu' : u ≤ u') (hscale : Real.logb 2 (a' / a) = ↑h) :
Cslib.LogSpaceEstimation.binNormCost 4 ↑h * 2 ^ (Real.logb 2 (u' / u) / 4) * 2 ^ (-Cslib.LogSpaceEstimation.precision (16 * ↑c) A (Cslib.LogSpaceEstimation.lastBudget M d c h) (rank k child) a' u') ≤ 2 ^ (-Cslib.LogSpaceEstimation.precision (16 * ↑c) A M (rank k parent) a u - A + ↑d / (16 * ↑c) + 1 / 16) * Cslib.LogSpaceEstimation.scaleMajorant h

The unified constructor order pays the existing fourth-moment precision cost.

theorem Matrix.HierarchyParams.CorrectionRowTask.reward_request_cost_le {Role : Type u_1} {Suffix : Type u_2} {source broadSource midpoint : Channel Role Suffix} {i k : ℕ} {r : Request Role Suffix} (hr : r ∈ rewardRequests source broadSource midpoint i) {f A : ℝ} (hbroad : broadSource.rate = f) (hmid : midpoint.rate = f) (hA : 0 ≤ A) (M d c : ℕ) (hc : 0 < c) (hf : 0 < f) (hu : 0 < source.rate) (huf : source.rate ≤ f) :

Calls of the concrete copy/reward recipe pay for their inherited or reset source rate. The broad detector and midpoint channels are at the stage rate, as in (7.5).

@[reducible, inline]

Pilot values keep their existing types; stochastic rows have two seed coordinates.

noncomputable def Matrix.HierarchyParams.CorrectionSampling.preparationRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (σ : Γ × Ζ) :

All incoming scores are computed from the child raw input on this draw, before ranking.

noncomputable def Matrix.HierarchyParams.CorrectionSampling.normalizedRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) :

Normalization reads the raw child, preparatory child and final pilot vector. Ranks and products are evaluated on child functions before the conditional average is taken.

theorem Matrix.HierarchyParams.CorrectionSampling.normalizedRecipe_mem_Icc {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) :
A.normalizedRecipe input prep maximum σ x y ∈ Set.Icc 0 (2 * P.Q P.atomCap)

Every estimated child table gives values in the same fixed range. The preparatory child and final-pilot child are arbitrary functions; no error hypothesis is required.

theorem Matrix.HierarchyParams.CorrectionSampling.normalizedRecipe_eq_zero_of_not_usage {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (hy : ¬Zt σ.2 y) :
A.normalizedRecipe input prep maximum σ x y = 0

Usage masking is retained for arbitrary child substitutions and fixed channel suffixes.

theorem Matrix.HierarchyParams.CorrectionSampling.normalizedRecipe_eq_zero_of_nonpos {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x y : V) (hd : input x y / f ≤ 0) :
A.normalizedRecipe input prep maximum σ x y = 0

Clipping cannot introduce support at nonpositive raw estimates.

theorem Matrix.HierarchyParams.CorrectionSampling.card_filter_normalizedRecipe_row_ne_zero_lt {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (x : V) (hK : 0 < A.K) {e g : ℝ} (he : 0 ≤ e) (hQ : ∀ d ≤ e, P.Q d = 0) (hg : g ≤ e) (hρ : ∀ (r : ℝ), g ≤ r → A.ρ r = 0) :
{y ∈ {w : V | Z σ.2 w} | A.normalizedRecipe input prep maximum σ x y ≠ 0}.card < A.K

Bounded estimated rows retain the original row-support guarantee. Preparation substitution cannot create a nonzero entry when the cutoff or row gate vanishes.

theorem Matrix.HierarchyParams.CorrectionSampling.card_filter_normalizedRecipe_col_ne_zero_lt {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (input : Matrix V V ℝ) (prep : Γ × Ζ → Matrix V V ℝ) (maximum : V → ℝ) (σ : Γ × Ζ) (y : V) (hKc : 0 < A.Kc) (hIQ : ∀ (v r : ℝ), P.Q v ≠ 0 → A.ρ r ≠ 0 → A.I v r = 1) {g : ℝ} (hg : g ≤ 1) (hτ : ∀ (r : ℝ), g ≤ r → A.τ r = 0) :
{x ∈ {w : V | Xs σ.1 w} | A.normalizedRecipe input prep maximum σ x y ≠ 0}.card < A.Kc

The incoming support bound also survives arbitrary child substitutions. Scores and ranks use the original raw table, and the cap cannot introduce new scalar support.

noncomputable def Matrix.HierarchyParams.CorrectionSampling.value {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (t : CorrectionRowTask) :
CorrectionRowTask.Value P.m V κ Γ Ζ t

Actual values of every constructor, using the existing pilot and actual-correction semantics. The primitive gates are fixed throughout this local family; their sampling contract is needed only at the iteration for which a mean theorem is requested.

theorem Matrix.HierarchyParams.CorrectionSampling.value_pilot {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (B : P.PilotSampling X Y Xs Z Zt f C i) (hprep : A.preparationRecipe = B.preparationRecipe) (hnorm : A.normalizedRecipe = B.normalizedRecipe) (t : PilotRowTask) :

The embedded pilot uses the shared expanded evaluator. When the same primitive recipes satisfy the pilot laws, all its values agree with the standalone pilot family. Only recipe equality is required, never an assumed mean or error.

theorem Matrix.HierarchyParams.CorrectionSampling.value_pilot_correction_mean {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (B : P.PilotSampling X Y Xs Z Zt f C i) (hprep : A.preparationRecipe = B.preparationRecipe) (hnorm : A.normalizedRecipe = B.normalizedRecipe) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) {x : V} (hx : {s : Γ | Xs s x}.Nonempty) (y : V) :

The expanded pilot correction's normalized child remains a semantic dependency when embedded in the actual family. Its mean follows from the pilot's own primitive channel laws.

theorem Matrix.HierarchyParams.CorrectionSampling.value_input {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (j : ℕ) :

Actual raw-input calls, including evaluation of the right child at the midpoint.

theorem Matrix.HierarchyParams.CorrectionSampling.value_preparation {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (j : ℕ) :

The incoming-score and gate assembly reads precisely the earlier raw-input child.

theorem Matrix.HierarchyParams.CorrectionSampling.value_normalized {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (j : ℕ) :

The normalized row reads precisely its earlier input, preparation and final pilot children.

theorem Matrix.HierarchyParams.CorrectionSampling.value_normalized_mem_Icc {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (j : ℕ) (σ : Γ × Ζ) (x y : V) :

The actual recursive-task client uses the bounded recipe at every iteration.

theorem Matrix.HierarchyParams.CorrectionSampling.value_correction_succ {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (j : ℕ) (x y : V) :

Actual correction values use the final pilot, independently of the current iteration.

theorem Matrix.HierarchyParams.CorrectionSampling.value_weights {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) :

The copy weight is computed from the earlier expanded pilot maximum, on the whole parent vertex domain. Primary and nonprimary symbols use the existing hierarchy API.

theorem Matrix.HierarchyParams.CorrectionSampling.value_reward {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (j : ℕ) (W : V → ℝ) :

The reward constructor reads precisely the inherited reward and actual correction.

theorem Matrix.HierarchyParams.CorrectionSampling.value_projectedReward {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) [DecidableEq V] (j : ℕ) (W : V → ℝ) :

Projected task values are the existing weighted copy projection, not a second hierarchy.

noncomputable def Matrix.HierarchyParams.CorrectionSampling.projectedRewardRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (σ : Γ × Ζ) (a : Lex (V × Fin (P.m + 1))) :

The actual (7.5) recipe substitutes whole earlier normalized-row, reward and copy-weight functions. The right reward call is evaluated at the midpoint, with the same fixed channels.

theorem Matrix.HierarchyParams.CorrectionSampling.inputRecipe_eq_input {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} :

The raw recipe uses the actual base and previous actual correction, in matrix units.

theorem Matrix.HierarchyParams.CorrectionSampling.normalizerRecipe_eq {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (x y : V) :
CorrectionRowRecipe.normalizer Xs Zt (A.preparationRecipe (P.correctionInput X Y f C i)) x y = correctionNormalizer A.I A.τ A.K A.Kc f (P.correctionInput X Y f C i) Xs Z Zt A.h A.ρ x y

Preparatory values from true child functions are exactly the sampler's normalizer.

theorem Matrix.HierarchyParams.CorrectionSampling.normalizedRecipe_eq_atom {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) (σ : Γ × Ζ) (x y : V) :
A.normalizedRecipe (P.correctionInput X Y f C i) (A.preparationRecipe (P.correctionInput X Y f C i)) (PilotTask.value P X Y f C (PilotTask.maximum P.k)) σ x y = A.atom σ x y

On actual hierarchy inputs in the bounded iteration range, the complete local recipe agrees with the existing uncapped true atom. The entry bound is derived, not assumed of a child.

theorem Matrix.HierarchyParams.CorrectionSampling.projectedRewardRecipe_eq_rewardSample {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) (W : V → ℝ) (σ : Γ × Ζ) (a : Lex (V × Fin (P.m + 1))) :
A.projectedRewardRecipe W σ a = A.rewardSample (P.weight X Y f C (ofLex a).2 (ofLex a).1) W σ (ofLex a).1

True child substitution identifies the task recipe with the existing reward sample.

theorem Matrix.HierarchyParams.CorrectionSampling.expect_projectedRewardRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) (W : V → ℝ) (a : Lex (V × Fin (P.m + 1))) (hx : {s : Γ | Xs s (ofLex a).1}.Nonempty) :
(({s : Γ | Xs s (ofLex a).1} ×ˢ Finset.univ).expect fun (σ : Γ × Ζ) => A.projectedRewardRecipe W σ a) = A.value W (CorrectionRowTask.projectedReward (i + 1)) a

Primitive gate/channel laws identify the semantic value of the unified projected-reward constructor. Every function in this recipe is a strictly earlier task in the same order. This is a true-mean identity, not an error recurrence for substituted estimates.

theorem Matrix.HierarchyParams.CorrectionSampling.expect_projectedRewardRecipe_last {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) [DecidableEq V] (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i + 1 = P.k) (W : V → ℝ) (a : Lex (V × Fin (P.m + 1))) (hx : {s : Γ | Xs s (ofLex a).1}.Nonempty) :
(({s : Γ | Xs s (ofLex a).1} ×ˢ Finset.univ).expect fun (σ : Γ × Ζ) => A.projectedRewardRecipe W σ a) = (P.proj X Y f C).mulVec (W + (P.correction X Y f C).mulVec W) a

At the final actual iteration, the task client is exactly the hierarchy's copy/reward update. It reuses correctionIter_last and proj, preserving their mathematical values.

theorem Matrix.HierarchyParams.CorrectionSampling.secondChannel_eq {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (ζ : ℝ) (σ : Γ × Ζ) (x y : V) :
CorrectionRowRecipe.secondChannel Xs Zt ζ (A.preparationRecipe (P.correctionInput X Y f C i)) σ x y = if Zt σ.2 y then ζ * correctionNormalizer A.I A.τ A.K A.Kc f (P.correctionInput X Y f C i) Xs Z Zt A.h A.ρ x y else 0

The second channel has precisely its preparatory conditional mean, with the usage mask and external scale. In particular it has no broad/narrow importance ratio.

theorem Matrix.HierarchyParams.CorrectionSampling.expect_normalizedRecipe {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) {x : V} (hx : {s : Γ | Xs s x}.Nonempty) (y : V) :
(({s : Γ | Xs s x} ×ˢ Finset.univ).expect fun (σ : Γ × Ζ) => f / A.π * A.normalizedRecipe (P.correctionInput X Y f C i) (A.preparationRecipe (P.correctionInput X Y f C i)) (PilotTask.value P X Y f C (PilotTask.maximum P.k)) σ x y) = P.correctionIter X Y f C (i + 1) x y

Gate and channel laws, rather than a supplied mean, identify the normalized row's target.

theorem Matrix.HierarchyParams.CorrectionSampling.value_correction_mean {q cπ Cπ Cpair Cvar : ℝ} {P : HierarchyParams q cπ Cπ Cpair Cvar} {V κ Γ Ζ : Type u} {ι : Type u_1} [Fintype V] [Fintype ι] [Fintype κ] [Fintype Γ] [Fintype Ζ] {X : ι → V → Prop} {Y : κ → V → Prop} [(s : ι) → (v : V) → Decidable (X s v)] [(t : κ) → (v : V) → Decidable (Y t v)] {Xs : Γ → V → Prop} {Z Zt : Ζ → V → Prop} [(s : Γ) → (v : V) → Decidable (Xs s v)] [(t : Ζ) → (v : V) → Decidable (Z t v)] [(t : Ζ) → (v : V) → Decidable (Zt t v)] {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (A : P.CorrectionSampling X Y Xs Z Zt f C i) (W : V → ℝ) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) {x : V} (hx : {s : Γ | Xs s x}.Nonempty) (y : V) :
A.value W (CorrectionRowTask.correction (i + 1)) x y = ({s : Γ | Xs s x} ×ˢ Finset.univ).expect fun (σ : Γ × Ζ) => f / A.π * A.value W (CorrectionRowTask.normalized i) σ x y

The actual correction constructor is the true mean of its earlier normalized child in the unified order, with the exact usage density.

theorem Matrix.HierarchyParams.CorrectionRowTask.expect_rewardRequests {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V Ω : Type u} [Fintype V] [Fintype Ω] {Role : Type u_1} {Suffix : Type u_2} (channels : Role → ℝ → Suffix → Ω → V → Prop) [(role : Role) → (rate : ℝ) → (suffix : Suffix) → (s : Ω) → (v : V) → Decidable (channels role rate suffix s v)] (source broadSource midpoint : Channel Role Suffix) {f : ℝ} {C : Matrix V V ℝ} {i : ℕ} (hbroad : broadSource.rate = f) (hmid : midpoint.rate = f) (huf : source.rate ≤ f) (A : P.CorrectionSampling (broadSource.retains channels) (midpoint.retains channels) (source.retains channels) (midpoint.retains channels) (midpoint.retains channels) f C i) (hf : 0 < f) (hC : ∀ (x y : V), 0 ≤ C x y) (hC1 : C.mulVec 1 ≤ 1) (hCf : ∀ (x y : V), C x y ≤ f) (hi : i ≤ P.k) (W : V → ℝ) (a : Lex (V × Fin (P.m + 1))) (hx : {s : Ω | source.retains channels s (ofLex a).1}.Nonempty) :
(({s : Ω | source.retains channels s (ofLex a).1} ×ˢ Finset.univ).expect fun (σ : Ω × Ω) => A.projectedRewardRecipe W σ a) = A.value W (projectedReward (i + 1)) a ∧ ∀ r ∈ rewardRequests source broadSource midpoint i, rank P.k r.task < rank P.k (projectedReward (i + 1)) ∧ source.rate ≤ r.source.rate

A role/rate/suffix instantiation of the real reward recipe, with every listed call strictly earlier. The broad source and midpoint roles supply the hierarchy's pilot channels; the correction retains the inherited source and the right reward resets to the midpoint. The sampler contains primitive channel/gate laws, not the asserted reward mean.

theorem Matrix.expect_hierarchyTaskReward {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : ℕ → Type u} [(l : ℕ) → Fintype (V l)] [(l : ℕ) → LinearOrder (V l)] (e : (l : ℕ) → V (l + 1) ≃ Lex (V l × Fin (P.m + 1))) {ι κ : ℕ → Type u} [(l : ℕ) → Fintype (ι l)] [(l : ℕ) → Fintype (κ l)] (X : (l : ℕ) → ι l → V l → Prop) (Y : (l : ℕ) → κ l → V l → Prop) [(l : ℕ) → (s : ι l) → (v : V l) → Decidable (X l s v)] [(l : ℕ) → (t : κ l) → (v : V l) → Decidable (Y l t v)] (S : Matrix (V 0) (V 0) ℝ) {Γ Ζ : Type u} [Fintype Γ] [Fintype Ζ] (l i : ℕ) (Xs : Γ → V l → Prop) (Z Zt : Ζ → V l → Prop) [(s : Γ) → (v : V l) → Decidable (Xs s v)] [(t : Ζ) → (v : V l) → Decidable (Z t v)] [(t : Ζ) → (v : V l) → Decidable (Zt t v)] (A : P.CorrectionSampling (X l) (Y l) Xs Z Zt (q⁻¹ ^ l) (hierarchy P e X Y S l) i) (hi : i + 1 = P.k) (he : ∀ (j : ℕ) (a b : V (j + 1)), (e j) a < (e j) b → a < b) (hq : 0 < q) (hCπ : 0 < Cπ) (hS : S.IsStrictUpperTriangular) (hS0 : ∀ (x y : V 0), 0 ≤ S x y) (hS1 : S.mulVec 1 ≤ 1) {π : ℕ → ℝ} (hch : ∀ j < l, Cslib.Probability.RetentionChannels (X j) (Y j) (q⁻¹ ^ j) (π j) cπ Cπ Cpair Cvar) (e₀ : V 0 → ℝ) (a : V (l + 1)) (hx : {s : Γ | Xs s (ofLex ((e l) a)).1}.Nonempty) :
(({s : Γ | Xs s (ofLex ((e l) a)).1} ×ˢ Finset.univ).expect fun (σ : Γ × Ζ) => A.projectedRewardRecipe ((rewardTransport (hierarchyProj P e X Y S) (hierarchyCorrection P e X Y S) l).mulVec e₀) σ ((e l) a)) = (rewardTransport (hierarchyProj P e X Y S) (hierarchyCorrection P e X Y S) (l + 1)).mulVec e₀ a

The unified local task recipe realizes the next reward of DetectedHierarchy itself. The hierarchy invariant discharges true input bounds; no aggregate mean/error is assumed. The previous reward is a leaf of the local order: assembling its cross-stage calls is separate.