NLA-lib Explorer

NLAlib.Ops.IsCmp.test_eq

Library · theorem

eq on two readable cells.

NLAlib.Ops.IsCmp.test_eq {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 y : ℕ × ℕ} {m : Ops.Mem K}
  {a b : K} (hx : m.store.get x.1 x.2 = some a) (hy : m.store.get y.1 y.2 = some b) :
  I.test (Ops.Has.inj Ops.CmpTst.eq) d [x, y] m = some (decide (dec a = dec b))

Full source on GitHub

Import NLAlib.Ops.Catalog.Compare.