NLAlib.Ops.IsToNat.index_eq_of_decode_nat
Library · theorem
A readable exactly decoded natural converts to that same index.
NLAlib.Ops.IsToNat.index_eq_of_decode_nat {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} {n : ℕ}
(hx : m.store.get x.1 x.2 = some w) (hw : dec w = ↑n) :
I.index (Ops.Has.inj Ops.IdxTst.toNat) [x] m = some nImport NLAlib.Ops.Catalog.Index.