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.Interval.Set.Basic

267 declarations and 26 deprecated aliases. Mathlib docs · Source

Intervals

In any preorder, we define intervals (which on each side can be either infinite, open or closed) using the following naming conventions:

  • i: infinite
  • o: open
  • c: closed

Each interval has the name I + letter for left side + letter for right side. For instance, Ioc a b denotes the interval (a, b]. The definitions can be found in Mathlib/Order/Interval/Set/Defs.lean.

This file contains basic facts on inclusion of and set operations on intervals (where the precise statements depend on the order's properties; statements requiring LinearOrder are in Mathlib/Order/Interval/Set/LinearOrder.lean).

A conscious decision was made not to list all possible inclusion relations. Monotonicity results and "self" results are included. Most use cases can suffice with a transitive combination of those, for example:

theorem Ico_subset_Ici (h : a₂ ≤ a₁) : Ico a₁ b₁ ⊆ Ici a₂ :=
  (Ico_subset_Ico_left h).trans Ico_subset_Ici_self

Logical equivalences, such as Icc_subset_Ici_iff, are however stated.

Closed intervals in α × β

Lemmas about intervals in dense orders

Intervals in Prop

instance Set.decidableMemIoi E0 #

{α : Type u_1} → [inst : Preorder α] → {b x : α} → [Decidable (b < x)] → Decidable (x ∈ Set.Ioi b)

instance Set.decidableMemIio E0 #

{α : Type u_1} → [inst : Preorder α] → {b x : α} → [Decidable (x < b)] → Decidable (x ∈ Set.Iio b)

instance Set.decidableMemIci E0 #

{α : Type u_1} → [inst : Preorder α] → {b x : α} → [Decidable (b ≤ x)] → Decidable (x ∈ Set.Ici b)

instance Set.decidableMemIic E0 #

{α : Type u_1} → [inst : Preorder α] → {b x : α} → [Decidable (x ≤ b)] → Decidable (x ∈ Set.Iic b)

instance Set.decidableMemIoo E0 #

{α : Type u_1} →
  [inst : Preorder α] → {a b x : α} → [Decidable (a < x)] → [Decidable (x < b)] → Decidable (x ∈ Set.Ioo a b)

instance Set.decidableMemIco E0 #

{α : Type u_1} →
  [inst : Preorder α] → {a b x : α} → [Decidable (a ≤ x)] → [Decidable (x < b)] → Decidable (x ∈ Set.Ico a b)

instance Set.decidableMemIcc E0 #

{α : Type u_1} →
  [inst : Preorder α] → {a b x : α} → [Decidable (a ≤ x)] → [Decidable (x ≤ b)] → Decidable (x ∈ Set.Icc a b)

instance Set.decidableMemIoc E0 #

{α : Type u_1} →
  [inst : Preorder α] → {a b x : α} → [Decidable (a < x)] → [Decidable (x ≤ b)] → Decidable (x ∈ Set.Ioc a b)

theorem Set.self_notMem_Iio E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, a ∉ Set.Iio a

theorem Set.self_notMem_Ioi E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, a ∉ Set.Ioi a

theorem Set.self_mem_Iic E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, a ∈ Set.Iic a

theorem Set.self_mem_Ici E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, a ∈ Set.Ici a

theorem Set.left_notMem_Ioo E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∉ Set.Ioo a b

theorem Set.right_notMem_Ioo E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∉ Set.Ioo b a

theorem Set.right_notMem_Ico E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∉ Set.Ico b a

theorem Set.left_notMem_Ioc E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∉ Set.Ioc a b

theorem Set.left_mem_Ico E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∈ Set.Ico a b ↔ a < b

theorem Set.right_mem_Ioc E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∈ Set.Ioc b a ↔ b < a

theorem Set.right_mem_Icc E2 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∈ Set.Icc b a ↔ b ≤ a

theorem Set.left_mem_Icc E2 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ∈ Set.Icc a b ↔ a ≤ b

theorem Set.Iio_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Iio (OrderDual.toDual a) = ⇑OrderDual.ofDual ⁻¹' Set.Ioi a

theorem Set.Ioi_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Ioi (OrderDual.toDual a) = ⇑OrderDual.ofDual ⁻¹' Set.Iio a

theorem Set.Iic_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Iic (OrderDual.toDual a) = ⇑OrderDual.ofDual ⁻¹' Set.Ici a

theorem Set.Ici_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Ici (OrderDual.toDual a) = ⇑OrderDual.ofDual ⁻¹' Set.Iic a

theorem Set.Icc_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α},
  Set.Icc (OrderDual.toDual a) (OrderDual.toDual b) = ⇑OrderDual.ofDual ⁻¹' Set.Icc b a

theorem Set.Ico_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α},
  Set.Ico (OrderDual.toDual a) (OrderDual.toDual b) = ⇑OrderDual.ofDual ⁻¹' Set.Ioc b a

theorem Set.Ioc_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α},
  Set.Ioc (OrderDual.toDual b) (OrderDual.toDual a) = ⇑OrderDual.ofDual ⁻¹' Set.Ico a b

theorem Set.Ioo_toDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α},
  Set.Ioo (OrderDual.toDual a) (OrderDual.toDual b) = ⇑OrderDual.ofDual ⁻¹' Set.Ioo b a

theorem Set.Ioi_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : αᵒᵈ}, Set.Ioi (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Iio x

theorem Set.Iio_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : αᵒᵈ}, Set.Iio (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Ioi x

theorem Set.Ici_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : αᵒᵈ}, Set.Ici (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Iic x

theorem Set.Iic_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x : αᵒᵈ}, Set.Iic (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Ici x

theorem Set.Icc_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x y : αᵒᵈ},
  Set.Icc (OrderDual.ofDual y) (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Icc x y

theorem Set.Ioc_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x y : αᵒᵈ},
  Set.Ioc (OrderDual.ofDual x) (OrderDual.ofDual y) = ⇑OrderDual.toDual ⁻¹' Set.Ico y x

theorem Set.Ico_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x y : αᵒᵈ},
  Set.Ico (OrderDual.ofDual y) (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Ioc x y

theorem Set.Ioo_ofDual E0 #

∀ {α : Type u_1} [inst : Preorder α] {x y : αᵒᵈ},
  Set.Ioo (OrderDual.ofDual y) (OrderDual.ofDual x) = ⇑OrderDual.toDual ⁻¹' Set.Ioo x y

theorem Set.nonempty_Ioi E0 #

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

theorem Set.nonempty_Iio E0 #

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

theorem Set.nonempty_Iic E0 #

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

theorem Set.nonempty_Ici E0 #

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

theorem Set.nonempty_Icc E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, (Set.Icc a b).Nonempty ↔ a ≤ b

theorem Set.nonempty_Ioc E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, (Set.Ioc b a).Nonempty ↔ b < a

theorem Set.nonempty_Ico E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, (Set.Ico a b).Nonempty ↔ a < b

theorem Set.nonempty_Ioo E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α} [DenselyOrdered α], (Set.Ioo a b).Nonempty ↔ a < b

instance Set.nonempty_Iio_subtype E0 #

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

In an order without minimal elements, the intervals Iio are nonempty.

instance Set.nonempty_Ioi_subtype E0 #

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

In an order without maximal elements, the intervals Ioi are nonempty.

instance Set.nonempty_Iic_subtype E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Nonempty ↑(Set.Iic a)

An interval Iic a is nonempty.

instance Set.nonempty_Ici_subtype E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Nonempty ↑(Set.Ici a)

An interval Ici a is nonempty.

theorem Set.nonempty_Icc_subtype E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → Nonempty ↑(Set.Icc a b)

theorem Set.nonempty_Ico_subtype E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → Nonempty ↑(Set.Ico b a)

theorem Set.nonempty_Ioc_subtype E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → Nonempty ↑(Set.Ioc a b)

theorem Set.nonempty_Ioo_subtype E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α} [DenselyOrdered α], a < b → Nonempty ↑(Set.Ioo a b)

theorem Set.Iio_one_eq_empty E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : One α] [IsBotOneClass α], Set.Iio 1 = ∅

theorem Set.Iio_zero_eq_empty E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : Zero α] [IsBotZeroClass α], Set.Iio 0 = ∅

instance Set.isEmpty_Iio_one E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : One α] [IsBotOneClass α], IsEmpty ↑(Set.Iio 1)

instance Set.isEmpty_Iio_zero E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : Zero α] [IsBotZeroClass α], IsEmpty ↑(Set.Iio 0)

instance Set.instNoMaxOrderElemIoi E0 #

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

instance Set.instNoMinOrderElemIio E0 #

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

instance Set.instNoMinOrderElemIic E0 #

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

instance Set.instNoMaxOrderElemIci E0 #

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

theorem Set.Icc_eq_empty E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, ¬a ≤ b → Set.Icc a b = ∅

theorem Set.Ioc_eq_empty E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, ¬b < a → Set.Ioc b a = ∅

theorem Set.Ico_eq_empty E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, ¬a < b → Set.Ico a b = ∅

theorem Set.Ioo_eq_empty E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, ¬a < b → Set.Ioo a b = ∅

theorem Set.Icc_eq_empty_of_lt E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → Set.Icc a b = ∅

theorem Set.Ioc_eq_empty_of_le E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → Set.Ioc b a = ∅

theorem Set.Ico_eq_empty_of_le E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → Set.Ico a b = ∅

theorem Set.Ioo_eq_empty_of_le E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → Set.Ioo a b = ∅

theorem Set.Ico_self E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Set.Ico a a = ∅

theorem Set.Ioc_self E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Set.Ioc a a = ∅

theorem Set.Ioo_self E1 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), Set.Ioo a a = ∅

theorem Set.Iio_subset_Iio E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → Set.Iio a ⊆ Set.Iio b

If a ≤ b, then (-∞, a) ⊆ (-∞, b). In preorders, this is just an implication. If you need the equivalence in linear orders, use Iio_subset_Iio_iff.

theorem Set.Ioi_subset_Ioi E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → Set.Ioi a ⊆ Set.Ioi b

If a ≤ b, then (b, +∞) ⊆ (a, +∞). In preorders, this is just an implication. If you need the equivalence in linear orders, use Ioi_subset_Ioi_iff.

theorem Set.Iio_ssubset_Iio E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a < b → Set.Iio a ⊂ Set.Iio b

If a < b, then (-∞, a) ⊂ (-∞, b). In preorders, this is just an implication. If you need the equivalence in linear orders, use Iio_ssubset_Iio_iff.

theorem Set.Ioi_ssubset_Ioi E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b < a → Set.Ioi a ⊂ Set.Ioi b

If a < b, then (b, +∞) ⊂ (a, +∞). In preorders, this is just an implication. If you need the equivalence in linear orders, use Ioi_ssubset_Ioi_iff.

theorem Set.Iic_subset_Iic E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iic a ⊆ Set.Iic b ↔ a ≤ b

theorem Set.Ici_subset_Ici E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ici a ⊆ Set.Ici b ↔ b ≤ a

theorem Set.Ici_ssubset_Ici E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ici a ⊂ Set.Ici b ↔ b < a

theorem Set.Iic_ssubset_Iic E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iic a ⊂ Set.Iic b ↔ a < b

theorem Set.Iic_subset_Iio E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iic a ⊆ Set.Iio b ↔ a < b

theorem Set.Ici_subset_Ioi E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ici a ⊆ Set.Ioi b ↔ b < a

theorem Set.Ioi_subset_Ici_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Ioi a ⊆ Set.Ici a

theorem Set.Iio_subset_Iic_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Iio a ⊆ Set.Iic a

theorem Set.Iio_subset_Iic E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, a ≤ b → Set.Iio a ⊆ Set.Iic b

If a ≤ b, then (-∞, a) ⊆ (-∞, b]. In preorders, this is just an implication. If you need the equivalence in dense linear orders, use Iio_subset_Iic_iff.

theorem Set.Ioi_subset_Ici E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, b ≤ a → Set.Ioi a ⊆ Set.Ici b

If a ≤ b, then (b, +∞) ⊆ [a, +∞). In preorders, this is just an implication. If you need the equivalence in dense linear orders, use Ioi_subset_Ici_iff.

theorem Set.Iio_ssubset_Iic_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Iio a ⊂ Set.Iic a

theorem Set.Ioi_ssubset_Ici_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Ioi a ⊂ Set.Ici a

theorem Set.Ioo_subset_Ioo E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ ≤ a₁ → b₁ ≤ b₂ → Set.Ioo a₁ b₁ ⊆ Set.Ioo a₂ b₂

theorem Set.Ioo_subset_Ioo_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₂ ≤ a₁ → Set.Ioo b a₂ ⊆ Set.Ioo b a₁

theorem Set.Ioo_subset_Ioo_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₁ ≤ a₂ → Set.Ioo a₂ b ⊆ Set.Ioo a₁ b

theorem Set.Ico_subset_Ico E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ ≤ a₁ → b₁ ≤ b₂ → Set.Ico a₁ b₁ ⊆ Set.Ico a₂ b₂

theorem Set.Ioc_subset_Ioc E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, b₂ ≤ b₁ → a₁ ≤ a₂ → Set.Ioc b₁ a₁ ⊆ Set.Ioc b₂ a₂

theorem Set.Ioc_subset_Ioc_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₂ ≤ a₁ → Set.Ioc b a₂ ⊆ Set.Ioc b a₁

theorem Set.Ico_subset_Ico_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₁ ≤ a₂ → Set.Ico a₂ b ⊆ Set.Ico a₁ b

theorem Set.Ioc_subset_Ioc_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₁ ≤ a₂ → Set.Ioc a₂ b ⊆ Set.Ioc a₁ b

theorem Set.Ico_subset_Ico_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₂ ≤ a₁ → Set.Ico b a₂ ⊆ Set.Ico b a₁

theorem Set.Icc_subset_Icc E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ ≤ a₁ → b₁ ≤ b₂ → Set.Icc a₁ b₁ ⊆ Set.Icc a₂ b₂

theorem Set.Icc_subset_Icc_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₂ ≤ a₁ → Set.Icc b a₂ ⊆ Set.Icc b a₁

theorem Set.Icc_subset_Icc_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₁ ≤ a₂ → Set.Icc a₂ b ⊆ Set.Icc a₁ b

theorem Set.Icc_ssubset_Icc_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ ≤ b₂ → a₂ < a₁ → b₁ ≤ b₂ → Set.Icc a₁ b₁ ⊂ Set.Icc a₂ b₂

theorem Set.Icc_ssubset_Icc_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, b₂ ≤ a₂ → b₂ ≤ b₁ → a₁ < a₂ → Set.Icc b₁ a₁ ⊂ Set.Icc b₂ a₂

theorem Set.Ioc_subset_Ioo E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, b₂ ≤ b₁ → a₁ < a₂ → Set.Ioc b₁ a₁ ⊆ Set.Ioo b₂ a₂

theorem Set.Ico_subset_Ioo E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ < a₁ → b₁ ≤ b₂ → Set.Ico a₁ b₁ ⊆ Set.Ioo a₂ b₂

theorem Set.Ioc_subset_Ioo_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₂ < a₁ → Set.Ioc b a₂ ⊆ Set.Ioo b a₁

theorem Set.Ico_subset_Ioo_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₁ < a₂ → Set.Ico a₂ b ⊆ Set.Ioo a₁ b

theorem Set.Icc_subset_Ioc E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ < a₁ → b₁ ≤ b₂ → Set.Icc a₁ b₁ ⊆ Set.Ioc a₂ b₂

theorem Set.Icc_subset_Ico E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, b₂ ≤ b₁ → a₁ < a₂ → Set.Icc b₁ a₁ ⊆ Set.Ico b₂ a₂

theorem Set.Icc_subset_Ioc_left E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₁ < a₂ → Set.Icc a₂ b ⊆ Set.Ioc a₁ b

theorem Set.Icc_subset_Ico_right E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b : α}, a₂ < a₁ → Set.Icc b a₂ ⊆ Set.Ico b a₁

theorem Set.Icc_subset_Ioo E1 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₂ < a₁ → b₁ < b₂ → Set.Icc a₁ b₁ ⊆ Set.Ioo a₂ b₂

theorem Set.Ico_subset_Iio_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico a b ⊆ Set.Iio b

theorem Set.Ioc_subset_Ioi_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc b a ⊆ Set.Ioi b

theorem Set.Ioo_subset_Iio_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo a b ⊆ Set.Iio b

theorem Set.Ioo_subset_Ioi_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo b a ⊆ Set.Ioi b

theorem Set.Ioc_subset_Iic_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc a b ⊆ Set.Iic b

theorem Set.Ico_subset_Ici_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico b a ⊆ Set.Ici b

theorem Set.Icc_subset_Iic_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Icc a b ⊆ Set.Iic b

theorem Set.Icc_subset_Ici_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Icc b a ⊆ Set.Ici b

theorem Set.Ioo_subset_Ico_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo a b ⊆ Set.Ico a b

theorem Set.Ioo_subset_Ioc_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo b a ⊆ Set.Ioc b a

theorem Set.Ico_subset_Icc_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico b a ⊆ Set.Icc b a

theorem Set.Ioc_subset_Icc_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc a b ⊆ Set.Icc a b

theorem Set.Ioo_subset_Icc_self E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo a b ⊆ Set.Icc a b

theorem Set.Icc_subset_Icc_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₁ ≤ b₁ → (Set.Icc a₁ b₁ ⊆ Set.Icc a₂ b₂ ↔ a₂ ≤ a₁ ∧ b₁ ≤ b₂)

theorem Set.Icc_subset_Ioo_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₁ ≤ b₁ → (Set.Icc a₁ b₁ ⊆ Set.Ioo a₂ b₂ ↔ a₂ < a₁ ∧ b₁ < b₂)

theorem Set.Icc_subset_Ico_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₁ ≤ b₁ → (Set.Icc a₁ b₁ ⊆ Set.Ico a₂ b₂ ↔ a₂ ≤ a₁ ∧ b₁ < b₂)

theorem Set.Icc_subset_Ioc_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ b₂ : α}, a₁ ≤ b₁ → (Set.Icc a₁ b₁ ⊆ Set.Ioc a₂ b₂ ↔ a₂ < a₁ ∧ b₁ ≤ b₂)

theorem Set.Icc_subset_Ioi_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ : α}, a₁ ≤ b₁ → (Set.Icc a₁ b₁ ⊆ Set.Ioi a₂ ↔ a₂ < a₁)

theorem Set.Icc_subset_Iio_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ : α}, b₁ ≤ a₁ → (Set.Icc b₁ a₁ ⊆ Set.Iio a₂ ↔ a₁ < a₂)

theorem Set.Icc_subset_Ici_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ : α}, a₁ ≤ b₁ → (Set.Icc a₁ b₁ ⊆ Set.Ici a₂ ↔ a₂ ≤ a₁)

theorem Set.Icc_subset_Iic_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a₁ a₂ b₁ : α}, b₁ ≤ a₁ → (Set.Icc b₁ a₁ ⊆ Set.Iic a₂ ↔ a₁ ≤ a₂)

theorem Set.Iic_inter_Ici E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iic a ∩ Set.Ici b = Set.Icc b a

theorem Set.Ici_inter_Iic E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ici a ∩ Set.Iic b = Set.Icc a b

theorem Set.Ici_inter_Iio E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ici a ∩ Set.Iio b = Set.Ico a b

theorem Set.Iic_inter_Ioi E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iic a ∩ Set.Ioi b = Set.Ioc b a

theorem Set.Ioi_inter_Iic E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioi a ∩ Set.Iic b = Set.Ioc a b

theorem Set.Iio_inter_Ici E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iio a ∩ Set.Ici b = Set.Ico b a

theorem Set.Iio_inter_Ioi E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Iio a ∩ Set.Ioi b = Set.Ioo b a

theorem Set.Ioi_inter_Iio E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioi a ∩ Set.Iio b = Set.Ioo a b

theorem Set.mem_Icc_of_Ioo E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b x : α}, x ∈ Set.Ioo a b → x ∈ Set.Icc a b

theorem Set.mem_Ioc_of_Ioo E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b x : α}, x ∈ Set.Ioo b a → x ∈ Set.Ioc b a

theorem Set.mem_Ico_of_Ioo E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b x : α}, x ∈ Set.Ioo a b → x ∈ Set.Ico a b

theorem Set.mem_Icc_of_Ioc E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b x : α}, x ∈ Set.Ioc a b → x ∈ Set.Icc a b

theorem Set.mem_Icc_of_Ico E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b x : α}, x ∈ Set.Ico b a → x ∈ Set.Icc b a

theorem Set.mem_Iic_of_Iio E0 #

∀ {α : Type u_1} [inst : Preorder α] {a x : α}, x ∈ Set.Iio a → x ∈ Set.Iic a

theorem Set.mem_Ici_of_Ioi E0 #

∀ {α : Type u_1} [inst : Preorder α] {a x : α}, x ∈ Set.Ioi a → x ∈ Set.Ici a

theorem Set.Icc_eq_empty_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Icc a b = ∅ ↔ ¬a ≤ b

theorem Set.Ioc_eq_empty_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc b a = ∅ ↔ ¬b < a

theorem Set.Ico_eq_empty_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico a b = ∅ ↔ ¬a < b

theorem Set.Ioo_eq_empty_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α} [DenselyOrdered α], Set.Ioo a b = ∅ ↔ ¬a < b

theorem IsTop.Iic_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsTop a → Set.Iic a = Set.univ

theorem IsBot.Ici_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsBot a → Set.Ici a = Set.univ

theorem Set.Iio_eq_empty_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Iio a = ∅ ↔ IsMin a

theorem Set.Ioi_eq_empty_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, Set.Ioi a = ∅ ↔ IsMax a

theorem IsMax.Ioi_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsMax a → Set.Ioi a = ∅

Alias of the reverse direction of Set.Ioi_eq_empty_iff.

theorem IsMin.Iio_eq E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, IsMin a → Set.Iio a = ∅

Alias of the reverse direction of Set.Iio_eq_empty_iff.

theorem Set.Iio_nonempty E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, (Set.Iio a).Nonempty ↔ ¬IsMin a

theorem Set.Ioi_nonempty E0 #

∀ {α : Type u_1} [inst : Preorder α] {a : α}, (Set.Ioi a).Nonempty ↔ ¬IsMax a

theorem Set.Ici_inter_Ico_of_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, c ≤ a → Set.Ici a ∩ Set.Ico c b = Set.Ico a b

theorem Set.Iic_inter_Ioc_of_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, a ≤ c → Set.Iic a ∩ Set.Ioc b c = Set.Ioc b a

theorem Set.notMem_Icc_of_gt E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, a < c → c ∉ Set.Icc b a

theorem Set.notMem_Icc_of_lt E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, c < a → c ∉ Set.Icc a b

theorem Set.notMem_Ioc_of_gt E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, a < c → c ∉ Set.Ioc b a

theorem Set.notMem_Ico_of_lt E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, c < a → c ∉ Set.Ico a b

theorem Set.notMem_Ico_of_ge E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, a ≤ c → c ∉ Set.Ico b a

theorem Set.notMem_Ioc_of_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, c ≤ a → c ∉ Set.Ioc a b

theorem Set.notMem_Ioo_of_ge E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, a ≤ c → c ∉ Set.Ioo b a

theorem Set.notMem_Ioo_of_le E1 #

∀ {α : Type u_1} [inst : Preorder α] {a b c : α}, c ≤ a → c ∉ Set.Ioo a b

theorem Set.Icc_eq_Ioc_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Icc a b = Set.Ioc a b ↔ ¬a ≤ b

theorem Set.Icc_eq_Ico_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Icc b a = Set.Ico b a ↔ ¬b ≤ a

theorem Set.Ico_eq_Icc_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico b a = Set.Icc b a ↔ ¬b ≤ a

theorem Set.Ioc_eq_Icc_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc a b = Set.Icc a b ↔ ¬a ≤ b

theorem Set.Icc_eq_Ioo_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Icc a b = Set.Ioo a b ↔ ¬a ≤ b

theorem Set.Ioo_eq_Icc_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo a b = Set.Icc a b ↔ ¬a ≤ b

theorem Set.Ico_eq_Ioc_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico b a = Set.Ioc b a ↔ ¬b < a

theorem Set.Ioc_eq_Ico_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc a b = Set.Ico a b ↔ ¬a < b

theorem Set.Ioo_eq_Ico_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo b a = Set.Ico b a ↔ ¬b < a

theorem Set.Ioo_eq_Ioc_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioo a b = Set.Ioc a b ↔ ¬a < b

theorem Set.Ico_eq_Ioo_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ico b a = Set.Ioo b a ↔ ¬b < a

theorem Set.Ioc_eq_Ioo_same_iff E0 #

∀ {α : Type u_1} [inst : Preorder α] {a b : α}, Set.Ioc a b = Set.Ioo a b ↔ ¬a < b

theorem IsLowerSet.Iic E1 #

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

theorem IsUpperSet.Ici E1 #

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

theorem IsUpperSet.Ioi E1 #

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

theorem IsLowerSet.Iio E1 #

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

theorem Set.Ici_one_eq_univ E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : One α] [IsBotOneClass α], Set.Ici 1 = Set.univ

theorem Set.Ici_zero_eq_univ E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : Zero α] [IsBotZeroClass α], Set.Ici 0 = Set.univ

theorem Set.Icc_self E0 #

∀ {α : Type u_1} [inst : PartialOrder α] (a : α), Set.Icc a a = {a}

instance Set.instIccUnique E0 #

{α : Type u_1} → [inst : PartialOrder α] → {a : α} → Unique ↑(Set.Icc a a)

theorem Set.Icc_eq_singleton_iff E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b c : α}, Set.Icc a b = {c} ↔ a = c ∧ b = c

theorem Set.subsingleton_Icc_of_ge E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b ≤ a → (Set.Icc a b).Subsingleton

theorem Set.subsingleton_Icc_iff E0 #

∀ {α : Type u_2} [inst : LinearOrder α] {a b : α}, (Set.Icc a b).Subsingleton ↔ b ≤ a

theorem Set.Icc_sdiff_right E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Icc b a \ {a} = Set.Ico b a

theorem Set.Icc_sdiff_left E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Icc a b \ {a} = Set.Ioc a b

theorem Set.Ioc_sdiff_right E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Ioc b a \ {a} = Set.Ioo b a

theorem Set.Ico_sdiff_left E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Ico a b \ {a} = Set.Ioo a b

theorem Set.Icc_sdiff_both E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Icc a b \ {a, b} = Set.Ioo a b

theorem Set.Ici_sdiff_left E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, Set.Ici a \ {a} = Set.Ioi a

theorem Set.Iic_sdiff_right E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, Set.Iic a \ {a} = Set.Iio a

theorem Set.Ioc_sdiff_Ioo_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b < a → Set.Ioc b a \ Set.Ioo b a = {a}

theorem Set.Ico_sdiff_Ioo_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a < b → Set.Ico a b \ Set.Ioo a b = {a}

theorem Set.Icc_sdiff_Ico_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a ≤ b → Set.Icc a b \ Set.Ico a b = {b}

theorem Set.Icc_sdiff_Ioc_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b ≤ a → Set.Icc b a \ Set.Ioc b a = {b}

theorem Set.Icc_sdiff_Ioo_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a ≤ b → Set.Icc a b \ Set.Ioo a b = {a, b}

theorem Set.Iic_sdiff_Iio_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, Set.Iic a \ Set.Iio a = {a}

theorem Set.Ici_sdiff_Ioi_same E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, Set.Ici a \ Set.Ioi a = {a}

theorem Set.Ioi_union_left E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, Set.Ioi a ∪ {a} = Set.Ici a

theorem Set.Iio_union_right E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, Set.Iio a ∪ {a} = Set.Iic a

theorem Set.Ioo_union_left E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a < b → Set.Ioo a b ∪ {a} = Set.Ico a b

theorem Set.Ioo_union_right E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b < a → Set.Ioo b a ∪ {a} = Set.Ioc b a

theorem Set.Ioo_union_both E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a ≤ b → Set.Ioo a b ∪ {a, b} = Set.Icc a b

theorem Set.Ioc_union_left E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a ≤ b → Set.Ioc a b ∪ {a} = Set.Icc a b

theorem Set.Ico_union_right E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b ≤ a → Set.Ico b a ∪ {a} = Set.Icc b a

theorem Set.insert_right_Ico E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a ≤ b → insert b (Set.Ico a b) = Set.Icc a b

theorem Set.insert_left_Ioc E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b ≤ a → insert b (Set.Ioc b a) = Set.Icc b a

theorem Set.insert_left_Ioo E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, a < b → insert a (Set.Ioo a b) = Set.Ico a b

theorem Set.insert_right_Ioo E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, b < a → insert a (Set.Ioo b a) = Set.Ioc b a

theorem Set.insert_Ioi E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, insert a (Set.Ioi a) = Set.Ici a

theorem Set.insert_Iio E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, insert a (Set.Iio a) = Set.Iic a

theorem Set.mem_Ici_Ioi_of_subset_of_subset E0 #

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

theorem Set.mem_Iic_Iio_of_subset_of_subset E0 #

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

theorem Set.mem_Icc_Ico_Ioc_Ioo_of_subset_of_subset E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α} {s : Set α},
  Set.Ioo a b ⊆ s → s ⊆ Set.Icc a b → s ∈ {Set.Icc a b, Set.Ico a b, Set.Ioc a b, Set.Ioo a b}

theorem IsMin.Iic_eq E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, IsMin a → Set.Iic a = {a}

theorem IsMax.Ici_eq E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a : α}, IsMax a → Set.Ici a = {a}

theorem Set.Iic_injective E1 #

∀ {α : Type u_1} [inst : PartialOrder α], Function.Injective Set.Iic

theorem Set.Ici_injective E1 #

∀ {α : Type u_1} [inst : PartialOrder α], Function.Injective Set.Ici

theorem Set.Iic_inj E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Iic a = Set.Iic b ↔ a = b

theorem Set.Ici_inj E1 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b : α}, Set.Ici a = Set.Ici b ↔ a = b

theorem Set.Icc_inter_Icc_eq_singleton E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b c : α}, a ≤ b → b ≤ c → Set.Icc a b ∩ Set.Icc b c = {b}

theorem Set.Icc_eq_Icc_iff E0 #

∀ {α : Type u_1} [inst : PartialOrder α] {a b c d : α}, a ≤ b → (Set.Icc a b = Set.Icc c d ↔ a = c ∧ b = d)

theorem Set.Ici_top E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α], Set.Ici ⊤ = {⊤}

theorem Set.Iic_bot E0 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderBot α], Set.Iic ⊥ = {⊥}

theorem Set.Iio_top E1 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderTop α], Set.Iio ⊤ = {⊤}ᶜ

theorem Set.Ioi_bot E1 #

∀ {α : Type u_1} [inst : PartialOrder α] [inst_1 : OrderBot α], Set.Ioi ⊥ = {⊥}ᶜ

theorem Set.Ioi_top E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α], Set.Ioi ⊤ = ∅

theorem Set.Iio_bot E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α], Set.Iio ⊥ = ∅

theorem Set.Iic_top E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α], Set.Iic ⊤ = Set.univ

theorem Set.Ici_bot E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α], Set.Ici ⊥ = Set.univ

theorem Set.Icc_top E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] {a : α}, Set.Icc a ⊤ = Set.Ici a

theorem Set.Icc_bot E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] {a : α}, Set.Icc ⊥ a = Set.Iic a

theorem Set.Ioc_top E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderTop α] {a : α}, Set.Ioc a ⊤ = Set.Ioi a

theorem Set.Ico_bot E0 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : OrderBot α] {a : α}, Set.Ico ⊥ a = Set.Iio a

theorem Set.Icc_bot_top E1 #

∀ {α : Type u_1} [inst : Preorder α] [inst_1 : BoundedOrder α], Set.Icc ⊥ ⊤ = Set.univ

theorem Set.Iic_inter_Iic E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] {a b : α}, Set.Iic a ∩ Set.Iic b = Set.Iic (a ⊓ b)

theorem Set.Ici_inter_Ici E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] {a b : α}, Set.Ici a ∩ Set.Ici b = Set.Ici (a ⊔ b)

theorem Set.Ico_inter_Ici E0 #

∀ {α : Type u_1} [inst : SemilatticeSup α] (b a c : α), Set.Ico b a ∩ Set.Ici c = Set.Ico (b ⊔ c) a

theorem Set.Ioc_inter_Iic E0 #

∀ {α : Type u_1} [inst : SemilatticeInf α] (a b c : α), Set.Ioc a b ∩ Set.Iic c = Set.Ioc a (b ⊓ c)

theorem Set.Icc_inter_Icc E1 #

∀ {α : Type u_1} [inst : Lattice α] {a₁ a₂ b₁ b₂ : α}, Set.Icc a₁ b₁ ∩ Set.Icc a₂ b₂ = Set.Icc (a₁ ⊔ a₂) (b₁ ⊓ b₂)

theorem Set.Ici_prod_Ici E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (a : α) (b : β),
  Set.Ici a ×ˢ Set.Ici b = Set.Ici (a, b)

theorem Set.Iic_prod_Iic E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (a : α) (b : β),
  Set.Iic a ×ˢ Set.Iic b = Set.Iic (a, b)

theorem Set.Iic_prod_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (a : α × β),
  Set.Iic a = Set.Iic a.1 ×ˢ Set.Iic a.2

theorem Set.Ici_prod_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (a : α × β),
  Set.Ici a = Set.Ici a.1 ×ˢ Set.Ici a.2

theorem Set.Icc_prod_Icc E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (a₁ a₂ : α) (b₁ b₂ : β),
  Set.Icc a₁ a₂ ×ˢ Set.Icc b₁ b₂ = Set.Icc (a₁, b₁) (a₂, b₂)

theorem Set.Icc_prod_eq E0 #

∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] (a b : α × β),
  Set.Icc a b = Set.Icc a.1 b.1 ×ˢ Set.Icc a.2 b.2

instance Set.instNoMinOrderElemIoo E0 #

∀ (α : Type u_1) [inst : Preorder α] [DenselyOrdered α] {x y : α}, NoMinOrder ↑(Set.Ioo x y)

instance Set.instNoMaxOrderElemIoo E0 #

∀ (α : Type u_1) [inst : Preorder α] [DenselyOrdered α] {x y : α}, NoMaxOrder ↑(Set.Ioo y x)

instance Set.instNoMinOrderElemIoc E0 #

∀ (α : Type u_1) [inst : Preorder α] [DenselyOrdered α] {x y : α}, NoMinOrder ↑(Set.Ioc x y)

instance Set.instNoMaxOrderElemIco E0 #

∀ (α : Type u_1) [inst : Preorder α] [DenselyOrdered α] {x y : α}, NoMaxOrder ↑(Set.Ico y x)

instance Set.instNoMaxOrderElemIio E0 #

∀ (α : Type u_1) [inst : Preorder α] [DenselyOrdered α] {x : α}, NoMaxOrder ↑(Set.Iio x)

instance Set.instNoMinOrderElemIoi E0 #

∀ (α : Type u_1) [inst : Preorder α] [DenselyOrdered α] {x : α}, NoMinOrder ↑(Set.Ioi x)

theorem Set.Iic_false E0 #

Set.Iic False = {False}

theorem Set.Iic_true E0 #

Set.Iic True = Set.univ

theorem Set.Ici_false E0 #

Set.Ici False = Set.univ

theorem Set.Ici_true E0 #

Set.Ici True = {True}

theorem Set.Iio_false E1 #

Set.Iio False = ∅

theorem Set.Iio_true E0 #

Set.Iio True = {False}

theorem Set.Ioi_false E0 #

Set.Ioi False = {True}

theorem Set.Ioi_true E1 #

Set.Ioi True = ∅

Deprecated aliases

NameNew nameSince
Set.Icc_diff_Ico_sameSet.Icc_sdiff_Ico_same2026-06-03
Set.Icc_diff_Ioo_sameSet.Icc_sdiff_Ioo_same2026-06-03
Set.Icc_diff_bothSet.Icc_sdiff_both2026-06-03
Set.Icc_diff_leftSet.Icc_sdiff_left2026-06-03
Set.Ici_FalseSet.Ici_false2026-10-27
Set.Ici_TrueSet.Ici_true2026-10-27
Set.Ico_diff_Ioo_sameSet.Ico_sdiff_Ioo_same2026-06-03
Set.Ico_diff_leftSet.Ico_sdiff_left2026-06-03
Set.Ico_insert_rightSet.insert_right_Ico2026-11-03
Set.Iic_FalseSet.Iic_false2026-10-27
Set.Iic_TrueSet.Iic_true2026-10-27
Set.Iic_diff_Iio_sameSet.Iic_sdiff_Iio_same2026-06-03
Set.Iic_diff_rightSet.Iic_sdiff_right2026-06-03
Set.Iio_FalseSet.Iio_false2026-10-27
Set.Iio_TrueSet.Iio_true2026-10-27
Set.Iio_insertSet.insert_Iio2026-11-03
Set.Ioc_insert_leftSet.insert_left_Ioc2026-11-03
Set.Ioi_FalseSet.Ioi_false2026-10-27
Set.Ioi_TrueSet.Ioi_true2026-10-27
Set.Ioi_insertSet.insert_Ioi2026-11-03
Set.Ioo_insert_leftSet.insert_left_Ioo2026-11-03
Set.Ioo_insert_rightSet.insert_right_Ioo2026-11-03
isLowerSet_IicIsLowerSet.Iic2026-10-16
isLowerSet_IioIsLowerSet.Iio2026-10-16
isUpperSet_IciIsUpperSet.Ici2026-10-16
isUpperSet_IoiIsUpperSet.Ioi2026-10-16