Documentation

Time.Interval

class Time.LeRefl (α : Type u) [LE α] :

Reflexive relation of LE class

  • le_refl (a : α) : a a
Instances
    def Time.Icc {α : Type} [LE α] (a b : α) :

    Left-closed right-closed interval

    Equations
    Instances For
      instance Time.instLEIcc {α : Type} [LE α] {a b : α} :
      LE (Icc a b)
      Equations
      instance Time.instReprIcc {α : Type} [Repr α] [LE α] {a b : α} :
      Repr (Icc a b)
      Equations
      instance Time.instBEqIcc {α : Type} [BEq α] [LE α] {a b : α} :
      BEq (Icc a b)
      Equations
      instance Time.instCoeOutIcc {α : Type} [LE α] {a b : α} :
      CoeOut (Icc a b) α
      Equations
      instance Time.instLeReflIcc {α : Type} [LE α] [LeRefl α] {a b : α} :
      LeRefl (Icc a b)
      instance Time.instCoeOutIccNatInt (a b : Nat) :
      CoeOut (Icc a b) Int
      Equations
      theorem Time.Icc.nonempty {α : Type} [LE α] [LeRefl α] {a b : α} (h : a b) :
      def Time.Ico {α : Type} [LE α] [LT α] (a b : α) :

      Left-closed right-open interval

      Equations
      Instances For
        instance Time.instLEIco {α : Type} [LE α] [LT α] {a b : α} :
        LE (Ico a b)
        Equations
        instance Time.instReprIco {α : Type} [Repr α] [LE α] [LT α] {a b : α} :
        Repr (Ico a b)
        Equations
        instance Time.instBEqIco {α : Type} [BEq α] [LE α] [LT α] {a b : α} :
        BEq (Ico a b)
        Equations
        instance Time.instCoeOutIco {α : Type} [LE α] [LT α] (a b : α) :
        CoeOut (Ico a b) α
        Equations
        instance Time.instLeReflIco {α : Type} [LE α] [LT α] [LeRefl α] {a b : α} :
        LeRefl (Ico a b)
        instance Time.instCoeOutIcoNat (a b : Nat) :
        CoeOut (Ico a b) Nat
        Equations
        instance Time.instCoeOutIcoNatInt (a b : Nat) :
        CoeOut (Ico a b) Int
        Equations
        theorem Time.Ico.nonempty {α : Type} [LE α] [LT α] [LeRefl α] {a b : α} (h : a < b) :
        structure Time.NonemptyIcc {α : Type} [LE α] [LeRefl α] (a b : α) :
        Instances For
          instance Time.instCoeNonemptyIccIcc {α : Type} [LE α] [LeRefl α] (a b : α) :
          Coe (NonemptyIcc a b) (Icc a b)
          Equations
          structure Time.NonemptyIco {α : Type} [LE α] [LT α] [LeRefl α] (a b : α) :
          Instances For
            instance Time.instCoeNonemptyIcoIco {α : Type} [LE α] [LT α] [LeRefl α] (a b : α) :
            Coe (NonemptyIco a b) (Ico a b)
            Equations
            def Time.toNonemptyIcc {α : Type} [LE α] [LeRefl α] {a b : α} (v : Icc a b) (h : a b) :
            Equations
            Instances For
              def Time.toNonemptyIco {α : Type} [LE α] [LT α] [LeRefl α] {a b : α} (v : Ico a b) (h : a < b) :
              Equations
              Instances For
                theorem Time.NonemptyIcc.sub_lt_sub {n x m : Nat} :
                n xx < mn < mx - n < m - n
                theorem Time.NonemptyIcc.sub_lt_sub_of_succ {n x m : Nat} :
                n xx mn mx - n < m + 1 - n
                def Time.NonemptyIcc.toFin {n m : Nat} (x : NonemptyIcc n m) :
                Fin (m + 1 - n)
                Equations
                • x.toFin = x.icc.val - n,
                Instances For
                  Equations
                  theorem Time.Icc.Nat.val_eq_mem_of_range {n : Nat} (m : Icc 1 n) :
                  m.val List.range' 1 n
                  theorem Time.Icc.Nat.mem_of_range_exists_val {n m : Nat} (h : m List.range' 1 n) :
                  ∃ (x : Icc 1 n), m = x.val