The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V04. Order and lattices

Mathlib.Algebra.Order.Sub.WithTop

9 declarations. Mathlib docs · Source

def WithTop.sub E1 #

{α : Type u_1} → [Sub α] → [Bot α] → WithTop α → WithTop α → WithTop α

If α has a subtraction and a bottom element, we can extend the subtraction to WithTop α, by setting x - ⊤ = ⊥ and ⊤ - x = ⊤.

instance WithTop.instSub E0 #

{α : Type u_1} → [Sub α] → [Bot α] → Sub (WithTop α)

theorem WithTop.coe_sub E0 #

∀ {α : Type u_1} [inst : Sub α] [inst_1 : Bot α] {a b : α}, ↑(a - b) = ↑a - ↑b

theorem WithTop.top_sub_coe E0 #

∀ {α : Type u_1} [inst : Sub α] [inst_1 : Bot α] {a : α}, ⊤ - ↑a = ⊤

theorem WithTop.sub_top E0 #

∀ {α : Type u_1} [inst : Sub α] [inst_1 : Bot α] {a : WithTop α}, a - ⊤ = ↑⊥

theorem WithTop.sub_eq_top_iff E0 #

∀ {α : Type u_1} [inst : Sub α] [inst_1 : Bot α] {a b : WithTop α}, a - b = ⊤ ↔ a = ⊤ ∧ b ≠ ⊤

theorem WithTop.sub_ne_top_iff E0 #

∀ {α : Type u_1} [inst : Sub α] [inst_1 : Bot α] {a b : WithTop α}, a - b ≠ ⊤ ↔ a ≠ ⊤ ∨ b = ⊤

theorem WithTop.map_sub E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Sub α] [inst_1 : Bot α] [inst_2 : Sub β] [inst_3 : Bot β] {f : α → β},
  (∀ (x y : α), f (x - y) = f x - f y) →
    f ⊥ = ⊥ → ∀ (x y : WithTop α), WithTop.map f (x - y) = WithTop.map f x - WithTop.map f y

instance WithTop.instOrderedSub E0 #

∀ {α : Type u_1} [inst : Add α] [inst_1 : LE α] [inst_2 : OrderBot α] [inst_3 : Sub α] [OrderedSub α],
  OrderedSub (WithTop α)