NLA-lib Explorer

NLAlib.HoldsSlottedLog.of_write_entry

Library · theorem

Writing an entry: a store that agrees with a stored log off the five words of entry P.length of the pending slot, and holds the words of e there, holds the log with e appended to the pending entries.

NLAlib.HoldsSlottedLog.of_write_entry {lg : ℕ × ℕ} {ns w : ℕ} {L : List (Option (List GivensEntry))}
  {P : List GivensEntry} {s s' : Ops.Store ℝ} {e : GivensEntry} (h : HoldsSlottedLog lg ns w L P s)
  (hL : L.length < ns) (hP : P.length < w)
  (hfr :
    Ops.Store.EqOff (Ops.Store.inBlock lg.1 (lg.2 + L.length * (1 + 5 * w) + 1 + 5 * P.length) 5) s
      s')
  (hr :
    s'.readBlock lg.1 (lg.2 + L.length * (1 + 5 * w) + 1 + 5 * P.length) 5 = some (entryWords e)) :
  HoldsSlottedLog lg ns w L (P ++ [e]) s'

Full source on GitHub

Import NLAlib.Matrix.FinitePrecision.GivensLog.