NLAlib.Ops.writes_scalarBlock_lift
Library · theorem
A straight-line block over one operation group can be proved against its word functions before lifting it into a larger signature. The total functional contracts of that group, the pure block evaluation, and room for written cells suffice for the actual memory theorem.
NLAlib.Ops.writes_scalarBlock_lift {K G Op Tst : Type} [Ops.Has G Op] {I : Ops.Interp Op Tst K}
{τ : Ops.Tape K} {ρ : Ops.Env} {m : Ops.Mem K} {sem : G → List K → Option K}
{xs : List (Ops.ScalarIns G)} (hS : ∀ (o : G), Ops.ScalarCall I (Ops.Has.inj o) (sem o))
{ws : List ((ℕ × ℕ) × K)} (hev : Ops.ScalarIns.evalBlock sem ρ xs m.store.cellFn = some ws)
(hroom : ∀ w ∈ ws, w.1.2 < m.store.len w.1.1) :
Ops.Writes Ops.Mode.total I τ (Ops.Stmt.scalarBlock (List.map Ops.ScalarIns.lift xs)) ρ
(Ops.Fp.cells (List.map Prod.fst ws)) (fun m' ↦ m' = m.updCells ws) mImport NLAlib.Ops.Logic.Scalar.