NLA-lib Explorer

NLAlib.Ops.IExp.eval_le_upper

Library · theorem

The value of an index expression is at most its upper bound.

NLAlib.Ops.IExp.eval_le_upper {x idx : List ℕ} {env : List Ops.CountPoly}
  (h : Ops.BoundedBy x idx env) {e : Ops.IExp} {v : ℕ} (he : Ops.IExp.eval idx e = some v) :
  v ≤ Ops.CountPoly.eval x (Ops.IExp.upper env e)

Full source on GitHub

Import NLAlib.Ops.OperationCount.