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.LinearOrder

149 declarations and 10 deprecated aliases. Mathlib docs · Source

Interval properties in linear orders

Since every pair of elements are comparable in a linear order, intervals over them are better behaved. This file collects their properties under this assumption.

Two infinite intervals

A finite and an infinite interval

An infinite and a finite interval

Two finite intervals, I?o and Ic?

Two finite intervals, I?c and Io?

Two finite intervals with a common point

Intersection, difference, complement

theorem Set.notMem_Iic E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a c : α}, c ∉ Set.Iic a ↔ a < c

theorem Set.notMem_Ici E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a c : α}, c ∉ Set.Ici a ↔ c < a

theorem Set.notMem_Ioi E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a c : α}, c ∉ Set.Ioi a ↔ c ≤ a

theorem Set.notMem_Iio E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a c : α}, c ∉ Set.Iio a ↔ a ≤ c

theorem Set.compl_Iic E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, (Set.Iic a)ᶜ = Set.Ioi a

theorem Set.compl_Ici E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, (Set.Ici a)ᶜ = Set.Iio a

theorem Set.compl_Ioi E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, (Set.Ioi a)ᶜ = Set.Iic a

theorem Set.compl_Iio E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, (Set.Iio a)ᶜ = Set.Ici a

theorem Set.Ici_sdiff_Ici E0 #

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

theorem Set.Iic_sdiff_Iic E0 #

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

theorem Set.Iic_sdiff_Iio E0 #

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

theorem Set.Ici_sdiff_Ioi E0 #

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

theorem Set.Iio_sdiff_Iio E0 #

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

theorem Set.Ioi_sdiff_Ioi E0 #

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

theorem Set.Ioi_sdiff_Ici E0 #

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

theorem Set.Iio_sdiff_Iic E0 #

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

theorem Set.Iio_injective E1 #

∀ {α : Type u_1} [inst : LinearOrder α], Function.Injective Set.Iio

theorem Set.Ioi_injective E1 #

∀ {α : Type u_1} [inst : LinearOrder α], Function.Injective Set.Ioi

theorem Set.Iio_inj E1 #

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

theorem Set.Ioi_inj E1 #

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

theorem Set.Ico_subset_Ico_iff E0 #

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

theorem Set.Ioc_subset_Ioc_iff E0 #

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

theorem Set.Ico_eq_Ico_iff E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α}, a < b ∨ c < d → (Set.Ico a b = Set.Ico c d ↔ a = c ∧ b = d)

theorem Set.Ioc_eq_Ioc_iff E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α}, a < b ∨ c < d → (Set.Ioc a b = Set.Ioc c d ↔ a = c ∧ b = d)

theorem Set.Ioo_subset_Ioo_iff E0 #

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

theorem Set.Iic_eq_singleton_iff_isBot E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x : α}, Set.Iic x = {x} ↔ IsBot x

theorem Set.Ici_eq_singleton_iff_isTop E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {x : α}, Set.Ici x = {x} ↔ IsTop x

theorem Set.Iio_subset_Iio_iff E0 #

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

theorem Set.Ioi_subset_Ioi_iff E0 #

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

theorem Set.Iio_ssubset_Iio_iff E0 #

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

theorem Set.Ioi_ssubset_Ioi_iff E0 #

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

theorem Set.Iio_subset_Iic_iff E0 #

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

theorem Set.Ioi_subset_Ici_iff E0 #

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

theorem Set.Iic_union_Ioi_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.Iic b ∪ Set.Ioi a = Set.univ

theorem Set.Ici_union_Iio_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ≤ a → Set.Ici b ∪ Set.Iio a = Set.univ

theorem Set.Ioi_union_Iic_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ≤ a → Set.Ioi b ∪ Set.Iic a = Set.univ

theorem Set.Iio_union_Ici_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.Iio b ∪ Set.Ici a = Set.univ

theorem Set.Iic_union_Ici_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.Iic b ∪ Set.Ici a = Set.univ

theorem Set.Ici_union_Iic_of_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ≤ a → Set.Ici b ∪ Set.Iic a = Set.univ

theorem Set.Iio_union_Ioi_of_lt E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a < b → Set.Iio b ∪ Set.Ioi a = Set.univ

theorem Set.Ioi_union_Iio_of_lt E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b < a → Set.Ioi b ∪ Set.Iio a = Set.univ

theorem Set.Iic_union_Ici E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Iic a ∪ Set.Ici a = Set.univ

theorem Set.Ici_union_Iic E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Ici a ∪ Set.Iic a = Set.univ

theorem Set.Iio_union_Ici E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Iio a ∪ Set.Ici a = Set.univ

theorem Set.Ioi_union_Iic E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Ioi a ∪ Set.Iic a = Set.univ

theorem Set.Iic_union_Ioi E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Iic a ∪ Set.Ioi a = Set.univ

theorem Set.Ici_union_Iio E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Ici a ∪ Set.Iio a = Set.univ

theorem Set.Iio_union_Ioi E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Iio a ∪ Set.Ioi a = {a}ᶜ

theorem Set.Ioi_union_Iio E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.Ioi a ∪ Set.Iio a = {a}ᶜ

theorem Set.Ioo_union_Ioi E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, c < max a b → Set.Ioo a b ∪ Set.Ioi c = Set.Ioi (min a c)

theorem Set.Ioi_subset_Ioo_union_Ici E1 #

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

theorem Set.Ioo_union_Ici_eq_Ioi E0 #

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

theorem Set.Ici_subset_Ico_union_Ici E1 #

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

theorem Set.Ico_union_Ici_eq_Ici E0 #

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

theorem Set.Ico_union_Ici E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, c ≤ max a b → Set.Ico a b ∪ Set.Ici c = Set.Ici (min a c)

theorem Set.Ioi_subset_Ioc_union_Ioi E1 #

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

theorem Set.Ioc_union_Ioi_eq_Ioi E0 #

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

theorem Set.Ioc_union_Ioi E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, c ≤ max a b → Set.Ioc a b ∪ Set.Ioi c = Set.Ioi (min a c)

theorem Set.Ici_subset_Icc_union_Ioi E1 #

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

theorem Set.Icc_union_Ioi_eq_Ici E0 #

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

theorem Set.Ioi_subset_Ioc_union_Ici E1 #

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

theorem Set.Ioc_union_Ici_eq_Ioi E0 #

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

theorem Set.Ici_subset_Icc_union_Ici E1 #

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

theorem Set.Icc_union_Ici_eq_Ici E0 #

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

theorem Set.Icc_union_Ici E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, c ≤ max a b → Set.Icc a b ∪ Set.Ici c = Set.Ici (min a c)

theorem Set.Ioo_union_Ioi_eq_Ioi_sdiff_singleton E1 #

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

theorem Set.Ico_union_Ioi_eq_Ici_sdiff_singleton E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.Ico a b ∪ Set.Ioi b = Set.Ici a \ {b}

theorem Set.Iic_subset_Iio_union_Icc E1 #

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

theorem Set.Iio_union_Icc_eq_Iic E0 #

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

theorem Set.Iio_subset_Iio_union_Ico E1 #

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

theorem Set.Iio_union_Ico_eq_Iio E0 #

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

theorem Set.Iio_union_Ico E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {b c d : α}, min c d ≤ b → Set.Iio b ∪ Set.Ico c d = Set.Iio (max b d)

theorem Set.Iic_subset_Iic_union_Ioc E1 #

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

theorem Set.Iic_union_Ioc_eq_Iic E0 #

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

theorem Set.Iic_union_Ioc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {b c d : α}, min c d < b → Set.Iic b ∪ Set.Ioc c d = Set.Iic (max b d)

theorem Set.Iio_subset_Iic_union_Ioo E1 #

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

theorem Set.Iic_union_Ioo_eq_Iio E0 #

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

theorem Set.Iio_union_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {b c d : α}, min c d < b → Set.Iio b ∪ Set.Ioo c d = Set.Iio (max b d)

theorem Set.Iic_subset_Iic_union_Icc E1 #

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

theorem Set.Iic_union_Icc_eq_Iic E0 #

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

theorem Set.Iic_union_Icc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {b c d : α}, min c d ≤ b → Set.Iic b ∪ Set.Icc c d = Set.Iic (max b d)

theorem Set.Iio_subset_Iic_union_Ico E1 #

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

theorem Set.Iic_union_Ico_eq_Iio E0 #

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

theorem Set.Iio_union_Ioo_eq_Iio_sdiff_singleton E1 #

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

theorem Set.Iio_union_Ioc_eq_Iic_sdiff_singleton E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.Iio a ∪ Set.Ioc a b = Set.Iic b \ {a}

theorem Set.Ioo_subset_Ioo_union_Ico E1 #

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

theorem Set.Ioo_union_Ico_eq_Ioo E0 #

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

theorem Set.Ico_subset_Ico_union_Ico E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ico a c ⊆ Set.Ico a b ∪ Set.Ico b c

theorem Set.Ico_union_Ico_eq_Ico E0 #

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

theorem Set.Ico_union_Ico E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  min a b ≤ max c d → min c d ≤ max a b → Set.Ico a b ∪ Set.Ico c d = Set.Ico (min a c) (max b d)

theorem Set.Ico_union_Ico' E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  c ≤ b → a ≤ d → Set.Ico a b ∪ Set.Ico c d = Set.Ico (min a c) (max b d)

This is a special case of Ico_union_Ico

theorem Set.Icc_subset_Ico_union_Icc E1 #

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

theorem Set.Ico_union_Icc_eq_Icc E0 #

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

theorem Set.Ioc_subset_Ioo_union_Icc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a c ⊆ Set.Ioo a b ∪ Set.Icc b c

theorem Set.Ioo_union_Icc_eq_Ioc E0 #

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

theorem Set.Ioo_subset_Ioc_union_Ioo E1 #

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

theorem Set.Ioc_union_Ioo_eq_Ioo E0 #

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

theorem Set.Ico_subset_Icc_union_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ico a c ⊆ Set.Icc a b ∪ Set.Ioo b c

theorem Set.Icc_union_Ioo_eq_Ico E0 #

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

theorem Set.Icc_subset_Icc_union_Ioc E1 #

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

theorem Set.Icc_union_Ioc_eq_Icc E0 #

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

theorem Set.Ioc_subset_Ioc_union_Ioc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a c ⊆ Set.Ioc a b ∪ Set.Ioc b c

theorem Set.Ioc_union_Ioc_eq_Ioc E0 #

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

theorem Set.Ioc_union_Ioc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  min a b ≤ max c d → min c d ≤ max a b → Set.Ioc a b ∪ Set.Ioc c d = Set.Ioc (min a c) (max b d)

theorem Set.Ioc_union_Ioc' E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  c ≤ b → a ≤ d → Set.Ioc a b ∪ Set.Ioc c d = Set.Ioc (min a c) (max b d)

This is a special case of Ioc_union_Ioc

theorem Set.Ioo_subset_Ioc_union_Ico E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioo a c ⊆ Set.Ioc a b ∪ Set.Ico b c

theorem Set.Ico_union_Ioc_eq_Ioo E0 #

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

theorem Set.Ioc_union_Ico_eq_Ioo E0 #

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

theorem Set.Ico_subset_Icc_union_Ico E1 #

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

theorem Set.Icc_union_Ico_eq_Ico E0 #

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

theorem Set.Icc_subset_Icc_union_Icc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Icc a c ⊆ Set.Icc a b ∪ Set.Icc b c

theorem Set.Icc_union_Icc_eq_Icc E0 #

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

theorem Set.Icc_union_Icc' E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  c ≤ b → a ≤ d → Set.Icc a b ∪ Set.Icc c d = Set.Icc (min a c) (max b d)

theorem Set.Icc_union_Icc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  min a b < max c d → min c d < max a b → Set.Icc a b ∪ Set.Icc c d = Set.Icc (min a c) (max b d)

We cannot replace < by ≤ in the hypotheses. Otherwise for b < a = d < c the l.h.s. is ∅ and the r.h.s. is {a}.

theorem Set.Ioc_subset_Ioc_union_Icc E1 #

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

theorem Set.Ioc_union_Icc_eq_Ioc E0 #

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

theorem Set.Ioo_union_Ioo' E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  c < b → a < d → Set.Ioo a b ∪ Set.Ioo c d = Set.Ioo (min a c) (max b d)

theorem Set.Ioo_union_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α},
  min a b < max c d → min c d < max a b → Set.Ioo a b ∪ Set.Ioo c d = Set.Ioo (min a c) (max b d)

theorem Set.Ioo_subset_Ioo_union_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a a₁ b b₁ c d : α},
  a ≤ a₁ → c < b → b₁ ≤ d → Set.Ioo a₁ b₁ ⊆ Set.Ioo a b ∪ Set.Ioo c d

theorem Set.Ioo_union_Ioo_eq_Ioo_sdiff_singleton E1 #

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

theorem Set.Ico_union_Ioo_eq_Ico_sdiff_singleton E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, a ≤ b → b ≤ c → Set.Ico a b ∪ Set.Ioo b c = Set.Ico a c \ {b}

theorem Set.Ico_union_Ioc_eq_Icc_sdiff_singleton E1 #

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

theorem Set.Ioo_union_Ioc_eq_Ioc_sdiff_singleton E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, a ≤ b → b ≤ c → Set.Ioo a b ∪ Set.Ioc b c = Set.Ioc a c \ {b}

theorem Set.Iio_inter_Iio E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Iio a ∩ Set.Iio b = Set.Iio (min a b)

theorem Set.Ioi_inter_Ioi E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioi a ∩ Set.Ioi b = Set.Ioi (max a b)

theorem Set.Ico_inter_Ico E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  Set.Ico a₁ b₁ ∩ Set.Ico a₂ b₂ = Set.Ico (max a₁ a₂) (min b₁ b₂)

theorem Set.Ioc_inter_Ioc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  Set.Ioc b₁ a₁ ∩ Set.Ioc b₂ a₂ = Set.Ioc (max b₁ b₂) (min a₁ a₂)

theorem Set.Ioo_inter_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  Set.Ioo a₁ b₁ ∩ Set.Ioo a₂ b₂ = Set.Ioo (max a₁ a₂) (min b₁ b₂)

theorem Set.Ioo_inter_Iio E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioo a b ∩ Set.Iio c = Set.Ioo a (min b c)

theorem Set.Ioo_inter_Ioi E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioo b a ∩ Set.Ioi c = Set.Ioo (max b c) a

theorem Set.Ioi_inter_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioi a ∩ Set.Ioo c b = Set.Ioo (max a c) b

theorem Set.Iio_inter_Ioo E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Iio a ∩ Set.Ioo b c = Set.Ioo b (min a c)

theorem Set.Ioc_inter_Ioo_of_left_lt E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  b₁ < b₂ → Set.Ioc a₁ b₁ ∩ Set.Ioo a₂ b₂ = Set.Ioc (max a₁ a₂) b₁

theorem Set.Ioc_inter_Ioo_of_right_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  b₂ ≤ b₁ → Set.Ioc a₁ b₁ ∩ Set.Ioo a₂ b₂ = Set.Ioo (max a₁ a₂) b₂

theorem Set.Ioo_inter_Ioc_of_left_le E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  b₁ ≤ b₂ → Set.Ioo a₁ b₁ ∩ Set.Ioc a₂ b₂ = Set.Ioo (max a₁ a₂) b₁

theorem Set.Ioo_inter_Ioc_of_right_lt E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
  b₂ < b₁ → Set.Ioo a₁ b₁ ∩ Set.Ioc a₂ b₂ = Set.Ioc (max a₁ a₂) b₂

theorem Set.Ico_sdiff_Iio E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ico a b \ Set.Iio c = Set.Ico (max a c) b

theorem Set.Ioc_sdiff_Ioi E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a b \ Set.Ioi c = Set.Ioc a (min b c)

theorem Set.Ioc_inter_Ioi E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a b ∩ Set.Ioi c = Set.Ioc (max a c) b

theorem Set.Ico_inter_Iio E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ico a b ∩ Set.Iio c = Set.Ico a (min b c)

theorem Set.Ioc_sdiff_Iic E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a b \ Set.Iic c = Set.Ioc (max a c) b

theorem Set.compl_Ioc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, (Set.Ioc a b)ᶜ = Set.Iic a ∪ Set.Ioi b

theorem Set.Iic_sdiff_Ioc E1 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Iic b \ Set.Ioc a b = Set.Iic (min a b)

theorem Set.Ioi_sdiff_Ioc E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioi a \ Set.Ioc a b = Set.Ioi (max a b)

theorem Set.Iic_sdiff_Ioc_self_of_le E1 #

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

theorem Set.Ioc_union_Ioc_right E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a b ∪ Set.Ioc a c = Set.Ioc a (max b c)

theorem Set.Ioc_union_Ioc_left E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.Ioc a c ∪ Set.Ioc b c = Set.Ioc (min a b) c

theorem Set.Ioc_union_Ioc_symm E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioc a b ∪ Set.Ioc b a = Set.Ioc (min a b) (max a b)

theorem Set.Ioc_union_Ioc_union_Ioc_cycle E0 #

∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α},
  Set.Ioc a b ∪ Set.Ioc b c ∪ Set.Ioc c a = Set.Ioc (min a (min b c)) (max a (max b c))

Deprecated aliases

NameNew nameSince
Set.Ici_diff_IciSet.Ici_sdiff_Ici2026-06-03
Set.Ici_diff_IoiSet.Ici_sdiff_Ioi2026-06-03
Set.Ico_diff_IioSet.Ico_sdiff_Iio2026-06-03
Set.Iic_diff_IocSet.Iic_sdiff_Ioc2026-06-03
Set.Iic_diff_Ioc_self_of_leSet.Iic_sdiff_Ioc_self_of_le2026-06-03
Set.Ioc_diff_IicSet.Ioc_sdiff_Iic2026-06-03
Set.Ioc_diff_IoiSet.Ioc_sdiff_Ioi2026-06-03
Set.Ioi_diff_IciSet.Ioi_sdiff_Ici2026-06-03
Set.Ioi_diff_IocSet.Ioi_sdiff_Ioc2026-06-03
Set.Ioi_diff_IoiSet.Ioi_sdiff_Ioi2026-06-03