The areas / V04. Order and lattices
Mathlib.Order.Bounds.Basic
319 declarations. Mathlib docs · Source
Upper / lower bounds
In this file we prove various lemmas about upper/lower bounds of a set:
monotonicity, behaviour under ∪, ∩, insert,
and provide formulas for ∅, univ, and intervals.
Monotonicity
Conversions
Union and intersection
Specific sets
Unbounded intervals
Singleton
Bounded intervals
Univ
Empty set
insert
Pair
Lower/upper bounds
(In)equalities with the least upper bound and the greatest lower bound
theorem mem_lowerBounds E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, a ∈ lowerBounds s ↔ ∀ x ∈ s, a ≤ x
theorem mem_upperBounds E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, a ∈ upperBounds s ↔ ∀ x ∈ s, x ≤ a
theorem mem_upperBounds_iff_subset_Iic E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, a ∈ upperBounds s ↔ s ⊆ Set.Iic a
theorem mem_lowerBounds_iff_subset_Ici E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, a ∈ lowerBounds s ↔ s ⊆ Set.Ici a
theorem bddBelow_def E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddBelow s ↔ ∃ x, ∀ y ∈ s, x ≤ y
theorem bddAbove_def E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddAbove s ↔ ∃ x, ∀ y ∈ s, y ≤ x
theorem Set.bounded_ge E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, Set.Bounded (fun a a_1 ↦ a_1 ≤ a) s ↔ BddBelow s
theorem Set.bounded_le E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, Set.Bounded LE.le s ↔ BddAbove s
theorem bot_mem_lowerBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] (s : Set α), ⊥ ∈ lowerBounds s
theorem top_mem_upperBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] (s : Set α), ⊤ ∈ upperBounds s
theorem isGreatest_top_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderTop α], IsGreatest s ⊤ ↔ ⊤ ∈ s
theorem isLeast_bot_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderBot α], IsLeast s ⊥ ↔ ⊥ ∈ s
theorem not_bddAbove_iff' E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, ¬BddAbove s ↔ ∀ (x : α), ∃ y ∈ s, ¬y ≤ x
A set s is not bounded above if and only if for each x there exists y ∈ s such that x
is not greater than or equal to y. This version only assumes Preorder structure and uses
¬(y ≤ x). A version for linear orders is called not_bddAbove_iff.
theorem not_bddBelow_iff' E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, ¬BddBelow s ↔ ∀ (x : α), ∃ y ∈ s, ¬x ≤ y
A set s is not bounded below if and only if for each x there exists y ∈ s such that x
is not less than or equal to y. This version only assumes Preorder structure and uses
¬(x ≤ y). A version for linear orders is called not_bddBelow_iff.
theorem not_bddAbove_iff E0 #
∀ {α : Type u_5} [inst : LinearOrder α] {s : Set α}, ¬BddAbove s ↔ ∀ (x : α), ∃ y ∈ s, x < y
A set s is not bounded above if and only if for each x there exists y ∈ s that is greater
than x. A version for preorders is called not_bddAbove_iff'.
theorem not_bddBelow_iff E0 #
∀ {α : Type u_5} [inst : LinearOrder α] {s : Set α}, ¬BddBelow s ↔ ∀ (x : α), ∃ y ∈ s, y < x
A set s is not bounded below if and only if for each x there exists y ∈ s that is less
than x. A version for preorders is called not_bddBelow_iff'.
theorem bddBelow_preimage_ofDual E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddBelow (⇑OrderDual.ofDual ⁻¹' s) ↔ BddAbove s
theorem bddAbove_preimage_ofDual E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddAbove (⇑OrderDual.ofDual ⁻¹' s) ↔ BddBelow s
theorem bddBelow_preimage_toDual E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set αᵒᵈ}, BddBelow (⇑OrderDual.toDual ⁻¹' s) ↔ BddAbove s
theorem bddAbove_preimage_toDual E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set αᵒᵈ}, BddAbove (⇑OrderDual.toDual ⁻¹' s) ↔ BddBelow s
theorem BddBelow.dual E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddBelow s → BddAbove (⇑OrderDual.ofDual ⁻¹' s)
theorem BddAbove.dual E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddAbove s → BddBelow (⇑OrderDual.ofDual ⁻¹' s)
theorem IsLeast.dual E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α},
IsLeast s a → IsGreatest (⇑OrderDual.ofDual ⁻¹' s) (OrderDual.toDual a)
theorem IsGreatest.dual E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α},
IsGreatest s a → IsLeast (⇑OrderDual.ofDual ⁻¹' s) (OrderDual.toDual a)
theorem IsGLB.dual E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α},
IsGLB s a → IsLUB (⇑OrderDual.ofDual ⁻¹' s) (OrderDual.toDual a)
theorem IsLUB.dual E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α},
IsLUB s a → IsGLB (⇑OrderDual.ofDual ⁻¹' s) (OrderDual.toDual a)
abbrev IsLeast.orderBot E1 #
{α : Type u_1} → [inst : Preorder α] → {s : Set α} → {a : α} → IsLeast s a → OrderBot ↑s
If a is the least element of a set s, then subtype s is an order with bottom element.
abbrev IsGreatest.orderTop E1 #
{α : Type u_1} → [inst : Preorder α] → {s : Set α} → {a : α} → IsGreatest s a → OrderTop ↑s
If a is the greatest element of a set s, then subtype s is an order with top element.
theorem isLUB_congr E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α} {a : α}, upperBounds s = upperBounds t → (IsLUB s a ↔ IsLUB t a)
theorem isGLB_congr E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α} {a : α}, lowerBounds s = lowerBounds t → (IsGLB s a ↔ IsGLB t a)
theorem IsCofinalFor.of_subset E0 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, s ⊆ t → IsCofinalFor s t
theorem IsCoinitialFor.of_subset E0 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, s ⊆ t → IsCoinitialFor s t
theorem LE.le.isCoinitialFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, s ⊆ t → IsCoinitialFor s t
Alias of IsCoinitialFor.of_subset.
theorem LE.le.isCofinalFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, s ⊆ t → IsCofinalFor s t
Alias of IsCofinalFor.of_subset.
theorem IsCofinalFor.rfl E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsCofinalFor s s
theorem IsCoinitialFor.rfl E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsCoinitialFor s s
theorem IsCoinitialFor.trans E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t u : Set α}, IsCoinitialFor s t → IsCoinitialFor t u → IsCoinitialFor s u
theorem IsCofinalFor.trans E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t u : Set α}, IsCofinalFor s t → IsCofinalFor t u → IsCofinalFor s u
theorem IsCofinalFor.mono_left E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t u : Set α}, s ⊆ t → IsCofinalFor t u → IsCofinalFor s u
theorem IsCoinitialFor.mono_left E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t u : Set α}, s ⊆ t → IsCoinitialFor t u → IsCoinitialFor s u
theorem IsCofinalFor.mono_right E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t u : Set α}, t ⊆ u → IsCofinalFor s t → IsCofinalFor s u
theorem IsCoinitialFor.mono_right E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t u : Set α}, t ⊆ u → IsCoinitialFor s t → IsCoinitialFor s u
theorem DirectedOn.isCofinalFor_fst_image_prod_snd_image E1 #
∀ {α : Type u_1} [inst : Preorder α] {β : Type u_5} [inst_1 : Preorder β] {s : Set (α × β)},
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s → IsCofinalFor ((Prod.fst '' s) ×ˢ (Prod.snd '' s)) s
theorem IsCofinalFor.nonempty E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, IsCofinalFor s t → s.Nonempty → t.Nonempty
theorem IsCoinitialFor.nonempty E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, IsCoinitialFor s t → s.Nonempty → t.Nonempty
theorem IsCofinalFor.union_left E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, IsCofinalFor s t → IsCofinalFor (s ∪ t) t
theorem IsCofinalFor.union_right E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, IsCofinalFor s t → IsCofinalFor (t ∪ s) t
theorem DirectedOn.of_isCofinalFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α},
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) t → s ⊆ t → IsCofinalFor t s → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s
theorem isCofinalFor_or_isCofinalFor_of_directedOn_union E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α},
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (s ∪ t) → IsCofinalFor t s ∨ IsCofinalFor s t
theorem directedOn_union_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α},
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (s ∪ t) ↔
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s ∧ IsCofinalFor t s ∨ DirectedOn (fun x1 x2 ↦ x1 ≤ x2) t ∧ IsCofinalFor s t
theorem directedOn_or_directedOn_of_union E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α},
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (s ∪ t) → DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s ∨ DirectedOn (fun x1 x2 ↦ x1 ≤ x2) t
theorem directedOn_or_directedOn_of_union' E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α},
(s ∪ t).Nonempty →
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) (s ∪ t) →
DirectedOn (fun x1 x2 ↦ x1 ≤ x2) s ∧ s.Nonempty ∨ DirectedOn (fun x1 x2 ↦ x1 ≤ x2) t ∧ t.Nonempty
theorem upperBounds_mono_set E1 #
∀ {α : Type u_1} [inst : Preorder α] ⦃s t : Set α⦄, s ⊆ t → upperBounds t ⊆ upperBounds s
theorem lowerBounds_mono_set E1 #
∀ {α : Type u_1} [inst : Preorder α] ⦃s t : Set α⦄, s ⊆ t → lowerBounds t ⊆ lowerBounds s
theorem lowerBounds_mono_of_isCoinitialFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, IsCoinitialFor s t → lowerBounds t ⊆ lowerBounds s
theorem upperBounds_mono_of_isCofinalFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, IsCofinalFor s t → upperBounds t ⊆ upperBounds s
theorem upperBounds_mono_mem E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} ⦃a b : α⦄, a ≤ b → a ∈ upperBounds s → b ∈ upperBounds s
theorem lowerBounds_mono_mem E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} ⦃a b : α⦄, b ≤ a → a ∈ lowerBounds s → b ∈ lowerBounds s
theorem lowerBounds_mono E1 #
∀ {α : Type u_1} [inst : Preorder α] ⦃s t : Set α⦄, s ⊆ t → ∀ ⦃a b : α⦄, b ≤ a → a ∈ lowerBounds t → b ∈ lowerBounds s
theorem upperBounds_mono E1 #
∀ {α : Type u_1} [inst : Preorder α] ⦃s t : Set α⦄, s ⊆ t → ∀ ⦃a b : α⦄, a ≤ b → a ∈ upperBounds t → b ∈ upperBounds s
theorem BddAbove.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] ⦃s t : Set α⦄, s ⊆ t → BddAbove t → BddAbove s
If s ⊆ t and t is bounded above, then so is s.
theorem BddBelow.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] ⦃s t : Set α⦄, s ⊆ t → BddBelow t → BddBelow s
If s ⊆ t and t is bounded below, then so is s.
theorem BddAbove.range_comp_right E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] (f : γ → β) {g : β → α},
BddAbove (Set.range g) → BddAbove (Set.range (g ∘ f))
If the range of a function g is bounded above, then g ∘ f is bounded above for all functions
f.
theorem BddBelow.range_comp_right E1 #
∀ {α : Type u_1} {β : Type u_2} {γ : Type u_3} [inst : Preorder α] (f : γ → β) {g : β → α},
BddBelow (Set.range g) → BddBelow (Set.range (g ∘ f))
If the range of a function g is bounded below, then g ∘ f is bounded below for all
functions f.
theorem IsLUB.of_subset_of_superset E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} {s t p : Set α}, IsLUB s a → IsLUB p a → s ⊆ t → t ⊆ p → IsLUB t a
If a is a least upper bound for sets s and p, then it is a least upper bound for any
set t, s ⊆ t ⊆ p.
theorem IsGLB.of_subset_of_superset E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} {s t p : Set α}, IsGLB s a → IsGLB p a → s ⊆ t → t ⊆ p → IsGLB t a
If a is a greatest lower bound for sets s and p, then it is a greater lower
bound for any set t, s ⊆ t ⊆ p.
theorem IsLUB.of_isCofinalFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} {s t : Set α}, IsLUB s a → t ⊆ s → IsCofinalFor s t → IsLUB t a
The least upper bound of a set is also the least upper bound of any cofinal subset.
theorem IsGLB.of_isCoinitialFor E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} {s t : Set α}, IsGLB s a → t ⊆ s → IsCoinitialFor s t → IsGLB t a
The greatest lower bound of a set is also the greatest lower bound of any coinitial subset.
theorem IsLeast.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α} {a b : α}, IsLeast s a → IsLeast t b → s ⊆ t → b ≤ a
theorem IsGreatest.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α} {a b : α}, IsGreatest s a → IsGreatest t b → s ⊆ t → a ≤ b
theorem IsGLB.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α} {a b : α}, IsGLB s a → IsGLB t b → s ⊆ t → b ≤ a
theorem IsLUB.mono E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α} {a b : α}, IsLUB s a → IsLUB t b → s ⊆ t → a ≤ b
theorem subset_upperBounds_lowerBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] (s : Set α), s ⊆ upperBounds (lowerBounds s)
theorem subset_lowerBounds_upperBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] (s : Set α), s ⊆ lowerBounds (upperBounds s)
theorem Set.Nonempty.bddBelow_upperBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, s.Nonempty → BddBelow (upperBounds s)
theorem Set.Nonempty.bddAbove_lowerBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, s.Nonempty → BddAbove (lowerBounds s)
theorem IsLeast.isGLB E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLeast s a → IsGLB s a
theorem IsGreatest.isLUB E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGreatest s a → IsLUB s a
theorem IsGLB.isLeast E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGLB s a → a ∈ s → IsLeast s a
theorem IsLUB.isGreatest E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLUB s a → a ∈ s → IsGreatest s a
theorem isLeast_iff_isGLB_and_mem E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLeast s a ↔ IsGLB s a ∧ a ∈ s
theorem isGreatest_iff_isLUB_and_mem E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGreatest s a ↔ IsLUB s a ∧ a ∈ s
theorem IsLUB.upperBounds_eq E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLUB s a → upperBounds s = Set.Ici a
theorem IsGLB.lowerBounds_eq E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGLB s a → lowerBounds s = Set.Iic a
theorem IsGreatest.upperBounds_eq E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGreatest s a → upperBounds s = Set.Ici a
theorem IsLeast.lowerBounds_eq E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLeast s a → lowerBounds s = Set.Iic a
theorem IsGreatest.lt_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsGreatest s a → (a < b ↔ ∀ x ∈ s, x < b)
theorem IsLeast.lt_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsLeast s a → (b < a ↔ ∀ x ∈ s, b < x)
theorem IsGreatest.le_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsGreatest s a → (b ≤ a ↔ ∃ x ∈ s, b ≤ x)
theorem IsLeast.le_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsLeast s a → (a ≤ b ↔ ∃ x ∈ s, x ≤ b)
theorem isLUB_le_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsLUB s a → (a ≤ b ↔ b ∈ upperBounds s)
theorem le_isGLB_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsGLB s a → (b ≤ a ↔ b ∈ lowerBounds s)
theorem isLUB_iff_le_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLUB s a ↔ ∀ (b : α), a ≤ b ↔ b ∈ upperBounds s
theorem isGLB_iff_le_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGLB s a ↔ ∀ (b : α), b ≤ a ↔ b ∈ lowerBounds s
theorem IsLUB.bddAbove E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLUB s a → BddAbove s
If s has a least upper bound, then it is bounded above.
theorem IsGLB.bddBelow E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGLB s a → BddBelow s
If s has a greatest lower bound, then it is bounded below.
theorem IsGreatest.bddAbove E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGreatest s a → BddAbove s
If s has a greatest element, then it is bounded above.
theorem IsLeast.bddBelow E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLeast s a → BddBelow s
If s has a least element, then it is bounded below.
theorem IsLeast.nonempty E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLeast s a → s.Nonempty
theorem IsGreatest.nonempty E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGreatest s a → s.Nonempty
theorem lowerBounds_union E0 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, lowerBounds (s ∪ t) = lowerBounds s ∩ lowerBounds t
theorem upperBounds_union E0 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, upperBounds (s ∪ t) = upperBounds s ∩ upperBounds t
theorem union_upperBounds_subset_upperBounds_inter E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, upperBounds s ∪ upperBounds t ⊆ upperBounds (s ∩ t)
theorem union_lowerBounds_subset_lowerBounds_inter E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, lowerBounds s ∪ lowerBounds t ⊆ lowerBounds (s ∩ t)
theorem isGreatest_union_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} {s t : Set α},
IsGreatest (s ∪ t) a ↔ IsGreatest s a ∧ a ∈ upperBounds t ∨ a ∈ upperBounds s ∧ IsGreatest t a
theorem isLeast_union_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α} {s t : Set α},
IsLeast (s ∪ t) a ↔ IsLeast s a ∧ a ∈ lowerBounds t ∨ a ∈ lowerBounds s ∧ IsLeast t a
theorem BddAbove.inter_of_left E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, BddAbove s → BddAbove (s ∩ t)
If s is bounded, then so is s ∩ t
theorem BddBelow.inter_of_left E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, BddBelow s → BddBelow (s ∩ t)
If s is bounded, then so is s ∩ t
theorem BddAbove.inter_of_right E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, BddAbove t → BddAbove (s ∩ t)
If t is bounded, then so is s ∩ t
theorem BddBelow.inter_of_right E1 #
∀ {α : Type u_1} [inst : Preorder α] {s t : Set α}, BddBelow t → BddBelow (s ∩ t)
If t is bounded, then so is s ∩ t
theorem BddAbove.union E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsDirectedOrder α] {s t : Set α}, BddAbove s → BddAbove t → BddAbove (s ∪ t)
In a directed order, the union of bounded above sets is bounded above.
theorem BddBelow.union E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsCodirectedOrder α] {s t : Set α}, BddBelow s → BddBelow t → BddBelow (s ∪ t)
In a codirected order, the union of bounded below sets is bounded below.
theorem bddAbove_union E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsDirectedOrder α] {s t : Set α}, BddAbove (s ∪ t) ↔ BddAbove s ∧ BddAbove t
In a directed order, the union of two sets is bounded above if and only if both sets are.
theorem bddBelow_union E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsCodirectedOrder α] {s t : Set α}, BddBelow (s ∪ t) ↔ BddBelow s ∧ BddBelow t
In a codirected order, the union of two sets is bounded below if and only if both sets are.
theorem bbdBelow_range_inf E1 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeInf α] {f g : ι → α},
BddBelow (Set.range f) → BddBelow (Set.range g) → BddBelow (Set.range fun x ↦ f x ⊓ g x)
theorem bbdAbove_range_sup E1 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeSup α] {f g : ι → α},
BddAbove (Set.range f) → BddAbove (Set.range g) → BddAbove (Set.range fun x ↦ f x ⊔ g x)
theorem bbdBelow_range_left_of_inf E1 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeInf α] {f g : ι → α},
BddBelow (Set.range fun x ↦ f x ⊓ g x) → BddBelow (Set.range f)
theorem bbdAbove_range_left_of_sup E1 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeSup α] {f g : ι → α},
BddAbove (Set.range fun x ↦ f x ⊔ g x) → BddAbove (Set.range f)
theorem bbdBelow_range_right_of_inf E1 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeInf α] {f g : ι → α},
BddBelow (Set.range fun x ↦ f x ⊓ g x) → BddBelow (Set.range g)
theorem bbdAbove_range_right_of_sup E1 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeSup α] {f g : ι → α},
BddAbove (Set.range fun x ↦ f x ⊔ g x) → BddAbove (Set.range g)
theorem bbdAbove_range_sup_iff E0 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeSup α] {f g : ι → α},
BddAbove (Set.range fun x ↦ f x ⊔ g x) ↔ BddAbove (Set.range f) ∧ BddAbove (Set.range g)
theorem bbdBelow_range_inf_iff E0 #
∀ {ι : Sort u_5} {α : Type u_6} [inst : SemilatticeInf α] {f g : ι → α},
BddBelow (Set.range fun x ↦ f x ⊓ g x) ↔ BddBelow (Set.range f) ∧ BddBelow (Set.range g)
theorem IsLUB.union E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] {a b : γ} {s t : Set γ}, IsLUB s a → IsLUB t b → IsLUB (s ∪ t) (a ⊔ b)
If a is the least upper bound of s and b is the least upper bound of t,
then a ⊔ b is the least upper bound of s ∪ t.
theorem IsGLB.union E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] {a b : γ} {s t : Set γ}, IsGLB s a → IsGLB t b → IsGLB (s ∪ t) (a ⊓ b)
If a is the greatest lower bound of s and b is the greatest lower bound of t,
then a ⊓ b is the greatest lower bound of s ∪ t.
theorem IsLeast.union E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] {a b : γ} {s t : Set γ}, IsLeast s a → IsLeast t b → IsLeast (s ∪ t) (min a b)
If a is the least element of s and b is the least element of t,
then min a b is the least element of s ∪ t.
theorem IsGreatest.union E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] {a b : γ} {s t : Set γ},
IsGreatest s a → IsGreatest t b → IsGreatest (s ∪ t) (max a b)
If a is the greatest element of s and b is the greatest element of t,
then max a b is the greatest element of s ∪ t.
theorem IsGLB.inter_Iic_of_mem E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] {s : Set γ} {a b : γ}, IsGLB s a → b ∈ s → IsGLB (s ∩ Set.Iic b) a
theorem IsLUB.inter_Ici_of_mem E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] {s : Set γ} {a b : γ}, IsLUB s a → b ∈ s → IsLUB (s ∩ Set.Ici b) a
theorem bddAbove_iff_exists_ge E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] {s : Set γ} (x₀ : γ), BddAbove s ↔ ∃ x, x₀ ≤ x ∧ ∀ y ∈ s, y ≤ x
theorem bddBelow_iff_exists_le E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] {s : Set γ} (x₀ : γ), BddBelow s ↔ ∃ x ≤ x₀, ∀ y ∈ s, x ≤ y
theorem BddBelow.exists_le E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] {s : Set γ}, BddBelow s → ∀ (x₀ : γ), ∃ x ≤ x₀, ∀ y ∈ s, x ≤ y
theorem BddAbove.exists_ge E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] {s : Set γ}, BddAbove s → ∀ (x₀ : γ), ∃ x, x₀ ≤ x ∧ ∀ y ∈ s, y ≤ x
theorem isLeast_Ici E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLeast (Set.Ici a) a
theorem isGreatest_Iic E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGreatest (Set.Iic a) a
theorem isGLB_Ici E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGLB (Set.Ici a) a
theorem isLUB_Iic E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLUB (Set.Iic a) a
theorem upperBounds_Iic E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, upperBounds (Set.Iic a) = Set.Ici a
theorem lowerBounds_Ici E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, lowerBounds (Set.Ici a) = Set.Iic a
theorem bddBelow_Ici E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, BddBelow (Set.Ici a)
theorem bddAbove_Iic E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, BddAbove (Set.Iic a)
theorem bddBelow_Ioi E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, BddBelow (Set.Ioi a)
theorem bddAbove_Iio E1 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, BddAbove (Set.Iio a)
theorem le_of_isLUB_Iio E1 #
∀ {α : Type u_1} [inst : Preorder α] {b : α} (a : α), IsLUB (Set.Iio a) b → b ≤ a
theorem le_of_isGLB_Ioi E1 #
∀ {α : Type u_1} [inst : Preorder α] {b : α} (a : α), IsGLB (Set.Ioi a) b → a ≤ b
theorem lub_Iio_eq_self_or_Iio_eq_Iic E1 #
∀ {γ : Type u_3} [inst : PartialOrder γ] {j : γ} (i : γ), IsLUB (Set.Iio i) j → j = i ∨ Set.Iio i = Set.Iic j
theorem glb_Ioi_eq_self_or_Ioi_eq_Ici E1 #
∀ {γ : Type u_3} [inst : PartialOrder γ] {j : γ} (i : γ), IsGLB (Set.Ioi i) j → j = i ∨ Set.Ioi i = Set.Ici j
theorem exists_lub_Iio E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] (i : γ), ∃ j, IsLUB (Set.Iio i) j
theorem exists_glb_Ioi E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] (i : γ), ∃ j, IsGLB (Set.Ioi i) j
theorem isGLB_Ioi E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] [DenselyOrdered γ] {a : γ}, IsGLB (Set.Ioi a) a
theorem isLUB_Iio E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] [DenselyOrdered γ] {a : γ}, IsLUB (Set.Iio a) a
theorem upperBounds_Iio E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] [DenselyOrdered γ] {a : γ}, upperBounds (Set.Iio a) = Set.Ici a
theorem lowerBounds_Ioi E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] [DenselyOrdered γ] {a : γ}, lowerBounds (Set.Ioi a) = Set.Iic a
theorem isLeast_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLeast {a} a
theorem isGreatest_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGreatest {a} a
theorem isLUB_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLUB {a} a
theorem isGLB_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGLB {a} a
theorem bddAbove_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, BddAbove {a}
theorem bddBelow_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, BddBelow {a}
theorem lowerBounds_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, lowerBounds {a} = Set.Iic a
theorem upperBounds_singleton E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, upperBounds {a} = Set.Ici a
theorem bddAbove_Icc E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddAbove (Set.Icc a b)
theorem bddBelow_Icc E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddBelow (Set.Icc b a)
theorem bddBelow_Ioc E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddBelow (Set.Ioc b a)
theorem bddAbove_Ico E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddAbove (Set.Ico a b)
theorem bddAbove_Ioc E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddAbove (Set.Ioc b a)
theorem bddBelow_Ico E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddBelow (Set.Ico a b)
theorem bddBelow_Ioo E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddBelow (Set.Ioo b a)
theorem bddAbove_Ioo E0 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, BddAbove (Set.Ioo a b)
theorem isLeast_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → IsLeast (Set.Icc b a) b
theorem isGreatest_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → IsGreatest (Set.Icc a b) b
theorem isGLB_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → IsGLB (Set.Icc b a) b
theorem isLUB_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → IsLUB (Set.Icc a b) b
theorem lowerBounds_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → lowerBounds (Set.Icc b a) = Set.Iic b
theorem upperBounds_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → upperBounds (Set.Icc a b) = Set.Ici b
theorem isGreatest_Ioc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → IsGreatest (Set.Ioc a b) b
theorem isLeast_Ico E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → IsLeast (Set.Ico b a) b
theorem isGLB_Ico E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → IsGLB (Set.Ico b a) b
theorem isLUB_Ioc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → IsLUB (Set.Ioc a b) b
theorem upperBounds_Ioc E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → upperBounds (Set.Ioc a b) = Set.Ici b
theorem lowerBounds_Ico E1 #
∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → lowerBounds (Set.Ico b a) = Set.Iic b
theorem isGLB_Ioo E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] [DenselyOrdered γ] {a b : γ}, a < b → IsGLB (Set.Ioo a b) a
theorem isLUB_Ioo E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] [DenselyOrdered γ] {a b : γ}, b < a → IsLUB (Set.Ioo b a) a
theorem lowerBounds_Ioo E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] [DenselyOrdered γ] {a b : γ}, a < b → lowerBounds (Set.Ioo a b) = Set.Iic a
theorem upperBounds_Ioo E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] [DenselyOrdered γ] {a b : γ}, b < a → upperBounds (Set.Ioo b a) = Set.Ici a
theorem isLUB_Ico E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] [DenselyOrdered γ] {a b : γ}, b < a → IsLUB (Set.Ico b a) a
theorem isGLB_Ioc E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] [DenselyOrdered γ] {a b : γ}, a < b → IsGLB (Set.Ioc a b) a
theorem lowerBounds_Ioc E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] [DenselyOrdered γ] {a b : γ}, a < b → lowerBounds (Set.Ioc a b) = Set.Iic a
theorem upperBounds_Ico E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] [DenselyOrdered γ] {a b : γ}, b < a → upperBounds (Set.Ico b a) = Set.Ici a
theorem bddAbove_iff_subset_Iic E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddAbove s ↔ ∃ a, s ⊆ Set.Iic a
theorem bddBelow_iff_subset_Ici E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddBelow s ↔ ∃ a, s ⊆ Set.Ici a
theorem bddBelow_bddAbove_iff_subset_Icc E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, BddBelow s ∧ BddAbove s ↔ ∃ a b, s ⊆ Set.Icc a b
theorem mem_lowerBounds_univ E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, a ∈ lowerBounds Set.univ ↔ IsBot a
theorem mem_upperBounds_univ E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, a ∈ upperBounds Set.univ ↔ IsTop a
theorem isLeast_univ_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLeast Set.univ a ↔ IsBot a
theorem isGreatest_univ_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGreatest Set.univ a ↔ IsTop a
theorem isGLB_univ_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGLB Set.univ a ↔ IsBot a
theorem isLUB_univ_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLUB Set.univ a ↔ IsTop a
theorem isGreatest_univ E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α], IsGreatest Set.univ ⊤
theorem isLeast_univ E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α], IsLeast Set.univ ⊥
theorem OrderTop.upperBounds_univ E0 #
∀ {γ : Type u_3} [inst : PartialOrder γ] [inst_1 : OrderTop γ], upperBounds Set.univ = {⊤}
theorem OrderBot.lowerBounds_univ E0 #
∀ {γ : Type u_3} [inst : PartialOrder γ] [inst_1 : OrderBot γ], lowerBounds Set.univ = {⊥}
theorem isLUB_univ E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α], IsLUB Set.univ ⊤
theorem isGLB_univ E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α], IsGLB Set.univ ⊥
theorem NoBotOrder.lowerBounds_univ E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoBotOrder α], lowerBounds Set.univ = ∅
theorem NoTopOrder.upperBounds_univ E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoTopOrder α], upperBounds Set.univ = ∅
theorem not_bddAbove_univ E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoTopOrder α], ¬BddAbove Set.univ
theorem not_bddBelow_univ E0 #
∀ {α : Type u_1} [inst : Preorder α] [NoBotOrder α], ¬BddBelow Set.univ
theorem upperBounds_empty E0 #
∀ {α : Type u_1} [inst : Preorder α], upperBounds ∅ = Set.univ
theorem lowerBounds_empty E0 #
∀ {α : Type u_1} [inst : Preorder α], lowerBounds ∅ = Set.univ
theorem bddBelow_empty E0 #
∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], BddBelow ∅
theorem bddAbove_empty E0 #
∀ {α : Type u_1} [inst : Preorder α] [Nonempty α], BddAbove ∅
theorem isGLB_empty_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsGLB ∅ a ↔ IsTop a
theorem isLUB_empty_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsLUB ∅ a ↔ IsBot a
theorem isGLB_empty E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α], IsGLB ∅ ⊤
theorem isLUB_empty E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α], IsLUB ∅ ⊥
theorem IsLUB.nonempty E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α} [NoBotOrder α], IsLUB s a → s.Nonempty
theorem IsGLB.nonempty E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α} [NoTopOrder α], IsGLB s a → s.Nonempty
theorem nonempty_of_not_bddBelow E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [ha : Nonempty α], ¬BddBelow s → s.Nonempty
theorem nonempty_of_not_bddAbove E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [ha : Nonempty α], ¬BddAbove s → s.Nonempty
theorem bddAbove_insert E0 #
∀ {α : Type u_1} [inst : Preorder α] [IsDirectedOrder α] {s : Set α} {a : α}, BddAbove (insert a s) ↔ BddAbove s
Adding a point to a set preserves its boundedness above.
theorem bddBelow_insert E0 #
∀ {α : Type u_1} [inst : Preorder α] [IsCodirectedOrder α] {s : Set α} {a : α}, BddBelow (insert a s) ↔ BddBelow s
Adding a point to a set preserves its boundedness below.
theorem BddBelow.insert E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsCodirectedOrder α] {s : Set α} (a : α), BddBelow s → BddBelow (insert a s)
theorem BddAbove.insert E1 #
∀ {α : Type u_1} [inst : Preorder α] [IsDirectedOrder α] {s : Set α} (a : α), BddAbove s → BddAbove (insert a s)
theorem IsLUB.insert E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] (a : γ) {b : γ} {s : Set γ}, IsLUB s b → IsLUB (insert a s) (a ⊔ b)
theorem IsGLB.insert E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] (a : γ) {b : γ} {s : Set γ}, IsGLB s b → IsGLB (insert a s) (a ⊓ b)
theorem IsLeast.insert E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] (a : γ) {b : γ} {s : Set γ}, IsLeast s b → IsLeast (insert a s) (min a b)
theorem IsGreatest.insert E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] (a : γ) {b : γ} {s : Set γ}, IsGreatest s b → IsGreatest (insert a s) (max a b)
theorem upperBounds_insert E0 #
∀ {α : Type u_1} [inst : Preorder α] (a : α) (s : Set α), upperBounds (insert a s) = Set.Ici a ∩ upperBounds s
theorem lowerBounds_insert E0 #
∀ {α : Type u_1} [inst : Preorder α] (a : α) (s : Set α), lowerBounds (insert a s) = Set.Iic a ∩ lowerBounds s
theorem OrderTop.bddAbove E0 #
∀ {α : Type u_1} [inst : Preorder α] [OrderTop α] (s : Set α), BddAbove s
When there is a global maximum, every set is bounded above.
theorem OrderBot.bddBelow E0 #
∀ {α : Type u_1} [inst : Preorder α] [OrderBot α] (s : Set α), BddBelow s
When there is a global minimum, every set is bounded below.
def tacticBddDefault E1 #
Lean.ParserDescr
Sets are automatically bounded or cobounded in complete lattices. To use the same statements
in complete and conditionally complete lattices but let automation fill automatically the
boundedness proofs in complete lattices, we use the tactic bddDefault in the statements,
in the form (hA : BddAbove A := by bddDefault).
theorem isLUB_pair E1 #
∀ {γ : Type u_3} [inst : SemilatticeSup γ] {a b : γ}, IsLUB {a, b} (a ⊔ b)
theorem isGLB_pair E1 #
∀ {γ : Type u_3} [inst : SemilatticeInf γ] {a b : γ}, IsGLB {a, b} (a ⊓ b)
theorem isLeast_pair E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] {a b : γ}, IsLeast {a, b} (min a b)
theorem isGreatest_pair E1 #
∀ {γ : Type u_3} [inst : LinearOrder γ] {a b : γ}, IsGreatest {a, b} (max a b)
theorem isLUB_lowerBounds E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsLUB (lowerBounds s) a ↔ IsGLB s a
theorem isGLB_upperBounds E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α}, IsGLB (upperBounds s) a ↔ IsLUB s a
theorem IsLUB.isLUB_sSup E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderSupSet α] {s : Set α} {a : α}, IsLUB s a → IsLUB s (sSup s)
theorem IsGLB.isGLB_sInf E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderInfSet α] {s : Set α} {a : α}, IsGLB s a → IsGLB s (sInf s)
theorem exists_isGLB_iff_isGLB_sInf E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderInfSet α] {s : Set α}, (∃ a, IsGLB s a) ↔ IsGLB s (sInf s)
theorem exists_isLUB_iff_isLUB_sSup E1 #
∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderSupSet α] {s : Set α}, (∃ a, IsLUB s a) ↔ IsLUB s (sSup s)
abbrev OrderInfSet.ofOrderSupSet E1 #
{α : Type u_1} → [inst : Preorder α] → [OrderSupSet α] → OrderInfSet α
Constructs an OrderInfSet from an OrderSupSet by defining the infimum of a set as the
supremum of its lower bounds.
abbrev OrderSupSet.ofOrderInfSet E1 #
{α : Type u_1} → [inst : Preorder α] → [OrderInfSet α] → OrderSupSet α
Constructs an OrderSupSet from an OrderInfSet by defining the supremum of a set as the
infimum of its upper bounds.
def OrderSupSet.choose E1 #
{α : Type u_1} → [inst : Preorder α] → α → OrderSupSet α
Noncomputably constructs a "supremum" for an arbitrary set using the axiom of choice
such that it is the actual supremum of the set if one exists, and the default value d
otherwise.
theorem OrderInfSet.choose_sInf E1 #
∀ {α : Type u_1} [inst : Preorder α] (d : α) (s : Set α), sInf s = if h : ∃ x, IsGLB s x then h.choose else d
theorem OrderSupSet.choose_sSup E1 #
∀ {α : Type u_1} [inst : Preorder α] (d : α) (s : Set α), sSup s = if h : ∃ x, IsLUB s x then h.choose else d
def OrderInfSet.choose E1 #
{α : Type u_1} → [inst : Preorder α] → α → OrderInfSet α
Noncomputably constructs an "infimum" for an arbitrary set using the axiom of choice
such that it is the actual infimum of the set if one exists, and the default value d
otherwise.
def OrderSupSet.chooseBot E1 #
{α : Type u_1} → [inst : Preorder α] → α → OrderSupSet α
Noncomputably constructs a "supremum" for an arbitrary set using the axiom of choice
such that it is the actual supremum of the set if one exists, the bottom element if the supremum
doesn't exist but a bottom element does, and the default value d if neither exists.
The junk value satisfies sSup s = sSup ∅ for any set s without a supremum, which is the same
as the convention of ConditionallyCompleteLinearOrder.
def OrderInfSet.chooseTop E1 #
{α : Type u_1} → [inst : Preorder α] → α → OrderInfSet α
Noncomputably constructs an "infimum" for an arbitrary set using the axiom of choice
such that it is the actual infimum of the set if one exists, the top element if the infimum
doesn't exist but a top element does, and the default value d if neither exists.
The junk value satisfies sInf s = sInf ∅ for any set s without an infimum, which is the same
as the convention of ConditionallyCompleteLinearOrder.
theorem OrderSupSet.chooseBot_sSup_of_not_exists E1 #
∀ {α : Type u_1} [inst : Preorder α] {d : α} {s : Set α}, (¬∃ x, IsLUB s x) → sSup s = sSup ∅
theorem OrderInfSet.chooseTop_sInf_of_not_exists E1 #
∀ {α : Type u_1} [inst : Preorder α] {d : α} {s : Set α}, (¬∃ x, IsGLB s x) → sInf s = sInf ∅
theorem OrderInfSet.chooseTop_sInf_empty_of_noTopOrder E1 #
∀ {α : Type u_1} [inst : Preorder α] [NoTopOrder α] {d : α}, sInf ∅ = d
theorem OrderSupSet.chooseBot_sSup_empty_of_noBotOrder E1 #
∀ {α : Type u_1} [inst : Preorder α] [NoBotOrder α] {d : α}, sSup ∅ = d
theorem DirectedOn.le_of_maximal E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α},
DirectedOn (fun x y ↦ x ≤ y) s → Maximal (fun x ↦ x ∈ s) a → b ∈ s → b ≤ a
theorem DirectedOn.le_of_minimal E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α},
DirectedOn (fun x y ↦ y ≤ x) s → Minimal (fun x ↦ x ∈ s) a → b ∈ s → a ≤ b
theorem DirectedOn.maximal_iff_isGreatest E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α},
DirectedOn (fun x y ↦ x ≤ y) s → (Maximal (fun x ↦ x ∈ s) a ↔ IsGreatest s a)
theorem DirectedOn.minimal_iff_isLeast E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a : α},
DirectedOn (fun x y ↦ y ≤ x) s → (Minimal (fun x ↦ x ∈ s) a ↔ IsLeast s a)
theorem minimal_iff_isLeast E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a : α}, Minimal (fun x ↦ x ∈ s) a ↔ IsLeast s a
theorem maximal_iff_isGreatest E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a : α}, Maximal (fun x ↦ x ∈ s) a ↔ IsGreatest s a
theorem lowerBounds_le_upperBounds E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, a ∈ lowerBounds s → b ∈ upperBounds s → s.Nonempty → a ≤ b
theorem lowerBounds_le_upperBounds_of_nonempty_inter E1 #
∀ {α : Type u_1} [inst : Preorder α] {s s' : Set α} {a b : α},
(s ∩ s').Nonempty → a ∈ lowerBounds s → b ∈ upperBounds s' → a ≤ b
theorem isGLB_le_isLUB E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsGLB s a → IsLUB s b → s.Nonempty → a ≤ b
theorem isGLB_le_isLUB_of_nonempty_inter E1 #
∀ {α : Type u_1} [inst : Preorder α] {s s' : Set α} {a b : α}, (s ∩ s').Nonempty → IsGLB s a → IsLUB s' b → a ≤ b
theorem isLUB_lt_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsLUB s a → (a < b ↔ ∃ c ∈ upperBounds s, c < b)
theorem lt_isGLB_iff E0 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α}, IsGLB s a → (b < a ↔ ∃ c ∈ lowerBounds s, b < c)
theorem le_of_isLUB_le_isGLB E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b x y : α}, IsGLB s a → IsLUB s b → b ≤ a → x ∈ s → y ∈ s → x ≤ y
theorem lowerBounds_prod E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α} {t : Set β},
s.Nonempty → t.Nonempty → lowerBounds (s ×ˢ t) = lowerBounds s ×ˢ lowerBounds t
theorem upperBounds_prod E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α} {t : Set β},
s.Nonempty → t.Nonempty → upperBounds (s ×ˢ t) = upperBounds s ×ˢ upperBounds t
theorem IsLUB.prod E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α} {t : Set β} {a : α} {b : β},
s.Nonempty → t.Nonempty → IsLUB s a → IsLUB t b → IsLUB (s ×ˢ t) (a, b)
theorem IsGLB.prod E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α} {t : Set β} {a : α} {b : β},
s.Nonempty → t.Nonempty → IsGLB s a → IsGLB t b → IsGLB (s ×ˢ t) (a, b)
theorem isLUB_congr_of_antisymmRel E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α},
AntisymmRel (fun x1 x2 ↦ x1 ≤ x2) a b → (IsLUB s a ↔ IsLUB s b)
theorem isGLB_congr_of_antisymmRel E1 #
∀ {α : Type u_1} [inst : Preorder α] {s : Set α} {a b : α},
AntisymmRel (fun x1 x2 ↦ x1 ≤ x2) a b → (IsGLB s a ↔ IsGLB s b)
theorem IsGreatest.unique E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsGreatest s a → IsGreatest s b → a = b
theorem IsLeast.unique E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsLeast s a → IsLeast s b → a = b
theorem IsGreatest.isGreatest_iff_eq E0 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsGreatest s a → (IsGreatest s b ↔ a = b)
theorem IsLeast.isLeast_iff_eq E0 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsLeast s a → (IsLeast s b ↔ a = b)
theorem IsLUB.unique E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsLUB s a → IsLUB s b → a = b
theorem IsGLB.unique E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsGLB s a → IsGLB s b → a = b
theorem IsGLB.sInf_eq E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderInfSet α] {s : Set α} {a : α}, IsGLB s a → sInf s = a
theorem IsLUB.sSup_eq E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderSupSet α] {s : Set α} {a : α}, IsLUB s a → sSup s = a
theorem IsLUB.iSup_eq E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderSupSet α] {f : ι → α} {a : α},
IsLUB (Set.range f) a → iSup f = a
theorem IsGLB.iInf_eq E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderInfSet α] {f : ι → α} {a : α},
IsGLB (Set.range f) a → iInf f = a
theorem sSup_singleton E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderSupSet α] {a : α}, sSup {a} = a
theorem sInf_singleton E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderInfSet α] {a : α}, sInf {a} = a
theorem sSup_empty E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderSupSet α] [inst_2 : OrderBot α], sSup ∅ = ⊥
theorem sInf_empty E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderInfSet α] [inst_2 : OrderTop α], sInf ∅ = ⊤
theorem sInf_univ E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderInfSet α] [inst_2 : OrderBot α], sInf Set.univ = ⊥
theorem sSup_univ E0 #
∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderSupSet α] [inst_2 : OrderTop α], sSup Set.univ = ⊤
theorem sInf_pair E1 #
∀ {α : Type u_5} [inst : SemilatticeInf α] [inst_1 : OrderInfSet α] {a b : α}, sInf {a, b} = a ⊓ b
theorem sSup_pair E1 #
∀ {α : Type u_5} [inst : SemilatticeSup α] [inst_1 : OrderSupSet α] {a b : α}, sSup {a, b} = a ⊔ b
theorem iSup_of_empty' E0 #
∀ {α : Type u_5} {ι : Sort u_6} [inst : SupSet α] [IsEmpty ι] (f : ι → α), iSup f = sSup ∅
This simp lemma goes well with sSup_empty in a complete lattice.
theorem iInf_of_isEmpty E0 #
∀ {α : Type u_5} {ι : Sort u_6} [inst : InfSet α] [IsEmpty ι] (f : ι → α), iInf f = sInf ∅
This simp lemma goes well with sInf_empty in a complete lattice.
theorem iInf_of_empty E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderInfSet α] [inst_2 : OrderTop α] [IsEmpty ι]
(f : ι → α), iInf f = ⊤
theorem iSup_of_empty E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderSupSet α] [inst_2 : OrderBot α] [IsEmpty ι]
(f : ι → α), iSup f = ⊥
theorem iSup_const E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] {a : α} [inst_1 : OrderSupSet α] [Nonempty ι], ⨆ x, a = a
theorem iInf_const E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] {a : α} [inst_1 : OrderInfSet α] [Nonempty ι], ⨅ x, a = a
theorem le_iInf_const E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] {a : α} [inst_1 : OrderInfSet α] [OrderTop α], a ≤ ⨅ x, a
theorem iSup_const_le E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] {a : α} [inst_1 : OrderSupSet α] [OrderBot α], ⨆ x, a ≤ a
theorem iInf_unique E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderInfSet α] [inst_2 : Unique ι] (f : ι → α),
⨅ i, f i = f default
theorem iSup_unique E1 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderSupSet α] [inst_2 : Unique ι] (f : ι → α),
⨆ i, f i = f default
theorem iInf_top E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderInfSet α] [inst_2 : OrderTop α], ⨅ x, ⊤ = ⊤
theorem iSup_bot E0 #
∀ {α : Type u_1} {ι : Sort u_4} [inst : PartialOrder α] [inst_1 : OrderSupSet α] [inst_2 : OrderBot α], ⨆ x, ⊥ = ⊥
theorem Set.subsingleton_of_isLUB_le_isGLB E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α}, IsGLB s a → IsLUB s b → b ≤ a → s.Subsingleton
theorem isGLB_lt_isLUB_of_ne E1 #
∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α} {a b : α},
IsGLB s a → IsLUB s b → ∀ {x y : α}, x ∈ s → y ∈ s → x ≠ y → a < b
theorem lt_isLUB_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a b : α}, IsLUB s a → (b < a ↔ ∃ c ∈ s, b < c)
theorem isGLB_lt_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a b : α}, IsGLB s a → (a < b ↔ ∃ c ∈ s, c < b)
theorem IsLUB.exists_between E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a b : α}, IsLUB s a → b < a → ∃ c ∈ s, b < c ∧ c ≤ a
theorem IsLUB.exists_between' E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a b : α}, IsLUB s a → a ∉ s → b < a → ∃ c ∈ s, b < c ∧ c < a
theorem IsGLB.exists_between E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a b : α}, IsGLB s a → a < b → ∃ c ∈ s, a ≤ c ∧ c < b
theorem IsGLB.exists_between' E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {s : Set α} {a b : α}, IsGLB s a → a ∉ s → a < b → ∃ c ∈ s, a < c ∧ c < b
theorem isGreatest_himp E1 #
∀ {α : Type u_1} [inst : GeneralizedHeytingAlgebra α] (a b : α), IsGreatest {w | w ⊓ a ≤ b} (a ⇨ b)
theorem isLeast_sdiff E1 #
∀ {α : Type u_1} [inst : GeneralizedCoheytingAlgebra α] (a b : α), IsLeast {w | a ≤ b ⊔ w} (a \ b)
theorem isGreatest_compl E1 #
∀ {α : Type u_1} [inst : HeytingAlgebra α] (a : α), IsGreatest {w | Disjoint w a} aᶜ
theorem isLeast_hnot E1 #
∀ {α : Type u_1} [inst : CoheytingAlgebra α] (a : α), IsLeast {w | Codisjoint a w} (¬a)
instance Nat.instDecidableIsLeast E0 #
(p : ℕ → Prop) → (n : ℕ) → [DecidablePred p] → Decidable (IsLeast {n | p n} n)
def SemilatticeSup.ofIsLUB E1 #
{α : Type u_1} → [inst : PartialOrder α] → (sup : α → α → α) → (∀ (a b : α), IsLUB {a, b} (sup a b)) → SemilatticeSup α
An alternative constructor for SemilatticeSup using IsLUB.
def SemilatticeInf.ofIsGLB E1 #
{α : Type u_1} → [inst : PartialOrder α] → (inf : α → α → α) → (∀ (a b : α), IsGLB {a, b} (inf a b)) → SemilatticeInf α
An alternative constructor for SemilatticeInf using IsGLB.
def Lattice.ofIsLUBofIsGLB E1 #
{α : Type u_1} →
[inst : PartialOrder α] →
(sup inf : α → α → α) → (∀ (a b : α), IsLUB {a, b} (sup a b)) → (∀ (a b : α), IsGLB {a, b} (inf a b)) → Lattice α
An alternative constructor for Lattice using IsLUB and IsGLB.