Documentation

CslibFrontier.Foundations.Data.List.IsSortedLT

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 #

Main results #

def List.isSortedLT {α : Type u_1} [LT α] [DecidableLT α] (l : List α) :

Whether each entry of l is less than the next.