Documentation

Time.Interval

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

Reflexive relation of LE class

  • le_refl : ∀ (a : α), a a
Instances
    theorem Time.LeRefl.le_refl {α : Type u} [LE α] [self : Time.LeRefl α] (a : α) :
    a a
    def Time.Icc {α : Type} [LE α] (a : α) (b : α) :

    Left-closed right-closed interval

    Equations
    Instances For
      instance Time.instLEIcc {α : Type} [LE α] {a : α} {b : α} :
      LE (Time.Icc a b)
      Equations
      • Time.instLEIcc = { le := fun (a_1 b_1 : Time.Icc a b) => a_1.val b_1.val }
      instance Time.instReprIcc {α : Type} [Repr α] [LE α] {a : α} {b : α} :
      Equations
      • Time.instReprIcc = { reprPrec := fun (s : Time.Icc a b) (x : Nat) => repr s.val }
      instance Time.instBEqIcc {α : Type} [BEq α] [LE α] {a : α} {b : α} :
      Equations
      • Time.instBEqIcc = { beq := fun (a_1 b_1 : Time.Icc a b) => a_1.val == b_1.val }
      instance Time.instCoeOutIcc {α : Type} [LE α] {a : α} {b : α} :
      CoeOut (Time.Icc a b) α
      Equations
      • Time.instCoeOutIcc = { coe := fun (n : Time.Icc a b) => n.val }
      instance Time.instLeReflIcc {α : Type} [LE α] [Time.LeRefl α] {a : α} {b : α} :
      Equations
      • Time.instLeReflIcc = { le_refl := }
      instance Time.instCoeOutIccNatInt (a : Nat) (b : Nat) :
      Equations
      theorem Time.Icc.nonempty {α : Type} [LE α] [Time.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 (Time.Ico a b)
        Equations
        • Time.instLEIco = { le := fun (a_1 b_1 : Time.Ico a b) => a_1.val b_1.val }
        instance Time.instReprIco {α : Type} [Repr α] [LE α] [LT α] {a : α} {b : α} :
        Equations
        • Time.instReprIco = { reprPrec := fun (s : Time.Ico a b) (x : Nat) => repr s.val }
        instance Time.instBEqIco {α : Type} [BEq α] [LE α] [LT α] {a : α} {b : α} :
        Equations
        • Time.instBEqIco = { beq := fun (a_1 b_1 : Time.Ico a b) => a_1.val == b_1.val }
        instance Time.instCoeOutIco {α : Type} [LE α] [LT α] (a : α) (b : α) :
        CoeOut (Time.Ico a b) α
        Equations
        instance Time.instLeReflIco {α : Type} [LE α] [LT α] [Time.LeRefl α] {a : α} {b : α} :
        Equations
        • Time.instLeReflIco = { le_refl := }
        instance Time.instCoeOutIcoNat (a : Nat) (b : Nat) :
        Equations
        instance Time.instCoeOutIcoNatInt (a : Nat) (b : Nat) :
        Equations
        theorem Time.Ico.nonempty {α : Type} [LE α] [LT α] [Time.LeRefl α] {a : α} {b : α} (h : a < b) :
        structure Time.NonemptyIcc {α : Type} [LE α] [Time.LeRefl α] (a : α) (b : α) :
        Instances For
          theorem Time.NonemptyIcc.isNonempty {α : Type} [LE α] [Time.LeRefl α] {a : α} {b : α} (self : Time.NonemptyIcc a b) :
          instance Time.instCoeNonemptyIccIcc {α : Type} [LE α] [Time.LeRefl α] (a : α) (b : α) :
          Equations
          structure Time.NonemptyIco {α : Type} [LE α] [LT α] [Time.LeRefl α] (a : α) (b : α) :
          Instances For
            theorem Time.NonemptyIco.isNonempty {α : Type} [LE α] [LT α] [Time.LeRefl α] {a : α} {b : α} (self : Time.NonemptyIco a b) :
            instance Time.instCoeNonemptyIcoIco {α : Type} [LE α] [LT α] [Time.LeRefl α] (a : α) (b : α) :
            Equations
            def Time.toNonemptyIcc {α : Type} [LE α] [Time.LeRefl α] {a : α} {b : α} (v : Time.Icc a b) (h : a b) :
            Equations
            Instances For
              def Time.toNonemptyIco {α : Type} [LE α] [LT α] [Time.LeRefl α] {a : α} {b : α} (v : Time.Ico a b) (h : a < b) :
              Equations
              Instances For
                theorem Time.NonemptyIcc.sub_lt_sub {n : Nat} {x : Nat} {m : Nat} :
                n xx < mn < mx - n < m - n
                theorem Time.NonemptyIcc.sub_lt_sub_of_succ {n : Nat} {x : Nat} {m : Nat} :
                n xx mn mx - n < m + 1 - n
                def Time.NonemptyIcc.toFin {n : Nat} {m : Nat} (x : Time.NonemptyIcc n m) :
                Fin (m + 1 - n)
                Equations
                • x.toFin = let_fun h1 := ; let_fun h2 := ; let_fun h := ; x.icc.val - n,
                Instances For
                  Equations
                  • Time.NonemptyIcc.instCoeNatFinHSubHAddOfNat = { coe := fun (x : Time.NonemptyIcc n m) => x.toFin }
                  Equations