NLA-lib Explorer

NLAlib.Ops.ScalarIns.applyWrites_get

Library · theorem

Reading a scalar trace at its last write gives that word. Earlier writes and the surrounding cell function are irrelevant once the suffix preserves the cell.

NLAlib.Ops.ScalarIns.applyWrites_get {K : Type} {f : ℕ × ℕ → Option K} {xs ys : List ((ℕ × ℕ) × K)}
  {z : ℕ × ℕ} {v : K} (hz : z ∉ List.map Prod.fst ys) :
  Ops.ScalarIns.applyWrites f (xs ++ (z, v) :: ys) z = some v

Full source on GitHub

Import NLAlib.Ops.Logic.Scalar.