A Boolean test for strictly increasing lists #
List.isSortedLT l checks that each entry of l is less than the next, by comparing l with its
tail entry by entry. It decides Mathlib's List.SortedLT (List.isSortedLT_iff). Written with
zip and all, it is a composition of list primitives whose machine cost is already bounded, so it
is convenient inside polynomial-time certificates.
Main definitions #
List.isSortedLT: whether each entry of a list is less than the next.
Main results #
List.isSortedLT_iff:List.isSortedLTdecidesList.SortedLT.
Whether each entry of l is less than the next.
List.isSortedLT decides List.SortedLT.