NLAlib.Ops.writes_indexBlock
Library · theorem
A dimension literal block writes the actual machine literals of its evaluated natural indices. Output cells are live through capacity and are pairwise apart for simultaneous readback. No exactness or distinguishability of the literal decoding is assumed.
NLAlib.Ops.writes_indexBlock {K Op Tst : Type} [Ops.Has Ops.IndexOp Op] {M : Ops.Machine K}
{I : Ops.Interp Op Tst K} (hI : Ops.IsIndexLit M I) {τ : Ops.Tape K} {ρ : Ops.Env} {m : Ops.Mem K}
(xs : List (Ops.IExp × Ops.Operand)) {ns : List ℕ} {zs : List (ℕ × ℕ)}
(hns : Ops.IExp.evalList ρ.idx (List.map Prod.fst xs) = some ns)
(hzs : Ops.Operand.evalList ρ (List.map Prod.snd xs) = some zs)
(hap : Ops.Fp.Apart zs (List.replicate xs.length 1))
(hroom : m.Room zs (List.replicate xs.length 1)) :
Ops.Writes Ops.Mode.total I τ (Ops.Stmt.indexBlock xs) ρ
(Ops.Fp.blocks zs (List.replicate xs.length 1))
(fun m' ↦
m'.pos = m.pos ∧
m'.readBlocks zs (List.replicate xs.length 1) =
some
(List.map (fun n ↦ [M.lit n]) do
let a ← ns
pure ↑a))
mImport NLAlib.Ops.Logic.IndexBlock.