Skip to main content

sorted_by_le

Function sorted_by_le 

Source
pub open spec fn sorted_by_le<T>(s: Seq<T>, le: FnSpec<(T, T), bool>) -> bool
Expand description
{
    &&& forall |i: int, j: int| 0 <= i < j < s.len() ==> le(s[i], s[j])
    &&& super::super::relations::sorted_by(s, le)

}

s is sorted by le (as relations::sorted_by, with triggers on the elements, so that a fact about s[i] and s[j] is enough to learn their order)