NLAlib.Ops.IsToNat.index_eq
Library · theorem
The conversion of a readable cell with a nonnegative value is its floor.
NLAlib.Ops.IsToNat.index_eq {K Op Tst : Type} [Ops.Has Ops.IdxTst Tst] {dec : K → ℝ}
{I : Ops.Interp Op Tst K} (h : Ops.IsToNat dec I) {x : ℕ × ℕ} {m : Ops.Mem K} {w : K}
(hx : m.store.get x.1 x.2 = some w) (hw : 0 ≤ dec w) :
I.index (Ops.Has.inj Ops.IdxTst.toNat) [x] m = some ⌊dec w⌋₊Import NLAlib.Ops.Catalog.Compare.