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.Order.SuccPred.WithBot

22 declarations. Mathlib docs · Source

def WithBot.succ E1 #

{α : Type u_1} → [inst : Preorder α] → [OrderBot α] → [SuccOrder α] → WithBot α → α

The successor of a : WithBot α as an element of α.

def WithTop.pred E1 #

{α : Type u_1} → [inst : Preorder α] → [OrderTop α] → [PredOrder α] → WithTop α → α

The predecessor of a : WithTop α as an element of α.

theorem WithBot.succ_bot E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α], ⊥.succ = ⊥

Not to be confused with WithBot.orderSucc_bot, which is about Order.succ.

theorem WithTop.pred_top E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α], ⊤.pred = ⊤

Not to be confused with WithTop.orderPred_top, which is about Order.pred.

theorem WithBot.succ_coe E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α] (a : α), (↑a).succ = Order.succ a

Not to be confused with WithBot.orderSucc_coe, which is about Order.succ.

theorem WithTop.pred_coe E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α] (a : α), (↑a).pred = Order.pred a

Not to be confused with WithTop.orderPred_coe, which is about Order.pred.

theorem WithTop.pred_eq_pred E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α] (a : WithTop α),
  ↑a.pred = Order.pred a

theorem WithBot.succ_eq_succ E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α] (a : WithBot α),
  ↑a.succ = Order.succ a

theorem WithTop.pred_lt E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α] [NoMinOrder α] (x : WithTop α),
  ↑x.pred < x

theorem WithBot.lt_succ E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α] [NoMaxOrder α] (x : WithBot α),
  x < ↑x.succ

theorem WithBot.succ_mono E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α], Monotone WithBot.succ

theorem WithTop.pred_mono E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α], Monotone WithTop.pred

theorem WithTop.pred_strictMono E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α] [NoMinOrder α],
  StrictMono WithTop.pred

theorem WithBot.succ_strictMono E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α] [NoMaxOrder α],
  StrictMono WithBot.succ

theorem WithBot.succ_le_succ E1 #

∀ {α : Type u_1} {x y : WithBot α} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α],
  x ≤ y → x.succ ≤ y.succ

theorem WithTop.pred_le_pred E1 #

∀ {α : Type u_1} {x y : WithTop α} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α],
  y ≤ x → y.pred ≤ x.pred

theorem WithTop.pred_lt_pred E1 #

∀ {α : Type u_1} {x y : WithTop α} [inst : Preorder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α] [NoMinOrder α],
  y < x → y.pred < x.pred

theorem WithBot.succ_lt_succ E1 #

∀ {α : Type u_1} {x y : WithBot α} [inst : Preorder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α] [NoMaxOrder α],
  x < y → x.succ < y.succ

theorem WithBot.succ_pred_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderBot α] [inst_2 : PredOrder α]
  [inst_3 : (a : α) → Decidable (Order.pred a = a)] [inst_4 : SuccOrder α] (a : α), (Order.pred ↑a).succ = a

theorem WithTop.pred_succ_coe E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α] [inst_2 : SuccOrder α]
  [inst_3 : (a : α) → Decidable (Order.succ a = a)] [inst_4 : PredOrder α] (a : α), (Order.succ ↑a).pred = a

theorem WithBot.succ_eq_bot E0 #

∀ {α : Type u_1} [Nontrivial α] [inst : LinearOrder α] [inst_1 : OrderBot α] [inst_2 : SuccOrder α] (a : WithBot α),
  a.succ = ⊥ ↔ a = ⊥

theorem WithTop.pred_eq_top E0 #

∀ {α : Type u_1} [Nontrivial α] [inst : LinearOrder α] [inst_1 : OrderTop α] [inst_2 : PredOrder α] (a : WithTop α),
  a.pred = ⊤ ↔ a = ⊤