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.UpperLower.Basic

80 declarations and 2 deprecated aliases. Mathlib docs · Source

theorem isUpperSet_empty E1 #

∀ {α : Type u_1} [inst : LE α], IsUpperSet ∅

theorem isLowerSet_empty E1 #

∀ {α : Type u_1} [inst : LE α], IsLowerSet ∅

theorem isLowerSet_univ E1 #

∀ {α : Type u_1} [inst : LE α], IsLowerSet Set.univ

theorem isUpperSet_univ E1 #

∀ {α : Type u_1} [inst : LE α], IsUpperSet Set.univ

theorem IsUpperSet.compl E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsUpperSet s → IsLowerSet sᶜ

theorem IsLowerSet.compl E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsLowerSet s → IsUpperSet sᶜ

theorem isLowerSet_compl E0 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsLowerSet sᶜ ↔ IsUpperSet s

theorem isUpperSet_compl E0 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsUpperSet sᶜ ↔ IsLowerSet s

theorem IsLowerSet.union E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsLowerSet s → IsLowerSet t → IsLowerSet (s ∪ t)

theorem IsUpperSet.union E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsUpperSet s → IsUpperSet t → IsUpperSet (s ∪ t)

theorem IsUpperSet.inter E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsUpperSet s → IsUpperSet t → IsUpperSet (s ∩ t)

theorem IsLowerSet.inter E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsLowerSet s → IsLowerSet t → IsLowerSet (s ∩ t)

theorem isLowerSet_sUnion E1 #

∀ {α : Type u_1} [inst : LE α] {S : Set (Set α)}, (∀ s ∈ S, IsLowerSet s) → IsLowerSet (⋃₀ S)

theorem isUpperSet_sUnion E1 #

∀ {α : Type u_1} [inst : LE α] {S : Set (Set α)}, (∀ s ∈ S, IsUpperSet s) → IsUpperSet (⋃₀ S)

theorem isLowerSet_iUnion E1 #

∀ {α : Type u_1} {ι : Sort u_3} [inst : LE α] {f : ι → Set α}, (∀ (i : ι), IsLowerSet (f i)) → IsLowerSet (⋃ i, f i)

theorem isUpperSet_iUnion E1 #

∀ {α : Type u_1} {ι : Sort u_3} [inst : LE α] {f : ι → Set α}, (∀ (i : ι), IsUpperSet (f i)) → IsUpperSet (⋃ i, f i)

theorem isUpperSet_iUnion₂ E1 #

∀ {α : Type u_1} {ι : Sort u_3} {κ : ι → Sort u_4} [inst : LE α] {f : (i : ι) → κ i → Set α},
  (∀ (i : ι) (j : κ i), IsUpperSet (f i j)) → IsUpperSet (⋃ i, ⋃ j, f i j)

theorem isLowerSet_iUnion₂ E1 #

∀ {α : Type u_1} {ι : Sort u_3} {κ : ι → Sort u_4} [inst : LE α] {f : (i : ι) → κ i → Set α},
  (∀ (i : ι) (j : κ i), IsLowerSet (f i j)) → IsLowerSet (⋃ i, ⋃ j, f i j)

theorem isLowerSet_sInter E1 #

∀ {α : Type u_1} [inst : LE α] {S : Set (Set α)}, (∀ s ∈ S, IsLowerSet s) → IsLowerSet (⋂₀ S)

theorem isUpperSet_sInter E1 #

∀ {α : Type u_1} [inst : LE α] {S : Set (Set α)}, (∀ s ∈ S, IsUpperSet s) → IsUpperSet (⋂₀ S)

theorem isUpperSet_iInter E1 #

∀ {α : Type u_1} {ι : Sort u_3} [inst : LE α] {f : ι → Set α}, (∀ (i : ι), IsUpperSet (f i)) → IsUpperSet (⋂ i, f i)

theorem isLowerSet_iInter E1 #

∀ {α : Type u_1} {ι : Sort u_3} [inst : LE α] {f : ι → Set α}, (∀ (i : ι), IsLowerSet (f i)) → IsLowerSet (⋂ i, f i)

theorem isLowerSet_iInter₂ E1 #

∀ {α : Type u_1} {ι : Sort u_3} {κ : ι → Sort u_4} [inst : LE α] {f : (i : ι) → κ i → Set α},
  (∀ (i : ι) (j : κ i), IsLowerSet (f i j)) → IsLowerSet (⋂ i, ⋂ j, f i j)

theorem isUpperSet_iInter₂ E1 #

∀ {α : Type u_1} {ι : Sort u_3} {κ : ι → Sort u_4} [inst : LE α] {f : (i : ι) → κ i → Set α},
  (∀ (i : ι) (j : κ i), IsUpperSet (f i j)) → IsUpperSet (⋂ i, ⋂ j, f i j)

theorem isLowerSet_preimage_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsLowerSet (⇑OrderDual.ofDual ⁻¹' s) ↔ IsUpperSet s

theorem isUpperSet_preimage_ofDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsUpperSet (⇑OrderDual.ofDual ⁻¹' s) ↔ IsLowerSet s

theorem isUpperSet_preimage_toDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {s : Set αᵒᵈ}, IsUpperSet (⇑OrderDual.toDual ⁻¹' s) ↔ IsLowerSet s

theorem isLowerSet_preimage_toDual_iff E0 #

∀ {α : Type u_1} [inst : LE α] {s : Set αᵒᵈ}, IsLowerSet (⇑OrderDual.toDual ⁻¹' s) ↔ IsUpperSet s

theorem IsLowerSet.toDual E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsLowerSet s → IsUpperSet (⇑OrderDual.ofDual ⁻¹' s)

Alias of the reverse direction of isUpperSet_preimage_ofDual_iff.

theorem IsUpperSet.toDual E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set α}, IsUpperSet s → IsLowerSet (⇑OrderDual.ofDual ⁻¹' s)

Alias of the reverse direction of isLowerSet_preimage_ofDual_iff.

theorem IsUpperSet.ofDual E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set αᵒᵈ}, IsUpperSet s → IsLowerSet (⇑OrderDual.toDual ⁻¹' s)

Alias of the reverse direction of isLowerSet_preimage_toDual_iff.

theorem IsLowerSet.ofDual E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set αᵒᵈ}, IsLowerSet s → IsUpperSet (⇑OrderDual.toDual ⁻¹' s)

Alias of the reverse direction of isUpperSet_preimage_toDual_iff.

theorem IsLowerSet.isUpperSet_preimage_coe E0 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α},
  IsLowerSet s → (IsUpperSet (Subtype.val ⁻¹' t) ↔ ∀ b ∈ s, ∀ c ∈ t, c ≤ b → b ∈ t)

theorem IsUpperSet.isLowerSet_preimage_coe E0 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α},
  IsUpperSet s → (IsLowerSet (Subtype.val ⁻¹' t) ↔ ∀ b ∈ s, ∀ c ∈ t, b ≤ c → b ∈ t)

theorem IsUpperSet.sdiff E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsUpperSet s → (∀ b ∈ s, ∀ c ∈ t, b ≤ c → b ∈ t) → IsUpperSet (s \ t)

theorem IsLowerSet.sdiff E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsLowerSet s → (∀ b ∈ s, ∀ c ∈ t, c ≤ b → b ∈ t) → IsLowerSet (s \ t)

theorem IsLowerSet.sdiff_of_isUpperSet E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsLowerSet s → IsUpperSet t → IsLowerSet (s \ t)

theorem IsUpperSet.sdiff_of_isLowerSet E1 #

∀ {α : Type u_1} [inst : LE α] {s t : Set α}, IsUpperSet s → IsLowerSet t → IsUpperSet (s \ t)

theorem IsLowerSet.erase E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set α} {a : α}, IsLowerSet s → (∀ b ∈ s, a ≤ b → b = a) → IsLowerSet (s \ {a})

theorem IsUpperSet.erase E1 #

∀ {α : Type u_1} [inst : LE α] {s : Set α} {a : α}, IsUpperSet s → (∀ b ∈ s, b ≤ a → b = a) → IsUpperSet (s \ {a})

theorem isLowerSet_iff_Iic_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsLowerSet s ↔ ∀ ⦃a : α⦄, a ∈ s → Set.Iic a ⊆ s

theorem isUpperSet_iff_Ici_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsUpperSet s ↔ ∀ ⦃a : α⦄, a ∈ s → Set.Ici a ⊆ s

theorem IsLowerSet.Iic_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsLowerSet s → ∀ ⦃a : α⦄, a ∈ s → Set.Iic a ⊆ s

Alias of the forward direction of isLowerSet_iff_Iic_subset.

theorem IsUpperSet.Ici_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsUpperSet s → ∀ ⦃a : α⦄, a ∈ s → Set.Ici a ⊆ s

Alias of the forward direction of isUpperSet_iff_Ici_subset.

theorem IsLowerSet.Iio_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsLowerSet s → ∀ ⦃a : α⦄, a ∈ s → Set.Iio a ⊆ s

theorem IsUpperSet.Ioi_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsUpperSet s → ∀ ⦃a : α⦄, a ∈ s → Set.Ioi a ⊆ s

theorem IsLowerSet.ordConnected E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsLowerSet s → s.OrdConnected

theorem IsUpperSet.ordConnected E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsUpperSet s → s.OrdConnected

theorem IsLowerSet.preimage E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α},
  IsLowerSet s → ∀ {f : β → α}, Monotone f → IsLowerSet (f ⁻¹' s)

theorem IsUpperSet.preimage E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α},
  IsUpperSet s → ∀ {f : β → α}, Monotone f → IsUpperSet (f ⁻¹' s)

theorem IsUpperSet.image E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α},
  IsUpperSet s → ∀ (f : α ≃o β), IsUpperSet (⇑f '' s)

theorem IsLowerSet.image E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {s : Set α},
  IsLowerSet s → ∀ (f : α ≃o β), IsLowerSet (⇑f '' s)

theorem OrderEmbedding.image_Ici E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (e : α ↪o β),
  IsUpperSet (Set.range ⇑e) → ∀ (a : α), ⇑e '' Set.Ici a = Set.Ici (e a)

theorem OrderEmbedding.image_Iic E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (e : α ↪o β),
  IsLowerSet (Set.range ⇑e) → ∀ (a : α), ⇑e '' Set.Iic a = Set.Iic (e a)

theorem OrderEmbedding.image_Ioi E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (e : α ↪o β),
  IsUpperSet (Set.range ⇑e) → ∀ (a : α), ⇑e '' Set.Ioi a = Set.Ioi (e a)

theorem OrderEmbedding.image_Iio E1 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (e : α ↪o β),
  IsLowerSet (Set.range ⇑e) → ∀ (a : α), ⇑e '' Set.Iio a = Set.Iio (e a)

theorem Set.monotone_mem E0 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, (Monotone fun x ↦ x ∈ s) ↔ IsUpperSet s

theorem Set.antitone_mem E0 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, (Antitone fun x ↦ x ∈ s) ↔ IsLowerSet s

theorem isUpperSet_setOfPred E0 #

∀ {α : Type u_1} [inst : Preorder α] {p : α → Prop}, IsUpperSet {a | p a} ↔ Monotone p

theorem isLowerSet_setOfPred E0 #

∀ {α : Type u_1} [inst : Preorder α] {p : α → Prop}, IsLowerSet {a | p a} ↔ Antitone p

theorem IsLowerSet.lowerBounds_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsLowerSet s → s.Nonempty → lowerBounds s ⊆ s

theorem IsUpperSet.upperBounds_subset E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α}, IsUpperSet s → s.Nonempty → upperBounds s ⊆ s

theorem IsUpperSet.bot_mem E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderBot α], IsUpperSet s → (⊥ ∈ s ↔ s = Set.univ)

theorem IsLowerSet.top_mem E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderTop α], IsLowerSet s → (⊤ ∈ s ↔ s = Set.univ)

theorem IsLowerSet.bot_mem E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderBot α], IsLowerSet s → (⊥ ∈ s ↔ s.Nonempty)

theorem IsUpperSet.top_mem E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderTop α], IsUpperSet s → (⊤ ∈ s ↔ s.Nonempty)

theorem IsUpperSet.top_notMem E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderTop α], IsUpperSet s → (⊤ ∉ s ↔ s = ∅)

theorem IsLowerSet.bot_notMem E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [inst_1 : OrderBot α], IsLowerSet s → (⊥ ∉ s ↔ s = ∅)

theorem IsLowerSet.not_bddBelow E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [NoMinOrder α], IsLowerSet s → s.Nonempty → ¬BddBelow s

theorem IsUpperSet.not_bddAbove E1 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α} [NoMaxOrder α], IsUpperSet s → s.Nonempty → ¬BddAbove s

theorem not_bddBelow_Iic E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) [NoMinOrder α], ¬BddBelow (Set.Iic a)

theorem not_bddAbove_Ici E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) [NoMaxOrder α], ¬BddAbove (Set.Ici a)

theorem not_bddAbove_Ioi E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) [NoMaxOrder α], ¬BddAbove (Set.Ioi a)

theorem not_bddBelow_Iio E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α) [NoMinOrder α], ¬BddBelow (Set.Iio a)

theorem isUpperSet_iff_forall_lt E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α}, IsUpperSet s ↔ ∀ ⦃a b : α⦄, a < b → a ∈ s → b ∈ s

theorem isLowerSet_iff_forall_lt E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α}, IsLowerSet s ↔ ∀ ⦃a b : α⦄, b < a → a ∈ s → b ∈ s

theorem isLowerSet_iff_Iio_subset E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α}, IsLowerSet s ↔ ∀ ⦃a : α⦄, a ∈ s → Set.Iio a ⊆ s

theorem isUpperSet_iff_Ioi_subset E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {s : Set α}, IsUpperSet s ↔ ∀ ⦃a : α⦄, a ∈ s → Set.Ioi a ⊆ s

theorem IsUpperSet.total E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {s t : Set α}, IsUpperSet s → IsUpperSet t → s ⊆ t ∨ t ⊆ s

theorem IsLowerSet.total E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {s t : Set α}, IsLowerSet s → IsLowerSet t → s ⊆ t ∨ t ⊆ s

Deprecated aliases

NameNew nameSince
isLowerSet_setOfisLowerSet_setOfPred2026-07-09
isUpperSet_setOfisUpperSet_setOfPred2026-07-09