NLA-lib Explorer

NLAlib.Ops.IsCmp.test_isPos

Library · theorem

isPos on a readable cell.

NLAlib.Ops.IsCmp.test_isPos {K Op Tst : Type} [Ops.Has Ops.CmpTst Tst] {dec : K → ℝ}
  {I : Ops.Interp Op Tst K} (h : Ops.IsCmp dec I) {d : List ℕ} {x : ℕ × ℕ} {m : Ops.Mem K} {a : K}
  (hx : m.store.get x.1 x.2 = some a) :
  I.test (Ops.Has.inj Ops.CmpTst.isPos) d [x] m = some (decide (0 < dec a))

Full source on GitHub

Import NLAlib.Ops.Catalog.Compare.