Skip to main content

key_le

Function key_le 

Source
pub open spec fn key_le<T, K: Ord, F: FnMut(&T) -> K>(f: F, a: T, b: T) -> bool
Expand description
{
    forall |ka: K, kb: K| {
        #[trigger] call_ensures(f, (&a,), ka) && #[trigger] call_ensures(f, (&b,), kb)
            ==> OrdSpec::cmp_spec(&ka, &kb) != Ordering::Greater
    }
}

a’s key is not after b’s in K’s order