Documentation

Mathlib.Order.TypeTags

Order-related type synonyms #

In this file we define WithBot and WithTop.

def WithBot (α : Type u_2) :
Type u_2

Attach to a type.

Equations
Instances For
    def WithTop (α : Type u_2) :
    Type u_2

    Attach to a type.

    Equations
    Instances For
      @[implicit_reducible]
      instance WithBot.instRepr {α : Type u_1} [Repr α] :
      Equations
      @[implicit_reducible]
      instance WithTop.instRepr {α : Type u_1} [Repr α] :
      Equations
      @[match_pattern]
      def WithBot.some {α : Type u_1} :
      αWithBot α

      The canonical map from α into WithBot α

      Equations
      Instances For
        @[match_pattern]
        def WithTop.some {α : Type u_1} :
        αWithTop α

        The canonical map from α into WithTop α

        Equations
        Instances For
          @[implicit_reducible]
          instance WithBot.coe {α : Type u_1} :
          Coe α (WithBot α)
          Equations
          @[implicit_reducible]
          instance WithTop.coe {α : Type u_1} :
          Coe α (WithTop α)
          Equations
          @[implicit_reducible]
          instance WithBot.bot {α : Type u_1} :
          Equations
          @[implicit_reducible]
          instance WithTop.top {α : Type u_1} :
          Equations
          @[implicit_reducible]
          instance WithBot.inhabited {α : Type u_1} :
          Equations
          @[implicit_reducible]
          instance WithTop.inhabited {α : Type u_1} :
          Equations
          def WithBot.recBotCoe {α : Type u_1} {C : WithBot αSort u_2} (bot : C ) (coe : (a : α) → C a) (n : WithBot α) :
          C n

          Recursor for WithBot using the preferred forms and ↑a.

          Equations
          Instances For
            def WithTop.recTopCoe {α : Type u_1} {C : WithTop αSort u_2} (top : C ) (coe : (a : α) → C a) (n : WithTop α) :
            C n

            Recursor for WithTop using the preferred forms and ↑a.

            Equations
            Instances For
              @[simp]
              theorem WithBot.recBotCoe_bot {α : Type u_1} {C : WithBot αSort u_2} (d : C ) (f : (a : α) → C a) :
              @[simp]
              theorem WithTop.recTopCoe_top {α : Type u_1} {C : WithTop αSort u_2} (d : C ) (f : (a : α) → C a) :
              @[simp]
              theorem WithBot.recBotCoe_coe {α : Type u_1} {C : WithBot αSort u_2} (d : C ) (f : (a : α) → C a) (x : α) :
              recBotCoe d f x = f x
              @[simp]
              theorem WithTop.recTopCoe_coe {α : Type u_1} {C : WithTop αSort u_2} (d : C ) (f : (a : α) → C a) (x : α) :
              recTopCoe d f x = f x