NLAlib.Ops.ScalarIns.evalBlock_append_some
Library · theorem
Evaluate a scalar prefix once, then evaluate a suffix on its actual updated cell function. This supports small independent arithmetic proofs without expanding earlier updates repeatedly.
NLAlib.Ops.ScalarIns.evalBlock_append_some {K Op : Type} {sem : Op → List K → Option K}
{ρ : Ops.Env} {xs ys : List (Ops.ScalarIns Op)} {f : ℕ × ℕ → Option K} {ws : List ((ℕ × ℕ) × K)}
(hxs : Ops.ScalarIns.evalBlock sem ρ xs f = some ws) :
Ops.ScalarIns.evalBlock sem ρ (xs ++ ys) f =
Option.map (fun x ↦ ws ++ x) (Ops.ScalarIns.evalBlock sem ρ ys (Ops.ScalarIns.applyWrites f ws))Import NLAlib.Ops.Logic.Scalar.