Documentation

CslibFrontier.Computability.LogSpaceDerandomization.HierarchyTasks

Bounded cross-stage hierarchy tasks #

The dependency order of [OpenAI2026LogSpace, Section 7.1], revision 7ef5c0cc, connects stage-local pilot and actual correction tasks to the existing hierarchy of Section 4.5. Iteration indices here are finite: completed corrections and maxima have indices in Fin (k + 1), while inputs, preparations and normalized rows have indices in Fin k. Thus a normalized pilot's newly completed maximum still belongs to the same stage block. The block size is computed from the local constructor bound, not postulated for unbounded tasks.

The matrix output uses the actual residual and copy stage, and the reward output uses (4.31). At positive stages, the base matrix and previous reward are calls to these earlier outputs. The semantic equations use DetectedHierarchy itself; no second hierarchy is introduced. Preparation and normalization retain their whole-function recipes. Channel roles, usage rates, inherited suffixes and midpoint source release retain the contracts of CorrectionRowTask.

This is a deterministic cross-stage hierarchy/reward client, not the complete stochastic task assembly: routed direct/residual bin tables, fixed-copy-symbol suffix extension and their cross-stage role/rate tuples remain open. There is no error recurrence, budget-recursive estimator, root regularity or native complexity claim for these noncomputable functions.

Main definitions #

Main results #

Local constructors with only the iterations needed by a k-step hierarchy stage.

Instances For
    @[reducible, inline]

    Forget the finite index proofs into the existing unified local family.

    Every constructor really fits the stage block, including both stochastic families.

    Complete finite child recipes. Successor maxima/corrections use the preceding finite index; preparations and normalized rows never request an iteration beyond k.

    Forgetting finite index proofs preserves every local dependency, with no missing child.

    A stage-local row or the matrix produced by its completed correction-and-copy stage.

    The row bound, one matrix-output slot and one separating slot.

    Rank computed only from stage, constructor and finite iteration index.

    Dense-bin edges interleave with the existing finite correction iteration order.

    Actual dependencies: local recipes, the residual/copy matrix output, and the two cross-stage calls replacing the old local leaves. Base-stage leaves read S and e₀.

    theorem Matrix.HierarchyParams.HierarchyTask.rank_lt_of_binDependency {k : ℕ} {child parent : HierarchyTask k} (h : child.BinDependency parent) :
    child.rank < parent.rank

    All stochastic-bin edges decrease the same constructor-computed global rank.

    Every finite local row fits strictly before its stage's matrix output.

    theorem Matrix.HierarchyParams.HierarchyTask.rank_lt_of_dependency {k : ℕ} {child parent : HierarchyTask k} (h : child.Dependency parent) :
    child.rank < parent.rank

    Every local and cross-stage call decreases the same computed natural rank.

    Concrete call graph. The inherited matrix and reward are leaves only at stage zero; zero-iteration corrections and maxima remain local constants.

    theorem Matrix.HierarchyParams.HierarchyTask.dependency_of_mem_children {k : ℕ} {parent child : HierarchyTask k} (h : child ∈ parent.children) :
    child.Dependency parent

    Every listed call belongs to the semantic constructor dependency relation.

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

    The concrete global call graph decreases, including both former local leaves.

    theorem Matrix.HierarchyParams.HierarchyTask.induction {k : ℕ} {motive : HierarchyTask k → Prop} (step : ∀ (t : HierarchyTask k), (∀ c ∈ t.children, motive c) → motive t) (t : HierarchyTask k) :
    motive t

    Induction follows bounded calls to original inputs or local zero-iteration constants. This is structural task induction, not the estimator's statistical-budget induction.

    @[reducible, inline]
    abbrev Matrix.hierarchyTaskValueType {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V κ Γ Ζ : ℕ → Type u} :

    Actual value types: local rows retain their distinct matrix/vector/seed types; the matrix output lives on the next hierarchy domain.

    noncomputable def Matrix.hierarchyTaskValue {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (t : HierarchyParams.HierarchyTask P.k) :

    Interpret bounded tasks using the actual hierarchy and transported reward. The two cross-stage equations below resolve the former local base leaves to earlier constructors.

    noncomputable def Matrix.hierarchyTaskRecipe {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : ℕ → Type u} [(l : ℕ) → Fintype (V l)] (e : (l : ℕ) → V (l + 1) ≃ Lex (V l × Fin (P.m + 1))) {ι κ Γ Ζ : ℕ → Type u} [(l : ℕ) → Fintype (ι l)] [(l : ℕ) → Fintype (κ l)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (child : (t : HierarchyParams.HierarchyTask P.k) → hierarchyTaskValueType P t) (t : HierarchyParams.HierarchyTask P.k) :

    One constructor evaluated on arbitrary whole child functions. This is the structural ACCESS assembly, before statistical-budget recursion. Incoming gates in correction recipes are computed on completed child matrices. No aggregate mean or error is a parameter.

    theorem Matrix.hierarchyTaskRecipe_residualPreparation {q cπ Cπ Cpair Cvar : ℝ} (P : HierarchyParams q cπ Cπ Cpair Cvar) {V : ℕ → Type u} [(l : ℕ) → Fintype (V l)] (e : (l : ℕ) → V (l + 1) ≃ Lex (V l × Fin (P.m + 1))) {ι κ Γ Ζ : ℕ → Type u} [(l : ℕ) → Fintype (ι l)] [(l : ℕ) → Fintype (κ l)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) {Ω : Type u_1} (child : Ω → (t : HierarchyParams.HierarchyTask P.k) → hierarchyTaskValueType P t) (l i : ℕ) (raw : Ω → Matrix (V l) (V l) ℝ) (hchild : ∀ (ω : Ω), child ω (HierarchyParams.HierarchyTask.residual l) = raw ω) (B : DenseBinRecipe) (ω : Ω) (σ : Γ l × Ζ l) :
    hierarchyTaskRecipe P e X Y S e₀ Xs Z Zt A (child ω) (HierarchyParams.HierarchyTask.residualPreparation l i) B σ = DenseRowRecipe.preparation B.h B.ρ B.K (B.scales i) (Z l) (raw ω) σ.2

    The existing residual-preparation evaluator reads a completed raw child before applying the nonlinear preparation recipe. The child may depend on the full environment; this equation also applies when it is a conditional-walk average.

    theorem Matrix.hierarchyTaskRecipe_residual {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) :
    hierarchyTaskRecipe P e X Y S e₀ Xs Z Zt A (hierarchyTaskValue P e X Y S e₀ Xs Z Zt A) (HierarchyParams.HierarchyTask.residual l) = hierarchyTaskValue P e X Y S e₀ Xs Z Zt A (HierarchyParams.HierarchyTask.residual l)

    True residual substitution uses the actual correction hierarchy equation.

    theorem Matrix.hierarchyTaskRecipe_bins {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l i : ℕ) :

    Both global bin preparations and normalized bins preserve the true hierarchy semantics. Preparatory substitution is the actual earlier preparation, rather than an asserted normalizer.

    theorem Matrix.hierarchyTask_base_zero {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) :

    At stage zero, the row base is exactly the supplied matrix.

    theorem Matrix.hierarchyTask_base_succ {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) :

    At positive stages, the base row is the actual preceding correction-and-copy output.

    theorem Matrix.hierarchyTask_previousReward_zero {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) :

    Stage zero's reward reads the original reward, including the zero reward.

    theorem Matrix.hierarchyTask_previousReward_succ {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) :

    The old previous-reward leaf is precisely the preceding projected-reward constructor, transported by the actual domain equivalence. Its whole vector is called at the parent vertex.

    theorem Matrix.hierarchyTask_nextMatrix {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) :

    The matrix output reads exactly its earlier base, final actual correction and copy weights. This is the existing residual and copy recipe, including all copy symbols.

    theorem Matrix.hierarchyTask_preparation {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (i : Fin P.k) :

    Preparations call the bounded earlier input as a whole matrix.

    theorem Matrix.hierarchyTask_normalized {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (i : Fin P.k) :

    Normalization calls the bounded earlier input, preparation and completed pilot maximum.

    theorem Matrix.hierarchyTask_input {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (i : Fin P.k) :

    The actual input calls the base on both sides of the product. The right row is applied at the summation midpoint, as in the inherited local request recipe.

    theorem Matrix.hierarchyTask_pilotPreparation {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (i : Fin P.k) :

    Pilot preparation is also a call to its bounded earlier raw input.

    theorem Matrix.hierarchyTask_pilotNormalized {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (i : Fin P.k) :

    The pilot normalized child uses the current completed maximum, rather than the final maximum used by the actual correction. Finite indices include this successor maximum.

    theorem Matrix.hierarchyTask_rewardRecipe {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (hn : n l < P.k) (σ : Γ l × Ζ l) (a : V (l + 1)) :

    The reward sample reads the actual bounded weight, normalized correction and inherited reward children. The two vector evaluations have distinct source vertices: parent and midpoint. The seed predicates retain the inherited roles/rates/suffixes from A l.

    theorem Matrix.expect_hierarchyTaskReward_crossStage {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)] [(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) ℝ) (e₀ : V 0 → ℝ) (Xs : (l : ℕ) → Γ l → V l → Prop) (Z Zt : (l : ℕ) → Ζ l → V l → Prop) [(l : ℕ) → (s : Γ l) → (v : V l) → Decidable (Xs l s v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Z l t v)] [(l : ℕ) → (t : Ζ l) → (v : V l) → Decidable (Zt l t v)] {n : ℕ → ℕ} (A : (l : ℕ) → P.CorrectionSampling (X l) (Y l) (Xs l) (Z l) (Zt l) (q⁻¹ ^ l) (hierarchy P e X Y S l) (n l)) (l : ℕ) (hn : n (l + 1) + 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 + 1, Cslib.Probability.RetentionChannels (X j) (Y j) (q⁻¹ ^ j) (π j) cπ Cπ Cpair Cvar) (a : V (l + 2)) (hx : {s : Γ (l + 1) | Xs (l + 1) s (ofLex ((e (l + 1)) a)).1}.Nonempty) :
    (({s : Γ (l + 1) | Xs (l + 1) s (ofLex ((e (l + 1)) a)).1} ×ˢ Finset.univ).expect fun (σ : Γ (l + 1) × Ζ (l + 1)) => (A (l + 1)).projectedRewardRecipe (fun (b : V (l + 1)) => hierarchyTaskValue P e X Y S e₀ Xs Z Zt A (HierarchyParams.HierarchyTask.row l (HierarchyParams.BoundedRowTask.projectedReward (Fin.last P.k))) ((e l) b)) σ ((e (l + 1)) a)) = hierarchyTaskValue P e X Y S e₀ Xs Z Zt A (HierarchyParams.HierarchyTask.row (l + 2) HierarchyParams.BoundedRowTask.previousReward) a

    The recursive reward client uses the actual preceding projected reward in (7.5), including the normalized child's local preparation. The first vector keeps its inherited source; the summand calls the same whole vector at the midpoint. All predicates can have fixed suffixes already applied. No old source vertex is stored in the right child.