NLA-lib Explorer

NLAlib.Ops.IExp.le_of_guardLe

Library · theorem

The guard of a comparison holds in its body: a count 1 - (1 - (e + 1 - j)) with a positive value has j \le e.

NLAlib.Ops.IExp.le_of_guardLe {n e : Ops.IExp} {j : ℕ} (hg : n.guardLe = some (e, j)) {idx : List ℕ}
  {i : ℕ} (hi : i < (Ops.IExp.eval idx n).getD 0) :
  ∃ a, Ops.IExp.eval idx e = some a ∧ ∀ (v : ℕ), idx[j]? = some v → v ≤ a

Full source on GitHub

Import NLAlib.Ops.MonomialWork.