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
      @[instance_reducible]
      instance WithBot.instRepr {α : Type u_1} [Repr α] :
      Equations
      @[instance_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
          @[instance_reducible]
          instance WithBot.coe {α : Type u_1} :
          Coe α (WithBot α)
          Equations
          @[instance_reducible]
          instance WithTop.coe {α : Type u_1} :
          Coe α (WithTop α)
          Equations
          @[instance_reducible]
          instance WithBot.bot {α : Type u_1} :
          Equations
          @[instance_reducible]
          instance WithTop.top {α : Type u_1} :
          Equations
          @[instance_reducible]
          instance WithBot.inhabited {α : Type u_1} :
          Equations
          @[instance_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