@[implicit_reducible]
Equations
- WithBot.instRepr = { reprPrec := fun (o : WithBot α) (x : Nat) => match o with | none => Std.Format.text "⊥" | some a => Std.Format.text "↑" ++ repr a }
@[implicit_reducible]
Equations
- WithTop.instRepr = { reprPrec := fun (o : WithTop α) (x : Nat) => match o with | none => Std.Format.text "⊤" | some a => Std.Format.text "↑" ++ repr a }
@[implicit_reducible]
Equations
- WithBot.coe = { coe := WithBot.some }
@[implicit_reducible]
Equations
- WithTop.coe = { coe := WithTop.some }
@[implicit_reducible]
Equations
- WithBot.bot = { bot := none }
@[implicit_reducible]
Equations
- WithTop.top = { top := none }
@[implicit_reducible]
Equations
- WithBot.inhabited = { default := ⊥ }
@[implicit_reducible]
Equations
- WithTop.inhabited = { default := ⊤ }
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
- WithBot.recBotCoe bot coe none = bot
- WithBot.recBotCoe bot coe (some a) = coe a
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
- WithTop.recTopCoe bot coe none = bot
- WithTop.recTopCoe bot coe (some a) = coe a