The areas / V04. Order and lattices
Mathlib.Order.WithBotTop
17 declarations. Mathlib docs · Source
abbrev WithBotTop E1 #
Type u_1 → Type u_1
The type obtained by adding both ⊥ and ⊤ to a type.
abbrev WithTopBot E1 #
Type u_1 → Type u_1
The type obtained by adding both ⊤ and ⊥ to a type.
def WithBotTop.coe E1 #
{ι : Type u_1} → ι → WithBotTop ι
The canonical inclusion ι → WithBotTop ι. Registered as a coercion.
instance WithBotTop.instCoe E0 #
{ι : Type u_1} → Coe ι (WithBotTop ι)
theorem WithBotTop.coe_injective E0 #
∀ {ι : Type u_1}, Function.Injective WithBotTop.coe
theorem WithBotTop.coe_ne_bot E0 #
∀ {ι : Type u_1} (a : ι), WithBotTop.coe a ≠ ⊥
theorem WithBotTop.coe_ne_top E0 #
∀ {ι : Type u_1} (a : ι), WithBotTop.coe a ≠ ⊤
theorem WithBotTop.top_ne_bot E0 #
∀ {ι : Type u_1}, ⊤ ≠ ⊥
def WithBotTop.rec E1 #
{ι : Type u_1} →
{motive : WithBotTop ι → Sort u_2} →
motive ⊥ → ((a : ι) → motive (WithBotTop.coe a)) → motive ⊤ → (a : WithBotTop ι) → motive a
A recursor for WithBotTop in terms of the coercion.
theorem WithBotTop.rec_bot E0 #
∀ {ι : Type u_1} {motive : WithBotTop ι → Sort u_2} (bot : motive ⊥) (coe : (a : ι) → motive (WithBotTop.coe a))
(top : motive ⊤), WithBotTop.rec bot coe top ⊥ = bot
theorem WithBotTop.rec_coe E0 #
∀ {ι : Type u_1} {motive : WithBotTop ι → Sort u_2} (bot : motive ⊥) (coe : (a : ι) → motive (WithBotTop.coe a))
(top : motive ⊤) (a : ι), WithBotTop.rec bot coe top (WithBotTop.coe a) = coe a
theorem WithBotTop.rec_top E0 #
∀ {ι : Type u_1} {motive : WithBotTop ι → Sort u_2} (bot : motive ⊥) (coe : (a : ι) → motive (WithBotTop.coe a))
(top : motive ⊤), WithBotTop.rec bot coe top ⊤ = top
theorem WithBotTop.coe_le_coe E0 #
∀ {ι : Type u_1} [inst : LE ι] {a b : ι}, WithBotTop.coe a ≤ WithBotTop.coe b ↔ a ≤ b
theorem WithBotTop.coe_lt_coe E0 #
∀ {ι : Type u_1} [inst : LT ι] {a b : ι}, WithBotTop.coe a < WithBotTop.coe b ↔ a < b
theorem WithBotTop.coe_strictMono E0 #
∀ {ι : Type u_1} [inst : Preorder ι], StrictMono WithBotTop.coe
theorem WithBotTop.coe_monotone E0 #
∀ {ι : Type u_1} [inst : Preorder ι], Monotone WithBotTop.coe
abbrev EInt E1 #
Type
The type of extended integers [-∞, ∞], constructed as WithBot (WithTop ℤ).