Documentation

CslibFrontier.Computability.StreamArithmetic.EstimatorRecipes

Uncompiled stream query schedules for smooth estimators and row compression #

This module composes the uncompiled StreamSchedule helpers of CslibFrontier.Computability.StreamArithmetic.Primitives into exact signed-digit query schedules for smooth estimator and row-compression building blocks as intermediate steps after, and not formalizations of, [OpenAI2026LogSpace, Sections 4.1, 8.2, 10.2--10.6]. Native Turing-machine or counter-program space realization remains open and is tracked in #9181.

Because QueryProg continuations are arbitrary host Lean functions, every StreamSchedule below certifies only exact signed-digit stream evaluation (emits_signed, emits_exact) and digit-query index lookahead (j ≤ t + lookaheadCoeff * slack), with lookaheadCoeff depending only on κ and child lookahead coefficients (not on d, m, n, K, or items). No uniformity, computability, or Turing-machine workspace bound is claimed. For Cslib.RowCompression.newDefault and Cslib.RowCompression.update, intermediate piecewise-linear combinations whose unscaled range exceeds [-1, 1] are evaluated at dyadically rescaled magnitudes (/ 4, / 16, / 32, / 64) inside [-1, 1] and restored to exact unscaled values via shiftClip.

Main definitions #

References #

structure Cslib.StreamArithmetic.FixedSchedule {Op : Type u} {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop) (valFn : (Op → ℝ) → (Struct → Bool) → ℝ) :
Type (max u v)

Uncompiled stream query schedule pinned to slack d, environment validity predicate V, and semantic function valFn in its type (intermediate helper; not a machine-space certificate, see #9181). Keeping combinator bodies non-@[expose] while exposing FixedSchedule.toSchedule makes .slack, .ValidEnv, and .targetVal reduce in one step without unfolding multi-stage arithmetic DAGs.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.toSchedule {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {valFn : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V valFn) :
StreamSchedule Op Struct

Project a FixedSchedule back to a StreamSchedule with immediate definitional access to slack := d, ValidEnv := V, and targetVal := valFn.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.ofSchedule {Op : Type u} {Struct : Type v} (S : StreamSchedule Op Struct) :

Wrap any StreamSchedule as a FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.weaken {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V₁ V₂ : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V₁ f) (hV : ∀ {env : Op → ℕ → ℤ} {sEnv : Struct → Bool}, V₂ env sEnv → V₁ env sEnv) :
FixedSchedule d hd V₂ f

Strengthen the precondition of a FixedSchedule to V₂.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.congrVal {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V f) (g : (Op → ℝ) → (Struct → Bool) → ℝ) (hEq : ∀ {env : Op → ℕ → ℤ} {sEnv : Struct → Bool}, V env sEnv → f (fun (op : Op) => SignedDigitStream.streamVal (env op)) sEnv = g (fun (op : Op) => SignedDigitStream.streamVal (env op)) sEnv) :
FixedSchedule d hd V g

Replace the semantic value function of a FixedSchedule with an extensionally equal expression on valid environments.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.const {Op : Type u} {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop) (q : ℚ) (hq : |q| ≤ 1) :
FixedSchedule d hd V fun (x : Op → ℝ) (x_1 : Struct → Bool) => ↑q

Constant rational FixedSchedule for |q| ≤ 1.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.var {Op : Type u} {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop) (op : Op) (hOp : ∀ {env : Op → ℕ → ℤ} {sEnv : Struct → Bool}, V env sEnv → IsNormSignedStream (env op)) :
FixedSchedule d hd V fun (val : Op → ℝ) (x : Struct → Bool) => val op

Variable FixedSchedule reading operand stream op under V.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.neg {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V f) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => -f val sEnv

Exact negation on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.pairAvg {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f₁ f₂ : (Op → ℝ) → (Struct → Bool) → ℝ} (F₁ : FixedSchedule d hd V f₁) (F₂ : FixedSchedule d hd V f₂) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => (f₁ val sEnv + f₂ val sEnv) / 2

Exact pairwise average (F₁ + F₂) / 2 on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.max {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f₁ f₂ : (Op → ℝ) → (Struct → Bool) → ℝ} (F₁ : FixedSchedule d hd V f₁) (F₂ : FixedSchedule d hd V f₂) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => Max.max (f₁ val sEnv) (f₂ val sEnv)

Exact binary maximum on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.min {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f₁ f₂ : (Op → ℝ) → (Struct → Bool) → ℝ} (F₁ : FixedSchedule d hd V f₁) (F₂ : FixedSchedule d hd V f₂) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => Min.min (f₁ val sEnv) (f₂ val sEnv)

Exact binary minimum on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.mul {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f₁ f₂ : (Op → ℝ) → (Struct → Bool) → ℝ} (F₁ : FixedSchedule d hd V f₁) (F₂ : FixedSchedule d hd V f₂) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => f₁ val sEnv * f₂ val sEnv

Exact stream multiplication on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.abs {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V f) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => |f val sEnv|

Exact absolute value |F| = max F (-F) on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.StreamSchedule.abs {Op : Type u} {Struct : Type v} (S : StreamSchedule Op Struct) :
StreamSchedule Op Struct

Exact absolute-value query schedule |S| = max S (-S).

noncomputable def Cslib.StreamArithmetic.FixedSchedule.shiftClip {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V f) (v : ℤ) (κ : ℕ) (hv : v ≤ ↑(κ * d)) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => SignedDigitStream.shiftClipVal v (f val sEnv)

Exact shift-and-clip max (-1) (min 1 (2 ^ v * F)) on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.recip64 {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V f) (hMem : ∀ {env : Op → ℕ → ℤ} {sEnv : Struct → Bool}, V env sEnv → f (fun (op : Op) => SignedDigitStream.streamVal (env op)) sEnv ∈ Set.Icc (1 / 4) 1) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => 1 / (64 * f val sEnv)

Exact [1 / 4, 1] scaled reciprocal 1 / (64 * F) on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.dite {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} (P : Prop) [Decidable P] {f₁ : P → (Op → ℝ) → (Struct → Bool) → ℝ} {f₂ : ¬P → (Op → ℝ) → (Struct → Bool) → ℝ} (F₁ : (h : P) → FixedSchedule d hd V (f₁ h)) (F₂ : (h : ¬P) → FixedSchedule d hd V (f₂ h)) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => if h : P then f₁ h val sEnv else f₂ h val sEnv

Static parameter conditional branch on FixedSchedule.

noncomputable def Cslib.StreamArithmetic.FixedSchedule.guardStruct {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (F : FixedSchedule d hd V f) (sOp : Struct) :
FixedSchedule d hd (fun (env : Op → ℕ → ℤ) (sEnv : Struct → Bool) => sEnv sOp = true → V env sEnv) fun (val : Op → ℝ) (sEnv : Struct → Bool) => if sEnv sOp = true then f val sEnv else 0

Structural indicator guard on FixedSchedule: emits F when sEnv sOp = true and 0 when sEnv sOp = false, requiring V only when sEnv sOp = true.

noncomputable def Cslib.StreamArithmetic.clippedAtomInvFixed {Op : Type u} {Struct : Type v} (S : StreamSchedule Op Struct) :
FixedSchedule S.slack ⋯ S.ValidEnv fun (val : Op → ℝ) (sEnv : Struct → Bool) => 1 / (2 * max (1 / 2) (min 1 (S.targetVal val sEnv)))

Uncompiled FixedSchedule computing the clipped stochastic-atom inverse 1 / (2 * max (1 / 2) (min 1 (S.targetVal val sEnv))) (not a machine-space certificate; see #9181).

noncomputable def Cslib.StreamArithmetic.clippedAtomInvSchedule {Op : Type u} {Struct : Type v} (S : StreamSchedule Op Struct) :
StreamSchedule Op Struct

Uncompiled StreamSchedule computing the clipped stochastic-atom inverse 1 / (2 * max (1 / 2) (min 1 (S.targetVal val sEnv))) (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.polynomialTransition4Fixed {Op : Type u} {Struct : Type v} {d : ℕ} {hd : 1 ≤ d} {V : (Op → ℕ → ℤ) → (Struct → Bool) → Prop} {f : (Op → ℝ) → (Struct → Bool) → ℝ} (SF : FixedSchedule d hd V f) :
FixedSchedule d hd V fun (val : Op → ℝ) (sEnv : Struct → Bool) => polynomialTransition4 (f val sEnv)

Uncompiled FixedSchedule computing the degree-7 smooth switch Cslib.polynomialTransition4 (f val sEnv).

noncomputable def Cslib.StreamArithmetic.polynomialTransition4Schedule {Op : Type u} {Struct : Type v} (S : StreamSchedule Op Struct) :
StreamSchedule Op Struct

Uncompiled StreamSchedule computing Cslib.polynomialTransition4 (S.targetVal val sEnv) (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.dyadicSwitchNormFixed {Op : Type u} {Struct : Type v} (m κ : ℕ) (W : StreamSchedule Op Struct) (hm : m ≤ κ * W.slack) (r : ℕ) (hr : r ≤ m) :
FixedSchedule W.slack ⋯ W.ValidEnv fun (val : Op → ℝ) (sEnv : Struct → Bool) => SignedDigitStream.dyadicSwitch r (2 ^ (m + 1) * max 0 (W.targetVal val sEnv))

Uncompiled FixedSchedule computing dyadicSwitch r (2 ^ (m + 1) * max 0 (W.targetVal val sEnv)) for r ≤ m ≤ κ * W.slack.

noncomputable def Cslib.StreamArithmetic.dyadicSwitchNormSchedule {Op : Type u} {Struct : Type v} (m κ : ℕ) (W : StreamSchedule Op Struct) (hm : m ≤ κ * W.slack) (r : ℕ) (hr : r ≤ m) :
StreamSchedule Op Struct

Uncompiled StreamSchedule computing dyadicSwitch r (2 ^ (m + 1) * max 0 (W.targetVal val sEnv)) when r ≤ m ≤ κ * W.slack (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.dyadicWeightNormFixed {Op : Type u} {Struct : Type v} (m κ : ℕ) (W : StreamSchedule Op Struct) (hm : m ≤ κ * W.slack) (r : ℕ) :
FixedSchedule W.slack ⋯ W.ValidEnv fun (val : Op → ℝ) (sEnv : Struct → Bool) => SignedDigitStream.dyadicWeight m r (2 ^ (m + 1) * max 0 (W.targetVal val sEnv))

Uncompiled FixedSchedule computing the smooth dyadic partition-of-unity weight dyadicWeight m r (2 ^ (m + 1) * max 0 (W.targetVal val sEnv)).

noncomputable def Cslib.StreamArithmetic.dyadicWeightNormSchedule {Op : Type u} {Struct : Type v} (m κ : ℕ) (W : StreamSchedule Op Struct) (hm : m ≤ κ * W.slack) (r : ℕ) :
StreamSchedule Op Struct

Uncompiled StreamSchedule computing dyadicWeight m r (2 ^ (m + 1) * max 0 (W.targetVal val sEnv)) for any scale index r : ℕ when m ≤ κ * W.slack (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.invScaledNormFixed {Op : Type u} {Struct : Type v} (m κ : ℕ) (W : StreamSchedule Op Struct) (hm : m ≤ κ * W.slack) (r : ℕ) :
FixedSchedule W.slack ⋯ W.ValidEnv fun (val : Op → ℝ) (sEnv : Struct → Bool) => have w := 2 ^ (m + 1) * max 0 (W.targetVal val sEnv); 1 / 2 * (1 / 2 ^ (r + 1) * (1 / max (1 / 4) (min 1 (w / 2 ^ (r + 1)))))

Uncompiled FixedSchedule computing the r-th clamped dyadic reciprocal term (1 / 2) * (1 / 2 ^ (r + 1)) / max (1 / 4) (min 1 (w / 2 ^ (r + 1))) for w = 2 ^ (m + 1) * max 0 (W.targetVal val sEnv).

noncomputable def Cslib.StreamArithmetic.invScaledNormSchedule {Op : Type u} {Struct : Type v} (m κ : ℕ) (W : StreamSchedule Op Struct) (hm : m ≤ κ * W.slack) (r : ℕ) :
StreamSchedule Op Struct

Uncompiled leaf reciprocal schedule (1 / 2) * (1 / 2 ^ (r + 1)) * (1 / max (1 / 4) (min 1 (w / 2 ^ (r+1)))) for scale r in the smooth dyadic reciprocal decomposition (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.invOneAddScaledFixed {Op : Type u} {Struct : Type v} (m κ : ℕ) (S : StreamSchedule Op Struct) (hm : m ≤ κ * S.slack) :
FixedSchedule S.slack ⋯ S.ValidEnv fun (val : Op → ℝ) (sEnv : Struct → Bool) => 1 / (1 + max 0 (2 ^ m * S.targetVal val sEnv))

Uncompiled FixedSchedule computing 1 / (1 + max 0 (2 ^ m * S.targetVal val sEnv)) via the smooth dyadic partition of unity over r ∈ {0, ..., m}.

noncomputable def Cslib.StreamArithmetic.invOneAddScaledSchedule {Op : Type u} {Struct : Type v} (m κ : ℕ) (S : StreamSchedule Op Struct) (hm : m ≤ κ * S.slack) :
StreamSchedule Op Struct

Uncompiled StreamSchedule computing 1 / (1 + max 0 (2 ^ m * S.targetVal val sEnv)) for m ≤ κ * S.slack via an (m + 1)-level balanced binary-tree average over dyadic partition-of-unity terms (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.rationalRamp4NormFixed {Op : Type u} {Struct : Type v} (m κ : ℕ) (S : StreamSchedule Op Struct) (hm : m ≤ κ * S.slack) :
FixedSchedule S.slack ⋯ S.ValidEnv fun (val : Op → ℝ) (sEnv : Struct → Bool) => rationalRamp4Unit (2 ^ m * S.targetVal val sEnv) / 2 ^ m

Uncompiled FixedSchedule computing Cslib.rationalRamp4Unit (2 ^ m * S.targetVal val sEnv) / 2 ^ m (helper after [OpenAI2026LogSpace, Section 4.1]; see #9181).

noncomputable def Cslib.StreamArithmetic.rationalRamp4NormSchedule {Op : Type u} {Struct : Type v} (m κ : ℕ) (S : StreamSchedule Op Struct) (hm : m ≤ κ * S.slack) :
StreamSchedule Op Struct

Uncompiled StreamSchedule computing the normalized rational correction ramp Cslib.rationalRamp4Unit (2 ^ m * S.targetVal val sEnv) / 2 ^ m whenever m ≤ κ * S.slack (helper; not a machine-space certificate, see #9181).

Operand stream index for a single step of two-coordinate row compression (Cslib.RowCompression).

@[instance_reducible]
def Cslib.StreamArithmetic.instDecidableEqRowStreamIdx.decEq {ι✝ : Type u_1} [DecidableEq ι✝] (x✝ x✝¹ : RowStreamIdx ι✝) :
Decidable (x✝ = x✝¹)
structure Cslib.StreamArithmetic.RowSupportValidEnv {ι : Type u} (items : List ι) (env : RowStreamIdx ι → ℕ → ℤ) :

Normalized signed-stream environment precondition on .floor, .oldDefault, and all active support coordinates x ∈ items.

structure Cslib.StreamArithmetic.RowUpdateValidEnv {ι : Type u} (items : List ι) (y : ι) (env : RowStreamIdx ι → ℕ → ℤ) extends Cslib.StreamArithmetic.RowSupportValidEnv items env :

Normalized signed-stream environment precondition for Cslib.RowCompression.update at coordinate y.

noncomputable def Cslib.StreamArithmetic.rowCompressionThresholdFixed {ι : Type u} [DecidableEq ι] {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n : ℕ) :
FixedSchedule d hd (fun (env : RowStreamIdx ι → ℕ → ℤ) (x : Struct → Bool) => RowSupportValidEnv items env) fun (val : RowStreamIdx ι → ℝ) (x : Struct → Bool) => RowCompression.threshold items.toFinset n (val RowStreamIdx.floor) (val RowStreamIdx.oldDefault) fun (x : ι) (μ : Fin 2) => val (RowStreamIdx.entry x μ)

Uncompiled FixedSchedule computing Cslib.RowCompression.threshold via zeroPaddedRankListSchedule (helper after [OpenAI2026LogSpace, Section 8.2, Lemmas 10.6--10.7]; see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionThresholdSchedule {ι : Type u} [DecidableEq ι] {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n : ℕ) :

Uncompiled primitive StreamSchedule over RowStreamIdx ι computing Cslib.RowCompression.threshold items.toFinset n (helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionNewDefaultFixed {ι : Type u} [DecidableEq ι] {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n K : ℕ) :
FixedSchedule d hd (fun (env : RowStreamIdx ι → ℕ → ℤ) (x : Struct → Bool) => RowSupportValidEnv items env) fun (val : RowStreamIdx ι → ℝ) (x : Struct → Bool) => RowCompression.newDefault items.toFinset n K (val RowStreamIdx.floor) (val RowStreamIdx.oldDefault) fun (x : ι) (μ : Fin 2) => val (RowStreamIdx.entry x μ)

Uncompiled FixedSchedule computing Cslib.RowCompression.newDefault via rowCompressionThresholdFixed and zeroPaddedRankListSchedule (helper after [OpenAI2026LogSpace, Section 8.2]; see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionNewDefaultPrimSchedule {ι : Type u} [DecidableEq ι] {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n K : ℕ) :

Uncompiled primitive StreamSchedule over RowStreamIdx ι computing Cslib.RowCompression.newDefault items.toFinset n K (helper after [OpenAI2026LogSpace, (8.5)]; see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionUpdateFixed {ι : Type u} [DecidableEq ι] {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n K : ℕ) (y : ι) (ν : Fin 2) :
FixedSchedule d hd (fun (env : RowStreamIdx ι → ℕ → ℤ) (x : Struct → Bool) => RowUpdateValidEnv items y env) fun (val : RowStreamIdx ι → ℝ) (x : Struct → Bool) => RowCompression.update items.toFinset n K (val RowStreamIdx.floor) (val RowStreamIdx.oldDefault) (fun (x : ι) (μ : Fin 2) => val (RowStreamIdx.entry x μ)) y ν

Uncompiled FixedSchedule computing Cslib.RowCompression.update for entry (y, ν) via rowCompressionThresholdFixed and rowCompressionNewDefaultFixed (helper after [OpenAI2026LogSpace, Section 8.2]; see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionUpdatePrimSchedule {ι : Type u} [DecidableEq ι] {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n K : ℕ) (y : ι) (ν : Fin 2) :

Uncompiled primitive StreamSchedule over RowStreamIdx ι computing coordinate (y, ν) of the compressed row Cslib.RowCompression.update items.toFinset n K (helper after [OpenAI2026LogSpace, (8.6)]; see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionNewDefaultSchedule {ι : Type u} [DecidableEq ι] {Op : Type u'} {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n K : ℕ) (floorS oldDefaultS : StreamSchedule Op Struct) (entryS : ι → Fin 2 → StreamSchedule Op Struct) (cC : ℕ) (hSlackFloor : floorS.slack = d) (hSlackDef : oldDefaultS.slack = d) (hSlackEntry : ∀ x ∈ items, ∀ (μ : Fin 2), (entryS x μ).slack = d) (hLookFloor : floorS.lookaheadCoeff ≤ cC) (hLookDef : oldDefaultS.lookaheadCoeff ≤ cC) (hLookEntry : ∀ x ∈ items, ∀ (μ : Fin 2), (entryS x μ).lookaheadCoeff ≤ cC) :
StreamSchedule Op Struct

Compose rowCompressionNewDefaultPrimSchedule with child StreamSchedules for the floor, old default, and active support entries (uncompiled helper; not a machine-space certificate, see #9181).

noncomputable def Cslib.StreamArithmetic.rowCompressionUpdateSchedule {ι : Type u} [DecidableEq ι] {Op : Type u'} {Struct : Type v} (d : ℕ) (hd : 1 ≤ d) (items : List ι) (hNodup : items.Nodup) (n K : ℕ) (y : ι) (ν : Fin 2) (floorS oldDefaultS : StreamSchedule Op Struct) (entryS : ι → Fin 2 → StreamSchedule Op Struct) (cC : ℕ) (hSlackFloor : floorS.slack = d) (hSlackDef : oldDefaultS.slack = d) (hSlackEntry : ∀ (x : ι), x = y ∨ x ∈ items → ∀ (μ : Fin 2), (entryS x μ).slack = d) (hLookFloor : floorS.lookaheadCoeff ≤ cC) (hLookDef : oldDefaultS.lookaheadCoeff ≤ cC) (hLookEntry : ∀ (x : ι), x = y ∨ x ∈ items → ∀ (μ : Fin 2), (entryS x μ).lookaheadCoeff ≤ cC) :
StreamSchedule Op Struct

Compose rowCompressionUpdatePrimSchedule with child StreamSchedules for the floor, old default, and row entries (uncompiled helper; not a machine-space certificate, see #9181).