NLAlib.slottedLogWrite_pos
Library · theorem
NLAlib.slottedLogWrite keeps the tape position and writes only the five words of its entry: from a stored log with room in the pending slot and the two pairs at pw, qw outside the log, on any machine with index literals.
NLAlib.slottedLogWrite_pos {O Q : Type} [Ops.Has Ops.ScalarOp O] [Ops.Has Ops.IndexOp O]
{Mch : Ops.Machine ℝ} {I : Ops.Interp O Q ℝ} (hS : Ops.IsScalar Mch I) (hL : Ops.IsIndexLit Mch I)
{ns w r : ℕ} {lg pw qw : ℕ × ℕ} {L : List (Option (List GivensEntry))} {P : List GivensEntry}
{p q : ℂ} {τ : Ops.Tape ℝ} {μ : Ops.Mem ℝ} (h : HoldsSlottedLog lg ns w L P μ.store)
(hLn : L.length < ns) (hP : P.length < w) (hp : μ.store.readBlock pw.1 pw.2 2 = some [p.re, p.im])
(hq : μ.store.readBlock qw.1 qw.2 2 = some [q.re, q.im])
(hd :
Ops.Fp.Disj (Ops.Store.inBlock lg.1 lg.2 (ns * (1 + 5 * w)))
(Ops.Store.inBlock pw.1 pw.2 2 ⊔ Ops.Store.inBlock qw.1 qw.2 2)) :
Ops.Writes Ops.Mode.total I τ slottedLogWrite
(Ops.Env.frame [w, L.length, P.length, r] [pw, qw, lg])
(Ops.Store.inBlock lg.1 (lg.2 + L.length * (1 + 5 * w) + 1 + 5 * P.length) 5)
(fun μ' ↦ μ'.pos = μ.pos) μImport NLAlib.Matrix.FinitePrecision.GivensLogSlots.