Documentation

Std.Data.TreeSet.AdditionalOperations

Additional tree set operations #

This file defines more operations on Std.TreeSet. We currently do not provide lemmas for these functions.

We do not provide get*GE, get*GT, get*LE and get*LT functions for the raw trees.

@[inline]
def Std.TreeMap.getGE {α : Type u} {cmp : ααOrdering} [TransCmp cmp] (t : TreeSet α cmp) (k : α) (h : (a : α), a t (cmp a k).isGE = true) :
α

Given a proof that such an element exists, retrieves the smallest element that is greater than or equal to the given element.

Equations
Instances For
    @[inline]
    def Std.TreeMap.getGT {α : Type u} {cmp : ααOrdering} [TransCmp cmp] (t : TreeSet α cmp) (k : α) (h : (a : α), a t cmp a k = Ordering.gt) :
    α

    Given a proof that such an element exists, retrieves the smallest element that is greater than the given element.

    Equations
    Instances For
      @[inline]
      def Std.TreeMap.getLE {α : Type u} {cmp : ααOrdering} [TransCmp cmp] (t : TreeSet α cmp) (k : α) (h : (a : α), a t (cmp a k).isLE = true) :
      α

      Given a proof that such an element exists, retrieves the largest element that is less than or equal to the given element.

      Equations
      Instances For
        @[inline]
        def Std.TreeMap.getLT {α : Type u} {cmp : ααOrdering} [TransCmp cmp] (t : TreeSet α cmp) (k : α) (h : (a : α), a t cmp a k = Ordering.lt) :
        α

        Given a proof that such an element exists, retrieves the smallest element that is less than the given element.

        Equations
        Instances For