⊤ and ⊥, bounded lattices and variants #
This file defines top and bottom elements (greatest and least elements) of a type, the bounded
variants of different kinds of lattices, sets up the typeclass hierarchy between them and provides
instances for Prop and fun.
Main declarations #
<Top/Bot> α: Typeclasses to declare the⊤/⊥notation.Order<Top/Bot> α: Order with a top/bottom element.BoundedOrder α: Order with a top and bottom element.
Top, bottom element #
An order is (noncomputably) either an OrderTop or a NoTopOrder. Use as
cases topOrderOrNoTopOrder α.
Equations
Instances For
An order is (noncomputably) either an OrderBot or a NoBotOrder. Use as
cases botOrderOrNoBotOrder α.
Equations
Instances For
Alias of ne_top_of_lt.
Alias of ne_bot_of_gt.
Alias of lt_top_of_lt.
Alias of bot_lt_of_lt.
Alias of the forward direction of isMax_iff_eq_top.
Alias of the forward direction of isMin_iff_eq_bot.
Alias of the forward direction of isTop_iff_eq_top.
Alias of the forward direction of isBot_iff_eq_bot.
Equations
- OrderDual.instOrderTopOfOrderBot α = { toTop := OrderDual.instTopOfBot α, le_top := ⋯ }
Equations
- OrderDual.instOrderBotOfOrderTop α = { toBot := OrderDual.instBotOfTop α, bot_le := ⋯ }
Bounded order #
Equations
- OrderDual.instBoundedOrder α = { toOrderTop := OrderDual.instOrderTopOfOrderBot α, toOrderBot := OrderDual.instOrderBotOfOrderTop α }
Function lattices #
Equations
- Pi.instOrderBot = { toBot := Pi.instBotForall, bot_le := ⋯ }
Equations
- Pi.instOrderTop = { toTop := Pi.instTopForall, le_top := ⋯ }
Equations
- Pi.instBoundedOrder = have __spread.0 := inferInstance; have __spread.1 := inferInstance; { toOrderTop := __spread.0, toOrderBot := __spread.1 }
A type with a single element is a bounded order.
Instances For
Pullback a BoundedOrder.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Subtype, order dual, product lattices #
A subtype remains a bounded order if the property holds at ⊥ and ⊤.
Equations
- Subtype.boundedOrder hbot htop = have __spread.0 := Subtype.orderTop htop; have __spread.1 := Subtype.orderBot hbot; { toOrderTop := __spread.0, toOrderBot := __spread.1 }
Instances For
Equations
- Prod.instOrderTop α β = let __spread.0 := inferInstance; { toTop := __spread.0, le_top := ⋯ }
Equations
- Prod.instOrderBot α β = let __spread.0 := inferInstance; { toBot := __spread.0, bot_le := ⋯ }
Equations
- Prod.instBoundedOrder α β = have __spread.0 := inferInstance; have __spread.1 := inferInstance; { toOrderTop := __spread.0, toOrderBot := __spread.1 }
Equations
Equations
Equations
- ULift.instBoundedOrder = { toOrderTop := ULift.instOrderTop, toOrderBot := ULift.instOrderBot }
Equations
- Bool.instBoundedOrder = { top := true, le_top := Bool.le_true, bot := false, bot_le := Bool.false_le }