Documentation

Init.Data.Ord

inductive Ordering :
Instances For
    class Ord (α : Type u) :
    Instances
      @[inline]
      def compareOfLessAndEq {α : Type u_1} (x : α) (y : α) [inst : LT α] [inst : Decidable (x < y)] [inst : DecidableEq α] :
      Equations
      instance instOrdNat :
      Equations
      instance instOrdInt :
      Equations
      instance instOrdBool :
      Equations
      Equations
      instance instOrdFin (n : Nat) :
      Ord (Fin n)
      Equations
      Equations
      Equations
      Equations
      Equations
      Equations
      instance instOrdChar :
      Equations
      def lexOrd {α : Type u_1} {β : Type u_2} [inst : Ord α] [inst : Ord β] :
      Ord (α × β)

      The lexicographic order on pairs.

      Equations
      • lexOrd = { compare := fun p1 p2 => match compare p1.fst p2.fst with | Ordering.eq => compare p1.snd p2.snd | o => o }
      def ltOfOrd {α : Type u_1} [inst : Ord α] :
      LT α
      Equations
      instance instDecidableRelLtLtOfOrd {α : Type u_1} [inst : Ord α] :
      Equations
      def leOfOrd {α : Type u_1} [inst : Ord α] :
      LE α
      Equations
      instance instDecidableRelLeLeOfOrd {α : Type u_1} [inst : Ord α] :
      Equations