NLAlib.Ops.Writes.of_wp_upd_cell
Library · theorem
A run that ends in the memory updated at one cell is a footprint statement on that cell, which is read back.
NLAlib.Ops.Writes.of_wp_upd_cell {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K}
{τ : Ops.Tape K} {c : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K} {z : ℕ × ℕ} {P : K → Prop}
(hz : z.2 < m.store.len z.1) (h : Ops.Wp md I τ c ρ (fun m' ↦ ∃ v, P v ∧ m' = m.upd z v) m) :
Ops.Writes md I τ c ρ (Ops.Fp.blocks [z] [1])
(fun m' ↦ m'.pos = m.pos ∧ ∃ v, m'.readBlocks [z] [1] = some [[v]] ∧ P v) mImport NLAlib.Ops.Logic.Step.