The areas / V04. Order and lattices
Mathlib.Order.Max
112 declarations. Mathlib docs · Source
Minimal/maximal and bottom/top elements
This file defines predicates for elements to be minimal/maximal or bottom/top and typeclasses saying that there are no such elements.
Predicates
IsBot: An element is bottom if all elements are greater than it.IsTop: An element is top if all elements are less than it.IsMin: An element is minimal if no element is strictly less than it.IsMax: An element is maximal if no element is strictly greater than it.
See also isBot_iff_isMin and isTop_iff_isMax for the equivalences in a (co)directed order.
Typeclasses
NoBotOrder: An order without bottom elements.NoTopOrder: An order without top elements.NoMinOrder: An order without minimal elements.NoMaxOrder: An order without maximal elements.
class NoBotOrder E1 #
(α : Type u_3) → [LE α] → Prop
Order without bottom elements.
theorem noBotOrder_iff' E1 #
∀ (α : Type u_3) [inst : LE α], NoBotOrder α ↔ ∀ (a : α), ∃ b, ¬a ≤ b
ctor NoBotOrder.mk E0 #
∀ {α : Type u_3} [inst : LE α], (∀ (a : α), ∃ b, ¬a ≤ b) → NoBotOrder α
theorem NoBotOrder.exists_not_ge E1 #
∀ {α : Type u_3} {inst : LE α} [self : NoBotOrder α] (a : α), ∃ b, ¬a ≤ b
For each term a, there is some b which is either incomparable or strictly smaller.
class NoTopOrder E1 #
(α : Type u_3) → [LE α] → Prop
Order without top elements.
theorem noTopOrder_iff' E1 #
∀ (α : Type u_3) [inst : LE α], NoTopOrder α ↔ ∀ (a : α), ∃ b, ¬b ≤ a
ctor NoTopOrder.mk E0 #
∀ {α : Type u_3} [inst : LE α], (∀ (a : α), ∃ b, ¬b ≤ a) → NoTopOrder α
theorem NoTopOrder.exists_not_le E1 #
∀ {α : Type u_3} {inst : LE α} [self : NoTopOrder α] (a : α), ∃ b, ¬b ≤ a
For each term a, there is some b which is either incomparable or strictly larger.
class NoMinOrder E1 #
(α : Type u_3) → [LT α] → Prop
Order without minimal elements. Sometimes called coinitial or dense.
theorem noMinOrder_iff' E1 #
∀ (α : Type u_3) [inst : LT α], NoMinOrder α ↔ ∀ (a : α), ∃ b, b < a
ctor NoMinOrder.mk E0 #
∀ {α : Type u_3} [inst : LT α], (∀ (a : α), ∃ b, b < a) → NoMinOrder α
theorem NoMinOrder.exists_lt E1 #
∀ {α : Type u_3} {inst : LT α} [self : NoMinOrder α] (a : α), ∃ b, b < a
For each term a, there is some strictly smaller b.
class NoMaxOrder E1 #
(α : Type u_3) → [LT α] → Prop
Order without maximal elements. Sometimes called cofinal.
theorem noMaxOrder_iff' E1 #
∀ (α : Type u_3) [inst : LT α], NoMaxOrder α ↔ ∀ (a : α), ∃ b, a < b
ctor NoMaxOrder.mk E0 #
∀ {α : Type u_3} [inst : LT α], (∀ (a : α), ∃ b, a < b) → NoMaxOrder α
theorem NoMaxOrder.exists_gt E1 #
∀ {α : Type u_3} {inst : LT α} [self : NoMaxOrder α] (a : α), ∃ b, a < b
For each term a, there is some strictly greater b.
instance nonempty_gt E0 #
∀ {α : Type u_1} [inst : LT α] [NoMaxOrder α] (a : α), Nonempty { x // a < x }
instance nonempty_lt E0 #
∀ {α : Type u_1} [inst : LT α] [NoMinOrder α] (a : α), Nonempty { x // x < a }
instance IsEmpty.toNoMaxOrder E0 #
∀ {α : Type u_1} [inst : LT α] [IsEmpty α], NoMaxOrder α
instance IsEmpty.toNoMinOrder E0 #
∀ {α : Type u_1} [inst : LT α] [IsEmpty α], NoMinOrder α
instance OrderDual.noBotOrder E0 #
∀ {α : Type u_1} [inst : LE α] [NoTopOrder α], NoBotOrder αᵒᵈ
instance OrderDual.noTopOrder E0 #
∀ {α : Type u_1} [inst : LE α] [NoBotOrder α], NoTopOrder αᵒᵈ
instance OrderDual.noMinOrder E0 #
∀ {α : Type u_1} [inst : LT α] [NoMaxOrder α], NoMinOrder αᵒᵈ
instance OrderDual.noMaxOrder E0 #
∀ {α : Type u_1} [inst : LT α] [NoMinOrder α], NoMaxOrder αᵒᵈ
instance instNoBotOrderOfNoMinOrder E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoMinOrder α], NoBotOrder α
instance instNoTopOrderOfNoMaxOrder E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoMaxOrder α], NoTopOrder α
instance noMinOrder_of_left E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [NoMinOrder α], NoMinOrder (α × β)
instance noMaxOrder_of_left E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [NoMaxOrder α], NoMaxOrder (α × β)
instance noMaxOrder_of_right E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [NoMaxOrder β], NoMaxOrder (α × β)
instance noMinOrder_of_right E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] [NoMinOrder β], NoMinOrder (α × β)
instance instNoMaxOrderForallOfNonempty E0 #
∀ {ι : Type u} {π : ι → Type u_3} [Nonempty ι] [inst : (i : ι) → Preorder (π i)] [∀ (i : ι), NoMaxOrder (π i)],
NoMaxOrder ((i : ι) → π i)
instance instNoMinOrderForallOfNonempty E0 #
∀ {ι : Type u} {π : ι → Type u_3} [Nonempty ι] [inst : (i : ι) → Preorder (π i)] [∀ (i : ι), NoMinOrder (π i)],
NoMinOrder ((i : ι) → π i)
theorem NoBotOrder.to_noMinOrder E1 #
∀ (α : Type u_3) [inst : LinearOrder α] [NoBotOrder α], NoMinOrder α
theorem NoTopOrder.to_noMaxOrder E1 #
∀ (α : Type u_3) [inst : LinearOrder α] [NoTopOrder α], NoMaxOrder α
theorem noTopOrder_iff_noMaxOrder E1 #
∀ (α : Type u_3) [inst : LinearOrder α], NoTopOrder α ↔ NoMaxOrder α
theorem noBotOrder_iff_noMinOrder E1 #
∀ (α : Type u_3) [inst : LinearOrder α], NoBotOrder α ↔ NoMinOrder α
theorem NoMaxOrder.not_acc E1 #
∀ {α : Type u_1} [inst : LT α] [NoMaxOrder α] (a : α), ¬Acc (fun x1 x2 ↦ x2 < x1) a
theorem NoMinOrder.not_acc E1 #
∀ {α : Type u_1} [inst : LT α] [NoMinOrder α] (a : α), ¬Acc (fun x1 x2 ↦ x1 < x2) a
def IsBot E1 #
{α : Type u_1} → [LE α] → α → Prop
a : α is a bottom element of α if it is less than or equal to any other element of α.
This predicate is roughly an unbundled version of OrderBot, except that a preorder may have
several bottom elements. When α is linear, this is useful to make a case disjunction on
NoMinOrder α within a proof.
def IsTop E1 #
{α : Type u_1} → [LE α] → α → Prop
a : α is a top element of α if it is greater than or equal to any other element of α.
This predicate is roughly an unbundled version of OrderBot, except that a preorder may have
several top elements. When α is linear, this is useful to make a case disjunction on
NoMaxOrder α within a proof.
def IsMin E1 #
{α : Type u_1} → [LE α] → α → Prop
a is a minimal element of α if no element is strictly less than it. We spell it without <
to avoid having to convert between ≤ and <. Instead, isMin_iff_forall_not_lt does the
conversion.
def IsMax E1 #
{α : Type u_1} → [LE α] → α → Prop
a is a maximal element of α if no element is strictly greater than it. We spell it without
< to avoid having to convert between ≤ and <. Instead, isMax_iff_forall_not_lt does the
conversion.
theorem noBotOrder_iff E0 #
∀ {α : Type u_1} [inst : LE α], NoBotOrder α ↔ ∀ (x : α), ¬IsBot x
theorem noTopOrder_iff E0 #
∀ {α : Type u_1} [inst : LE α], NoTopOrder α ↔ ∀ (x : α), ¬IsTop x
theorem not_isBot E0 #
∀ {α : Type u_1} [inst : LE α] [NoBotOrder α] (a : α), ¬IsBot a
theorem not_isTop E0 #
∀ {α : Type u_1} [inst : LE α] [NoTopOrder α] (a : α), ¬IsTop a
theorem IsBot.isMin E1 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsBot a → IsMin a
theorem IsTop.isMax E1 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsTop a → IsMax a
theorem IsTop.isMax_iff E0 #
∀ {α : Type u_3} [inst : PartialOrder α] {i j : α}, IsTop i → (IsMax j ↔ j = i)
theorem IsBot.isMin_iff E0 #
∀ {α : Type u_3} [inst : PartialOrder α] {i j : α}, IsBot i → (IsMin j ↔ j = i)
theorem isTop_toDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsTop (OrderDual.toDual a) ↔ IsBot a
theorem isBot_toDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsBot (OrderDual.toDual a) ↔ IsTop a
theorem isMin_toDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsMin (OrderDual.toDual a) ↔ IsMax a
theorem isMax_toDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsMax (OrderDual.toDual a) ↔ IsMin a
theorem isBot_ofDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsBot (OrderDual.ofDual a) ↔ IsTop a
theorem isTop_ofDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsTop (OrderDual.ofDual a) ↔ IsBot a
theorem isMax_ofDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsMax (OrderDual.ofDual a) ↔ IsMin a
theorem isMin_ofDual_iff E0 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsMin (OrderDual.ofDual a) ↔ IsMax a
theorem IsBot.toDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsBot a → IsTop (OrderDual.toDual a)
Alias of the reverse direction of isTop_toDual_iff.
theorem IsTop.toDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsTop a → IsBot (OrderDual.toDual a)
Alias of the reverse direction of isBot_toDual_iff.
theorem IsMax.toDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsMax a → IsMin (OrderDual.toDual a)
Alias of the reverse direction of isMin_toDual_iff.
theorem IsMin.toDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : α}, IsMin a → IsMax (OrderDual.toDual a)
Alias of the reverse direction of isMax_toDual_iff.
theorem IsBot.ofDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsBot a → IsTop (OrderDual.ofDual a)
Alias of the reverse direction of isTop_ofDual_iff.
theorem IsTop.ofDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsTop a → IsBot (OrderDual.ofDual a)
Alias of the reverse direction of isBot_ofDual_iff.
theorem IsMin.ofDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsMin a → IsMax (OrderDual.ofDual a)
Alias of the reverse direction of isMax_ofDual_iff.
theorem IsMax.ofDual E1 #
∀ {α : Type u_1} [inst : LE α] {a : αᵒᵈ}, IsMax a → IsMin (OrderDual.ofDual a)
Alias of the reverse direction of isMin_ofDual_iff.
theorem noMinOrder_iff E0 #
∀ {α : Type u_1} [inst : Preorder α], NoMinOrder α ↔ ∀ (x : α), ¬IsMin x
theorem noMaxOrder_iff E0 #
∀ {α : Type u_1} [inst : Preorder α], NoMaxOrder α ↔ ∀ (x : α), ¬IsMax x
theorem IsBot.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, IsBot a → b ≤ a → IsBot b
theorem IsTop.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, IsTop a → a ≤ b → IsTop b
theorem IsMin.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, IsMin a → b ≤ a → IsMin b
theorem IsMax.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, IsMax a → a ≤ b → IsMax b
theorem IsMin.not_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, IsMin a → ¬b < a
theorem IsMax.not_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, IsMax a → ¬a < b
theorem not_isMax_of_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → ¬IsMax a
theorem not_isMin_of_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → ¬IsMin a
theorem LT.lt.not_isMin E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → ¬IsMin a
Alias of not_isMin_of_lt.
theorem LT.lt.not_isMax E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → ¬IsMax a
Alias of not_isMax_of_lt.
theorem isMax_iff_forall_not_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsMax a ↔ ∀ (b : α), ¬a < b
theorem isMin_iff_forall_not_lt E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsMin a ↔ ∀ (b : α), ¬b < a
theorem not_isMin_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, ¬IsMin a ↔ ∃ b, b < a
theorem not_isMax_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, ¬IsMax a ↔ ∃ b, a < b
theorem not_isMin E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoMinOrder α] (a : α), ¬IsMin a
theorem not_isMax E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoMaxOrder α] (a : α), ¬IsMax a
theorem Subsingleton.isTop E1 #
∀ {α : Type u_1} [inst : Preorder α] [Subsingleton α] (a : α), IsTop a
theorem Subsingleton.isBot E1 #
∀ {α : Type u_1} [inst : Preorder α] [Subsingleton α] (a : α), IsBot a
theorem Subsingleton.isMin E1 #
∀ {α : Type u_1} [inst : Preorder α] [Subsingleton α] (a : α), IsMin a
theorem Subsingleton.isMax E1 #
∀ {α : Type u_1} [inst : Preorder α] [Subsingleton α] (a : α), IsMax a
theorem IsTop.lt_of_ne' E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, IsTop a → a ≠ b → b < a
theorem IsBot.lt_of_ne E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, IsBot a → a ≠ b → a < b
theorem IsTop.lt_of_ne E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, IsTop a → b ≠ a → b < a
theorem IsBot.lt_of_ne' E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, IsBot a → b ≠ a → a < b
theorem IsBot.not_isMax E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a : α} [Nontrivial α], IsBot a → ¬IsMax a
theorem IsTop.not_isMin E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a : α} [Nontrivial α], IsTop a → ¬IsMin a
theorem IsBot.not_isTop E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a : α} [Nontrivial α], IsBot a → ¬IsTop a
theorem IsTop.not_isBot E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {a : α} [Nontrivial α], IsTop a → ¬IsBot a
theorem IsTop.prodMk E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {a : α} {b : β},
IsTop a → IsTop b → IsTop (a, b)
theorem IsBot.prodMk E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {a : α} {b : β},
IsBot a → IsBot b → IsBot (a, b)
theorem IsMax.prodMk E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {a : α} {b : β},
IsMax a → IsMax b → IsMax (a, b)
theorem IsMin.prodMk E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {a : α} {b : β},
IsMin a → IsMin b → IsMin (a, b)
theorem IsTop.fst E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsTop x → IsTop x.1
theorem IsBot.fst E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsBot x → IsBot x.1
theorem IsBot.snd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsBot x → IsBot x.2
theorem IsTop.snd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsTop x → IsTop x.2
theorem IsMax.fst E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsMax x → IsMax x.1
theorem IsMin.fst E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsMin x → IsMin x.1
theorem IsMax.snd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsMax x → IsMax x.2
theorem IsMin.snd E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsMin x → IsMin x.2
theorem Prod.isTop_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsTop x ↔ IsTop x.1 ∧ IsTop x.2
theorem Prod.isBot_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsBot x ↔ IsBot x.1 ∧ IsBot x.2
theorem Prod.isMax_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsMax x ↔ IsMax x.1 ∧ IsMax x.2
theorem Prod.isMin_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {x : α × β}, IsMin x ↔ IsMin x.1 ∧ IsMin x.2