mathlib documentation

data.set.intervals.basic

Intervals #

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

Each interval has the name I + letter for left side + letter for right side. For instance, Ioc a b denotes the inverval (a, b].

This file contains these definitions, and basic facts on inclusion, intersection, difference of intervals (where the precise statements may depend on the properties of the order, in particular for some statements it should be linear_order or densely_ordered).

TODO: This is just the beginning; a lot of rules are missing

def set.Ioo {α : Type u} [preorder α] (a b : α) :
set α

Left-open right-open interval

Equations
def set.Ico {α : Type u} [preorder α] (a b : α) :
set α

Left-closed right-open interval

Equations
def set.Iio {α : Type u} [preorder α] (a : α) :
set α

Left-infinite right-open interval

Equations
def set.Icc {α : Type u} [preorder α] (a b : α) :
set α

Left-closed right-closed interval

Equations
def set.Iic {α : Type u} [preorder α] (b : α) :
set α

Left-infinite right-closed interval

Equations
def set.Ioc {α : Type u} [preorder α] (a b : α) :
set α

Left-open right-closed interval

Equations
def set.Ici {α : Type u} [preorder α] (a : α) :
set α

Left-closed right-infinite interval

Equations
def set.Ioi {α : Type u} [preorder α] (a : α) :
set α

Left-open right-infinite interval

Equations
theorem set.Ioo_def {α : Type u} [preorder α] (a b : α) :
{x : α | a < x x < b} = set.Ioo a b
theorem set.Ico_def {α : Type u} [preorder α] (a b : α) :
{x : α | a x x < b} = set.Ico a b
theorem set.Iio_def {α : Type u} [preorder α] (a : α) :
{x : α | x < a} = set.Iio a
theorem set.Icc_def {α : Type u} [preorder α] (a b : α) :
{x : α | a x x b} = set.Icc a b
theorem set.Iic_def {α : Type u} [preorder α] (b : α) :
{x : α | x b} = set.Iic b
theorem set.Ioc_def {α : Type u} [preorder α] (a b : α) :
{x : α | a < x x b} = set.Ioc a b
theorem set.Ici_def {α : Type u} [preorder α] (a : α) :
{x : α | a x} = set.Ici a
theorem set.Ioi_def {α : Type u} [preorder α] (a : α) :
{x : α | a < x} = set.Ioi a
@[simp]
theorem set.mem_Ioo {α : Type u} [preorder α] {a b x : α} :
x set.Ioo a b a < x x < b
@[simp]
theorem set.mem_Ico {α : Type u} [preorder α] {a b x : α} :
x set.Ico a b a x x < b
@[simp]
theorem set.mem_Iio {α : Type u} [preorder α] {b x : α} :
x set.Iio b x < b
@[simp]
theorem set.mem_Icc {α : Type u} [preorder α] {a b x : α} :
x set.Icc a b a x x b
@[simp]
theorem set.mem_Iic {α : Type u} [preorder α] {b x : α} :
x set.Iic b x b
@[simp]
theorem set.mem_Ioc {α : Type u} [preorder α] {a b x : α} :
x set.Ioc a b a < x x b
@[simp]
theorem set.mem_Ici {α : Type u} [preorder α] {a x : α} :
x set.Ici a a x
@[simp]
theorem set.mem_Ioi {α : Type u} [preorder α] {a x : α} :
x set.Ioi a a < x
@[simp]
theorem set.left_mem_Ioo {α : Type u} [preorder α] {a b : α} :
@[simp]
theorem set.left_mem_Ico {α : Type u} [preorder α] {a b : α} :
a set.Ico a b a < b
@[simp]
theorem set.left_mem_Icc {α : Type u} [preorder α] {a b : α} :
a set.Icc a b a b
@[simp]
theorem set.left_mem_Ioc {α : Type u} [preorder α] {a b : α} :
theorem set.left_mem_Ici {α : Type u} [preorder α] {a : α} :
@[simp]
theorem set.right_mem_Ioo {α : Type u} [preorder α] {a b : α} :
@[simp]
theorem set.right_mem_Ico {α : Type u} [preorder α] {a b : α} :
@[simp]
theorem set.right_mem_Icc {α : Type u} [preorder α] {a b : α} :
b set.Icc a b a b
@[simp]
theorem set.right_mem_Ioc {α : Type u} [preorder α] {a b : α} :
b set.Ioc a b a < b
theorem set.right_mem_Iic {α : Type u} [preorder α] {a : α} :
@[simp]
@[simp]
@[simp]
@[simp]
@[simp]
theorem set.nonempty_Icc {α : Type u} [preorder α] {a b : α} :
@[simp]
theorem set.nonempty_Ico {α : Type u} [preorder α] {a b : α} :
(set.Ico a b).nonempty a < b
@[simp]
theorem set.nonempty_Ioc {α : Type u} [preorder α] {a b : α} :
(set.Ioc a b).nonempty a < b
@[simp]
theorem set.nonempty_Ici {α : Type u} [preorder α] {a : α} :
@[simp]
theorem set.nonempty_Iic {α : Type u} [preorder α] {a : α} :
@[simp]
theorem set.nonempty_Ioo {α : Type u} [preorder α] {a b : α} [densely_ordered α] :
(set.Ioo a b).nonempty a < b
@[simp]
theorem set.nonempty_Ioi {α : Type u} [preorder α] {a : α} [no_max_order α] :
@[simp]
theorem set.nonempty_Iio {α : Type u} [preorder α] {a : α} [no_min_order α] :
theorem set.nonempty_Icc_subtype {α : Type u} [preorder α] {a b : α} (h : a b) :
theorem set.nonempty_Ico_subtype {α : Type u} [preorder α] {a b : α} (h : a < b) :
theorem set.nonempty_Ioc_subtype {α : Type u} [preorder α] {a b : α} (h : a < b) :
@[protected, instance]
def set.nonempty_Ici_subtype {α : Type u} [preorder α] {a : α} :

An interval Ici a is nonempty.

@[protected, instance]
def set.nonempty_Iic_subtype {α : Type u} [preorder α] {a : α} :

An interval Iic a is nonempty.

theorem set.nonempty_Ioo_subtype {α : Type u} [preorder α] {a b : α} [densely_ordered α] (h : a < b) :
@[protected, instance]
def set.nonempty_Ioi_subtype {α : Type u} [preorder α] {a : α} [no_max_order α] :

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

@[protected, instance]
def set.nonempty_Iio_subtype {α : Type u} [preorder α] {a : α} [no_min_order α] :

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

@[simp]
theorem set.Icc_eq_empty {α : Type u} [preorder α] {a b : α} (h : ¬a b) :
@[simp]
theorem set.Ico_eq_empty {α : Type u} [preorder α] {a b : α} (h : ¬a < b) :
@[simp]
theorem set.Ioc_eq_empty {α : Type u} [preorder α] {a b : α} (h : ¬a < b) :
@[simp]
theorem set.Ioo_eq_empty {α : Type u} [preorder α] {a b : α} (h : ¬a < b) :
@[simp]
theorem set.Icc_eq_empty_of_lt {α : Type u} [preorder α] {a b : α} (h : b < a) :
@[simp]
theorem set.Ico_eq_empty_of_le {α : Type u} [preorder α] {a b : α} (h : b a) :
@[simp]
theorem set.Ioc_eq_empty_of_le {α : Type u} [preorder α] {a b : α} (h : b a) :
@[simp]
theorem set.Ioo_eq_empty_of_le {α : Type u} [preorder α] {a b : α} (h : b a) :
@[simp]
theorem set.Ico_self {α : Type u} [preorder α] (a : α) :
@[simp]
theorem set.Ioc_self {α : Type u} [preorder α] (a : α) :
@[simp]
theorem set.Ioo_self {α : Type u} [preorder α] (a : α) :
theorem set.Ici_subset_Ici {α : Type u} [preorder α] {a b : α} :
theorem set.Iic_subset_Iic {α : Type u} [preorder α] {a b : α} :
theorem set.Ici_subset_Ioi {α : Type u} [preorder α] {a b : α} :
theorem set.Iic_subset_Iio {α : Type u} [preorder α] {a b : α} :
theorem set.Ioo_subset_Ioo {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₂ a₁) (h₂ : b₁ b₂) :
set.Ioo a₁ b₁ set.Ioo a₂ b₂
theorem set.Ioo_subset_Ioo_left {α : Type u} [preorder α] {a₁ a₂ b : α} (h : a₁ a₂) :
set.Ioo a₂ b set.Ioo a₁ b
theorem set.Ioo_subset_Ioo_right {α : Type u} [preorder α] {a b₁ b₂ : α} (h : b₁ b₂) :
set.Ioo a b₁ set.Ioo a b₂
theorem set.Ico_subset_Ico {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₂ a₁) (h₂ : b₁ b₂) :
set.Ico a₁ b₁ set.Ico a₂ b₂
theorem set.Ico_subset_Ico_left {α : Type u} [preorder α] {a₁ a₂ b : α} (h : a₁ a₂) :
set.Ico a₂ b set.Ico a₁ b
theorem set.Ico_subset_Ico_right {α : Type u} [preorder α] {a b₁ b₂ : α} (h : b₁ b₂) :
set.Ico a b₁ set.Ico a b₂
theorem set.Icc_subset_Icc {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₂ a₁) (h₂ : b₁ b₂) :
set.Icc a₁ b₁ set.Icc a₂ b₂
theorem set.Icc_subset_Icc_left {α : Type u} [preorder α] {a₁ a₂ b : α} (h : a₁ a₂) :
set.Icc a₂ b set.Icc a₁ b
theorem set.Icc_subset_Icc_right {α : Type u} [preorder α] {a b₁ b₂ : α} (h : b₁ b₂) :
set.Icc a b₁ set.Icc a b₂
theorem set.Icc_subset_Ioo {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (ha : a₂ < a₁) (hb : b₁ < b₂) :
set.Icc a₁ b₁ set.Ioo a₂ b₂
theorem set.Icc_subset_Ici_self {α : Type u} [preorder α] {a b : α} :
theorem set.Icc_subset_Iic_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioc_subset_Iic_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioc_subset_Ioc {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₂ a₁) (h₂ : b₁ b₂) :
set.Ioc a₁ b₁ set.Ioc a₂ b₂
theorem set.Ioc_subset_Ioc_left {α : Type u} [preorder α] {a₁ a₂ b : α} (h : a₁ a₂) :
set.Ioc a₂ b set.Ioc a₁ b
theorem set.Ioc_subset_Ioc_right {α : Type u} [preorder α] {a b₁ b₂ : α} (h : b₁ b₂) :
set.Ioc a b₁ set.Ioc a b₂
theorem set.Ico_subset_Ioo_left {α : Type u} [preorder α] {a₁ a₂ b : α} (h₁ : a₁ < a₂) :
set.Ico a₂ b set.Ioo a₁ b
theorem set.Ioc_subset_Ioo_right {α : Type u} [preorder α] {a b₁ b₂ : α} (h : b₁ < b₂) :
set.Ioc a b₁ set.Ioo a b₂
theorem set.Icc_subset_Ico_right {α : Type u} [preorder α] {a b₁ b₂ : α} (h₁ : b₁ < b₂) :
set.Icc a b₁ set.Ico a b₂
theorem set.Ioo_subset_Ico_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioo_subset_Ioc_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ico_subset_Icc_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioc_subset_Icc_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioo_subset_Icc_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ico_subset_Iio_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioo_subset_Iio_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioc_subset_Ioi_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioo_subset_Ioi_self {α : Type u} [preorder α] {a b : α} :
theorem set.Ioi_subset_Ici_self {α : Type u} [preorder α] {a : α} :
theorem set.Iio_subset_Iic_self {α : Type u} [preorder α] {a : α} :
theorem set.Ico_subset_Ici_self {α : Type u} [preorder α] {a b : α} :
theorem set.Icc_subset_Icc_iff {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Icc a₂ b₂ a₂ a₁ b₁ b₂
theorem set.Icc_subset_Ioo_iff {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Ioo a₂ b₂ a₂ < a₁ b₁ < b₂
theorem set.Icc_subset_Ico_iff {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Ico a₂ b₂ a₂ a₁ b₁ < b₂
theorem set.Icc_subset_Ioc_iff {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Ioc a₂ b₂ a₂ < a₁ b₁ b₂
theorem set.Icc_subset_Iio_iff {α : Type u} [preorder α] {a₁ b₁ b₂ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Iio b₂ b₁ < b₂
theorem set.Icc_subset_Ioi_iff {α : Type u} [preorder α] {a₁ a₂ b₁ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Ioi a₂ a₂ < a₁
theorem set.Icc_subset_Iic_iff {α : Type u} [preorder α] {a₁ b₁ b₂ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Iic b₂ b₁ b₂
theorem set.Icc_subset_Ici_iff {α : Type u} [preorder α] {a₁ a₂ b₁ : α} (h₁ : a₁ b₁) :
set.Icc a₁ b₁ set.Ici a₂ a₂ a₁
theorem set.Icc_ssubset_Icc_left {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (hI : a₂ b₂) (ha : a₂ < a₁) (hb : b₁ b₂) :
set.Icc a₁ b₁ set.Icc a₂ b₂
theorem set.Icc_ssubset_Icc_right {α : Type u} [preorder α] {a₁ a₂ b₁ b₂ : α} (hI : a₂ b₂) (ha : a₂ a₁) (hb : b₁ < b₂) :
set.Icc a₁ b₁ set.Icc a₂ b₂
theorem set.Ioi_subset_Ioi {α : Type u} [preorder α] {a b : α} (h : a 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.Ioi_subset_Ici {α : Type u} [preorder α] {a b : α} (h : a 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_subset_Iio {α : Type u} [preorder α] {a b : α} (h : a 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.Iio_subset_Iic {α : Type u} [preorder α] {a b : α} (h : a 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.Ici_inter_Iic {α : Type u} [preorder α] {a b : α} :
theorem set.Ici_inter_Iio {α : Type u} [preorder α] {a b : α} :
theorem set.Ioi_inter_Iic {α : Type u} [preorder α] {a b : α} :
theorem set.Ioi_inter_Iio {α : Type u} [preorder α] {a b : α} :
theorem set.Iic_inter_Ici {α : Type u} [preorder α] {a b : α} :
theorem set.Iio_inter_Ici {α : Type u} [preorder α] {a b : α} :
theorem set.Iic_inter_Ioi {α : Type u} [preorder α] {a b : α} :
theorem set.Iio_inter_Ioi {α : Type u} [preorder α] {a b : α} :
theorem set.mem_Icc_of_Ioo {α : Type u} [preorder α] {a b x : α} (h : x set.Ioo a b) :
x set.Icc a b
theorem set.mem_Ico_of_Ioo {α : Type u} [preorder α] {a b x : α} (h : x set.Ioo a b) :
x set.Ico a b
theorem set.mem_Ioc_of_Ioo {α : Type u} [preorder α] {a b x : α} (h : x set.Ioo a b) :
x set.Ioc a b
theorem set.mem_Icc_of_Ico {α : Type u} [preorder α] {a b x : α} (h : x set.Ico a b) :
x set.Icc a b
theorem set.mem_Icc_of_Ioc {α : Type u} [preorder α] {a b x : α} (h : x set.Ioc a b) :
x set.Icc a b
theorem set.mem_Ici_of_Ioi {α : Type u} [preorder α] {a x : α} (h : x set.Ioi a) :
theorem set.mem_Iic_of_Iio {α : Type u} [preorder α] {a x : α} (h : x set.Iio a) :
theorem set.Icc_eq_empty_iff {α : Type u} [preorder α] {a b : α} :
theorem set.Ico_eq_empty_iff {α : Type u} [preorder α] {a b : α} :
set.Ico a b = ¬a < b
theorem set.Ioc_eq_empty_iff {α : Type u} [preorder α] {a b : α} :
set.Ioc a b = ¬a < b
theorem set.Ioo_eq_empty_iff {α : Type u} [preorder α] {a b : α} [densely_ordered α] :
set.Ioo a b = ¬a < b
theorem is_top.Iic_eq {α : Type u} [preorder α] {a : α} (h : is_top a) :
theorem is_bot.Ici_eq {α : Type u} [preorder α] {a : α} (h : is_bot a) :
theorem is_max.Ioi_eq {α : Type u} [preorder α] {a : α} (h : is_max a) :
theorem is_min.Iio_eq {α : Type u} [preorder α] {a : α} (h : is_min a) :
theorem set.Iic_inter_Ioc_of_le {α : Type u} [preorder α] {a b c : α} (h : a c) :
@[simp]
theorem set.Icc_self {α : Type u} [partial_order α] (a : α) :
set.Icc a a = {a}
@[simp]
theorem set.Icc_eq_singleton_iff {α : Type u} [partial_order α] {a b c : α} :
set.Icc a b = {c} a = c b = c
@[simp]
theorem set.Icc_diff_left {α : Type u} [partial_order α] {a b : α} :
set.Icc a b \ {a} = set.Ioc a b
@[simp]
theorem set.Icc_diff_right {α : Type u} [partial_order α] {a b : α} :
set.Icc a b \ {b} = set.Ico a b
@[simp]
theorem set.Ico_diff_left {α : Type u} [partial_order α] {a b : α} :
set.Ico a b \ {a} = set.Ioo a b
@[simp]
theorem set.Ioc_diff_right {α : Type u} [partial_order α] {a b : α} :
set.Ioc a b \ {b} = set.Ioo a b
@[simp]
theorem set.Icc_diff_both {α : Type u} [partial_order α] {a b : α} :
set.Icc a b \ {a, b} = set.Ioo a b
@[simp]
theorem set.Ici_diff_left {α : Type u} [partial_order α] {a : α} :
set.Ici a \ {a} = set.Ioi a
@[simp]
theorem set.Iic_diff_right {α : Type u} [partial_order α] {a : α} :
set.Iic a \ {a} = set.Iio a
@[simp]
theorem set.Ico_diff_Ioo_same {α : Type u} [partial_order α] {a b : α} (h : a < b) :
set.Ico a b \ set.Ioo a b = {a}
@[simp]
theorem set.Ioc_diff_Ioo_same {α : Type u} [partial_order α] {a b : α} (h : a < b) :
set.Ioc a b \ set.Ioo a b = {b}
@[simp]
theorem set.Icc_diff_Ico_same {α : Type u} [partial_order α] {a b : α} (h : a b) :
set.Icc a b \ set.Ico a b = {b}
@[simp]
theorem set.Icc_diff_Ioc_same {α : Type u} [partial_order α] {a b : α} (h : a b) :
set.Icc a b \ set.Ioc a b = {a}
@[simp]
theorem set.Icc_diff_Ioo_same {α : Type u} [partial_order α] {a b : α} (h : a b) :
set.Icc a b \ set.Ioo a b = {a, b}
@[simp]
theorem set.Ici_diff_Ioi_same {α : Type u} [partial_order α] {a : α} :
set.Ici a \ set.Ioi a = {a}
@[simp]
theorem set.Iic_diff_Iio_same {α : Type u} [partial_order α] {a : α} :
set.Iic a \ set.Iio a = {a}
@[simp]
theorem set.Ioi_union_left {α : Type u} [partial_order α] {a : α} :
@[simp]
theorem set.Iio_union_right {α : Type u} [partial_order α] {a : α} :
theorem set.Ioo_union_left {α : Type u} [partial_order α] {a b : α} (hab : a < b) :
set.Ioo a b {a} = set.Ico a b
theorem set.Ioo_union_right {α : Type u} [partial_order α] {a b : α} (hab : a < b) :
set.Ioo a b {b} = set.Ioc a b
theorem set.Ioc_union_left {α : Type u} [partial_order α] {a b : α} (hab : a b) :
set.Ioc a b {a} = set.Icc a b
theorem set.Ico_union_right {α : Type u} [partial_order α] {a b : α} (hab : a b) :
set.Ico a b {b} = set.Icc a b
@[simp]
theorem set.Ico_insert_right {α : Type u} [partial_order α] {a b : α} (h : a b) :
insert b (set.Ico a b) = set.Icc a b
@[simp]
theorem set.Ioc_insert_left {α : Type u} [partial_order α] {a b : α} (h : a b) :
insert a (set.Ioc a b) = set.Icc a b
@[simp]
theorem set.Ioo_insert_left {α : Type u} [partial_order α] {a b : α} (h : a < b) :
insert a (set.Ioo a b) = set.Ico a b
@[simp]
theorem set.Ioo_insert_right {α : Type u} [partial_order α] {a b : α} (h : a < b) :
insert b (set.Ioo a b) = set.Ioc a b
@[simp]
theorem set.Iio_insert {α : Type u} [partial_order α] {a : α} :
@[simp]
theorem set.Ioi_insert {α : Type u} [partial_order α] {a : α} :
theorem set.mem_Ici_Ioi_of_subset_of_subset {α : Type u} [partial_order α] {a : α} {s : set α} (ho : set.Ioi a s) (hc : s set.Ici a) :
theorem set.mem_Iic_Iio_of_subset_of_subset {α : Type u} [partial_order α] {a : α} {s : set α} (ho : set.Iio a s) (hc : s set.Iic a) :
theorem set.mem_Icc_Ico_Ioc_Ioo_of_subset_of_subset {α : Type u} [partial_order α] {a b : α} {s : set α} (ho : set.Ioo a b s) (hc : s set.Icc a b) :
s {set.Icc a b, set.Ico a b, set.Ioc a b, set.Ioo a b}
theorem set.eq_left_or_mem_Ioo_of_mem_Ico {α : Type u} [partial_order α] {a b x : α} (hmem : x set.Ico a b) :
x = a x set.Ioo a b
theorem set.eq_right_or_mem_Ioo_of_mem_Ioc {α : Type u} [partial_order α] {a b x : α} (hmem : x set.Ioc a b) :
x = b x set.Ioo a b
theorem set.eq_endpoints_or_mem_Ioo_of_mem_Icc {α : Type u} [partial_order α] {a b x : α} (hmem : x set.Icc a b) :
x = a x = b x set.Ioo a b
theorem is_max.Ici_eq {α : Type u} [partial_order α] {a : α} (h : is_max a) :
set.Ici a = {a}
theorem is_min.Iic_eq {α : Type u} [partial_order α] {a : α} (h : is_min a) :
set.Iic a = {a}
@[simp]
theorem set.Ici_top {α : Type u} [partial_order α] [order_top α] :
@[simp]
theorem set.Ioi_top {α : Type u} [preorder α] [order_top α] :
@[simp]
theorem set.Iic_top {α : Type u} [preorder α] [order_top α] :
@[simp]
theorem set.Icc_top {α : Type u} [preorder α] [order_top α] {a : α} :
@[simp]
theorem set.Ioc_top {α : Type u} [preorder α] [order_top α] {a : α} :
@[simp]
theorem set.Iic_bot {α : Type u} [partial_order α] [order_bot α] :
@[simp]
theorem set.Iio_bot {α : Type u} [preorder α] [order_bot α] :
@[simp]
theorem set.Ici_bot {α : Type u} [preorder α] [order_bot α] :
@[simp]
theorem set.Icc_bot {α : Type u} [preorder α] [order_bot α] {a : α} :
@[simp]
theorem set.Ico_bot {α : Type u} [preorder α] [order_bot α] {a : α} :
theorem set.not_mem_Ici {α : Type u} [linear_order α] {a c : α} :
c set.Ici a c < a
theorem set.not_mem_Iic {α : Type u} [linear_order α] {b c : α} :
c set.Iic b b < c
theorem set.not_mem_Icc_of_lt {α : Type u} [linear_order α] {a b c : α} (ha : c < a) :
c set.Icc a b
theorem set.not_mem_Icc_of_gt {α : Type u} [linear_order α] {a b c : α} (hb : b < c) :
c set.Icc a b
theorem set.not_mem_Ico_of_lt {α : Type u} [linear_order α] {a b c : α} (ha : c < a) :
c set.Ico a b
theorem set.not_mem_Ioc_of_gt {α : Type u} [linear_order α] {a b c : α} (hb : b < c) :
c set.Ioc a b
theorem set.not_mem_Ioi {α : Type u} [linear_order α] {a c : α} :
c set.Ioi a c a
theorem set.not_mem_Iio {α : Type u} [linear_order α] {b c : α} :
c set.Iio b b c
theorem set.not_mem_Ioc_of_le {α : Type u} [linear_order α] {a b c : α} (ha : c a) :
c set.Ioc a b
theorem set.not_mem_Ico_of_ge {α : Type u} [linear_order α] {a b c : α} (hb : b c) :
c set.Ico a b
theorem set.not_mem_Ioo_of_le {α : Type u} [linear_order α] {a b c : α} (ha : c a) :
c set.Ioo a b
theorem set.not_mem_Ioo_of_ge {α : Type u} [linear_order α] {a b c : α} (hb : b c) :
c set.Ioo a b
@[simp]
theorem set.compl_Iic {α : Type u} [linear_order α] {a : α} :
@[simp]
theorem set.compl_Ici {α : Type u} [linear_order α] {a : α} :
@[simp]
theorem set.compl_Iio {α : Type u} [linear_order α] {a : α} :
@[simp]
theorem set.compl_Ioi {α : Type u} [linear_order α] {a : α} :
@[simp]
theorem set.Ici_diff_Ici {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ici_diff_Ioi {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ioi_diff_Ioi {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ioi_diff_Ici {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iic_diff_Iic {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iio_diff_Iic {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iic_diff_Iio {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iio_diff_Iio {α : Type u} [linear_order α] {a b : α} :
theorem set.Ico_subset_Ico_iff {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₁ < b₁) :
set.Ico a₁ b₁ set.Ico a₂ b₂ a₂ a₁ b₁ b₂
theorem set.Ioc_subset_Ioc_iff {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h₁ : a₁ < b₁) :
set.Ioc a₁ b₁ set.Ioc a₂ b₂ b₁ b₂ a₂ a₁
theorem set.Ioo_subset_Ioo_iff {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} [densely_ordered α] (h₁ : a₁ < b₁) :
set.Ioo a₁ b₁ set.Ioo a₂ b₂ a₂ a₁ b₁ b₂
theorem set.Ico_eq_Ico_iff {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h : a₁ < b₁ a₂ < b₂) :
set.Ico a₁ b₁ = set.Ico a₂ b₂ a₁ = a₂ b₁ = b₂
@[simp]
theorem set.Ioi_subset_Ioi_iff {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ioi_subset_Ici_iff {α : Type u} [linear_order α] {a b : α} [densely_ordered α] :
@[simp]
theorem set.Iio_subset_Iio_iff {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iio_subset_Iic_iff {α : Type u} [linear_order α] {a b : α} [densely_ordered α] :

Unions of adjacent intervals #

Two infinite intervals #

@[simp]
theorem set.Iic_union_Ici {α : Type u} [linear_order α] {a : α} :
@[simp]
theorem set.Iio_union_Ici {α : Type u} [linear_order α] {a : α} :
@[simp]
theorem set.Iic_union_Ioi {α : Type u} [linear_order α] {a : α} :

A finite and an infinite interval #

theorem set.Ioo_union_Ioi' {α : Type u} [linear_order α] {a b c : α} (h₁ : c < b) :
theorem set.Ioo_union_Ioi {α : Type u} [linear_order α] {a b c : α} (h : c < max a b) :
theorem set.Ioi_subset_Ioo_union_Ici {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ioo_union_Ici_eq_Ioi {α : Type u} [linear_order α] {a b : α} (h : a < b) :
theorem set.Ici_subset_Ico_union_Ici {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ico_union_Ici_eq_Ici {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Ico_union_Ici' {α : Type u} [linear_order α] {a b c : α} (h₁ : c b) :
theorem set.Ico_union_Ici {α : Type u} [linear_order α] {a b c : α} (h : c max a b) :
theorem set.Ioi_subset_Ioc_union_Ioi {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ioc_union_Ioi_eq_Ioi {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Ioc_union_Ioi' {α : Type u} [linear_order α] {a b c : α} (h₁ : c b) :
theorem set.Ioc_union_Ioi {α : Type u} [linear_order α] {a b c : α} (h : c max a b) :
theorem set.Ici_subset_Icc_union_Ioi {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Icc_union_Ioi_eq_Ici {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Ioi_subset_Ioc_union_Ici {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Ioc_union_Ici_eq_Ioi {α : Type u} [linear_order α] {a b : α} (h : a < b) :
theorem set.Ici_subset_Icc_union_Ici {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Icc_union_Ici_eq_Ici {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Icc_union_Ici' {α : Type u} [linear_order α] {a b c : α} (h₁ : c b) :
theorem set.Icc_union_Ici {α : Type u} [linear_order α] {a b c : α} (h : c max a b) :

An infinite and a finite interval #

theorem set.Iic_subset_Iio_union_Icc {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iio_union_Icc_eq_Iic {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Iio_subset_Iio_union_Ico {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iio_union_Ico_eq_Iio {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Iio_union_Ico' {α : Type u} [linear_order α] {b c d : α} (h₁ : c b) :
theorem set.Iio_union_Ico {α : Type u} [linear_order α] {b c d : α} (h : min c d b) :
theorem set.Iic_subset_Iic_union_Ioc {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iic_union_Ioc_eq_Iic {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Iic_union_Ioc' {α : Type u} [linear_order α] {b c d : α} (h₁ : c < b) :
theorem set.Iic_union_Ioc {α : Type u} [linear_order α] {b c d : α} (h : min c d < b) :
theorem set.Iio_subset_Iic_union_Ioo {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iic_union_Ioo_eq_Iio {α : Type u} [linear_order α] {a b : α} (h : a < b) :
theorem set.Iio_union_Ioo' {α : Type u} [linear_order α] {b c d : α} (h₁ : c < b) :
theorem set.Iio_union_Ioo {α : Type u} [linear_order α] {b c d : α} (h : min c d < b) :
theorem set.Iic_subset_Iic_union_Icc {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iic_union_Icc_eq_Iic {α : Type u} [linear_order α] {a b : α} (h : a b) :
theorem set.Iic_union_Icc' {α : Type u} [linear_order α] {b c d : α} (h₁ : c b) :
theorem set.Iic_union_Icc {α : Type u} [linear_order α] {b c d : α} (h : min c d b) :
theorem set.Iio_subset_Iic_union_Ico {α : Type u} [linear_order α] {a b : α} :
@[simp]
theorem set.Iic_union_Ico_eq_Iio {α : Type u} [linear_order α] {a b : α} (h : a < b) :

Two finite intervals, I?o and Ic? #

theorem set.Ioo_subset_Ioo_union_Ico {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ioo_union_Ico_eq_Ioo {α : Type u} [linear_order α] {a b c : α} (h₁ : a < b) (h₂ : b c) :
theorem set.Ico_subset_Ico_union_Ico {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ico_union_Ico_eq_Ico {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b c) :
theorem set.Ico_union_Ico' {α : Type u} [linear_order α] {a b c d : α} (h₁ : c b) (h₂ : a d) :
set.Ico a b set.Ico c d = set.Ico (min a c) (max b d)
theorem set.Ico_union_Ico {α : Type u} [linear_order α] {a b c d : α} (h₁ : min a b max c d) (h₂ : min c d max a b) :
set.Ico a b set.Ico c d = set.Ico (min a c) (max b d)
theorem set.Icc_subset_Ico_union_Icc {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ico_union_Icc_eq_Icc {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b c) :
theorem set.Ioc_subset_Ioo_union_Icc {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ioo_union_Icc_eq_Ioc {α : Type u} [linear_order α] {a b c : α} (h₁ : a < b) (h₂ : b c) :

Two finite intervals, I?c and Io? #

theorem set.Ioo_subset_Ioc_union_Ioo {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ioc_union_Ioo_eq_Ioo {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b < c) :
theorem set.Ico_subset_Icc_union_Ioo {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Icc_union_Ioo_eq_Ico {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b < c) :
theorem set.Icc_subset_Icc_union_Ioc {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Icc_union_Ioc_eq_Icc {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b c) :
theorem set.Ioc_subset_Ioc_union_Ioc {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ioc_union_Ioc_eq_Ioc {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b c) :
theorem set.Ioc_union_Ioc' {α : Type u} [linear_order α] {a b c d : α} (h₁ : c b) (h₂ : a d) :
set.Ioc a b set.Ioc c d = set.Ioc (min a c) (max b d)
theorem set.Ioc_union_Ioc {α : Type u} [linear_order α] {a b c d : α} (h₁ : min a b max c d) (h₂ : min c d max a b) :
set.Ioc a b set.Ioc c d = set.Ioc (min a c) (max b d)

Two finite intervals with a common point #

theorem set.Ioo_subset_Ioc_union_Ico {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ioc_union_Ico_eq_Ioo {α : Type u} [linear_order α] {a b c : α} (h₁ : a < b) (h₂ : b < c) :
theorem set.Ico_subset_Icc_union_Ico {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Icc_union_Ico_eq_Ico {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b < c) :
theorem set.Icc_subset_Icc_union_Icc {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Icc_union_Icc_eq_Icc {α : Type u} [linear_order α] {a b c : α} (h₁ : a b) (h₂ : b c) :
theorem set.Icc_union_Icc' {α : Type u} [linear_order α] {a b c d : α} (h₁ : c b) (h₂ : a d) :
set.Icc a b set.Icc c d = set.Icc (min a c) (max b d)
theorem set.Icc_union_Icc {α : Type u} [linear_order α] {a b c d : α} (h₁ : min a b < max c d) (h₂ : 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 {α : Type u} [linear_order α] {a b c : α} :
@[simp]
theorem set.Ioc_union_Icc_eq_Ioc {α : Type u} [linear_order α] {a b c : α} (h₁ : a < b) (h₂ : b c) :
theorem set.Ioo_union_Ioo' {α : Type u} [linear_order α] {a b c d : α} (h₁ : c < b) (h₂ : a < d) :
set.Ioo a b set.Ioo c d = set.Ioo (min a c) (max b d)
theorem set.Ioo_union_Ioo {α : Type u} [linear_order α] {a b c d : α} (h₁ : min a b < max c d) (h₂ : min c d < max a b) :
set.Ioo a b set.Ioo c d = set.Ioo (min a c) (max b d)
@[simp]
theorem set.Iic_inter_Iic {α : Type u} [semilattice_inf α] {a b : α} :
@[simp]
theorem set.Iio_inter_Iio {α : Type u} [semilattice_inf α] [is_total α has_le.le] {a b : α} :
@[simp]
theorem set.Ioc_inter_Iic {α : Type u} [semilattice_inf α] (a b c : α) :
set.Ioc a b set.Iic c = set.Ioc a (b c)
@[simp]
theorem set.Ici_inter_Ici {α : Type u} [semilattice_sup α] {a b : α} :
@[simp]
theorem set.Ico_inter_Ici {α : Type u} [semilattice_sup α] (a b c : α) :
set.Ico a b set.Ici c = set.Ico (a c) b
@[simp]
theorem set.Ioi_inter_Ioi {α : Type u} [semilattice_sup α] [is_total α has_le.le] {a b : α} :
@[simp]
theorem set.Ioc_inter_Ioi {α : Type u} [semilattice_sup α] [is_total α has_le.le] {a b c : α} :
set.Ioc a b set.Ioi c = set.Ioc (a c) b
theorem set.Icc_inter_Icc {α : Type u} [lattice α] {a₁ a₂ b₁ b₂ : α} :
set.Icc a₁ b₁ set.Icc a₂ b₂ = set.Icc (a₁ a₂) (b₁ b₂)
@[simp]
theorem set.Icc_inter_Icc_eq_singleton {α : Type u} [lattice α] {a b c : α} (hab : a b) (hbc : b c) :
set.Icc a b set.Icc b c = {b}
theorem set.Ico_inter_Ico {α : Type u} [lattice α] [ht : is_total α has_le.le] {a₁ a₂ b₁ b₂ : α} :
set.Ico a₁ b₁ set.Ico a₂ b₂ = set.Ico (a₁ a₂) (b₁ b₂)
theorem set.Ioc_inter_Ioc {α : Type u} [lattice α] [ht : is_total α has_le.le] {a₁ a₂ b₁ b₂ : α} :
set.Ioc a₁ b₁ set.Ioc a₂ b₂ = set.Ioc (a₁ a₂) (b₁ b₂)
theorem set.Ioo_inter_Ioo {α : Type u} [lattice α] [ht : is_total α has_le.le] {a₁ a₂ b₁ b₂ : α} :
set.Ioo a₁ b₁ set.Ioo a₂ b₂ = set.Ioo (a₁ a₂) (b₁ b₂)
theorem set.Icc_bot_top {α : Type u_1} [partial_order α] [bounded_order α] :
theorem set.Ioc_inter_Ioo_of_left_lt {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h : b₁ < b₂) :
set.Ioc a₁ b₁ set.Ioo a₂ b₂ = set.Ioc (max a₁ a₂) b₁
theorem set.Ioc_inter_Ioo_of_right_le {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h : b₂ b₁) :
set.Ioc a₁ b₁ set.Ioo a₂ b₂ = set.Ioo (max a₁ a₂) b₂
theorem set.Ioo_inter_Ioc_of_left_le {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h : b₁ b₂) :
set.Ioo a₁ b₁ set.Ioc a₂ b₂ = set.Ioo (max a₁ a₂) b₁
theorem set.Ioo_inter_Ioc_of_right_lt {α : Type u} [linear_order α] {a₁ a₂ b₁ b₂ : α} (h : b₂ < b₁) :
set.Ioo a₁ b₁ set.Ioc a₂ b₂ = set.Ioc (max a₁ a₂) b₂
@[simp]
theorem set.Ico_diff_Iio {α : Type u} [linear_order α] {a b c : α} :
set.Ico a b \ set.Iio c = set.Ico (max a c) b
@[simp]
theorem set.Ioc_diff_Ioi {α : Type u} [linear_order α] {a b c : α} :
set.Ioc a b \ set.Ioi c = set.Ioc a (min b c)
@[simp]
theorem set.Ico_inter_Iio {α : Type u} [linear_order α] {a b c : α} :
set.Ico a b set.Iio c = set.Ico a (min b c)
@[simp]
theorem set.Ioc_diff_Iic {α : Type u} [linear_order α] {a b c : α} :
set.Ioc a b \ set.Iic c = set.Ioc (max a c) b
@[simp]
theorem set.Ioc_union_Ioc_right {α : Type u} [linear_order α] {a b c : α} :
set.Ioc a b set.Ioc a c = set.Ioc a (max b c)
@[simp]
theorem set.Ioc_union_Ioc_left {α : Type u} [linear_order α] {a b c : α} :
set.Ioc a c set.Ioc b c = set.Ioc (min a b) c
@[simp]
theorem set.Ioc_union_Ioc_symm {α : Type u} [linear_order α] {a b : α} :
set.Ioc a b set.Ioc b a = set.Ioc (min a b) (max a b)
@[simp]
theorem set.Ioc_union_Ioc_union_Ioc_cycle {α : Type u} [linear_order α] {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))

Closed intervals in α × β #

@[simp]
theorem set.Iic_prod_Iic {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (a : α) (b : β) :
@[simp]
theorem set.Ici_prod_Ici {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (a : α) (b : β) :
theorem set.Ici_prod_eq {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (a : α × β) :
theorem set.Iic_prod_eq {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (a : α × β) :
@[simp]
theorem set.Icc_prod_Icc {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (a₁ a₂ : α) (b₁ b₂ : β) :
set.Icc a₁ a₂ ×ˢ set.Icc b₁ b₂ = set.Icc (a₁, b₁) (a₂, b₂)
theorem set.Icc_prod_eq {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (a b : α × β) :

Lemmas about membership of arithmetic operations #

inv_mem_Ixx_iff, sub_mem_Ixx_iff

theorem set.neg_mem_Icc_iff {α : Type u_1} [ordered_add_comm_group α] {a c d : α} :
-a set.Icc c d a set.Icc (-d) (-c)
theorem set.inv_mem_Icc_iff {α : Type u_1} [ordered_comm_group α] {a c d : α} :
theorem set.neg_mem_Ico_iff {α : Type u_1} [ordered_add_comm_group α] {a c d : α} :
-a set.Ico c d a set.Ioc (-d) (-c)
theorem set.inv_mem_Ico_iff {α : Type u_1} [ordered_comm_group α] {a c d : α} :
theorem set.inv_mem_Ioc_iff {α : Type u_1} [ordered_comm_group α] {a c d : α} :
theorem set.neg_mem_Ioc_iff {α : Type u_1} [ordered_add_comm_group α] {a c d : α} :
-a set.Ioc c d a set.Ico (-d) (-c)
theorem set.inv_mem_Ioo_iff {α : Type u_1} [ordered_comm_group α] {a c d : α} :
theorem set.neg_mem_Ioo_iff {α : Type u_1} [ordered_add_comm_group α] {a c d : α} :
-a set.Ioo c d a set.Ioo (-d) (-c)

add_mem_Ixx_iff_left

theorem set.add_mem_Icc_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Icc c d a set.Icc (c - b) (d - b)
theorem set.add_mem_Ico_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Ico c d a set.Ico (c - b) (d - b)
theorem set.add_mem_Ioc_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Ioc c d a set.Ioc (c - b) (d - b)
theorem set.add_mem_Ioo_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Ioo c d a set.Ioo (c - b) (d - b)

add_mem_Ixx_iff_right

theorem set.add_mem_Icc_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Icc c d b set.Icc (c - a) (d - a)
theorem set.add_mem_Ico_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Ico c d b set.Ico (c - a) (d - a)
theorem set.add_mem_Ioc_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Ioc c d b set.Ioc (c - a) (d - a)
theorem set.add_mem_Ioo_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a + b set.Ioo c d b set.Ioo (c - a) (d - a)

sub_mem_Ixx_iff_left

theorem set.sub_mem_Icc_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Icc c d a set.Icc (c + b) (d + b)
theorem set.sub_mem_Ico_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Ico c d a set.Ico (c + b) (d + b)
theorem set.sub_mem_Ioc_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Ioc c d a set.Ioc (c + b) (d + b)
theorem set.sub_mem_Ioo_iff_left {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Ioo c d a set.Ioo (c + b) (d + b)

sub_mem_Ixx_iff_right

theorem set.sub_mem_Icc_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Icc c d b set.Icc (a - d) (a - c)
theorem set.sub_mem_Ico_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Ico c d b set.Ioc (a - d) (a - c)
theorem set.sub_mem_Ioc_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Ioc c d b set.Ico (a - d) (a - c)
theorem set.sub_mem_Ioo_iff_right {α : Type u_1} [ordered_add_comm_group α] {a b c d : α} :
a - b set.Ioo c d b set.Ioo (a - d) (a - c)
theorem set.mem_Icc_iff_abs_le {R : Type u_1} [linear_ordered_add_comm_group R] {x y z : R} :
|x - y| z y set.Icc (x - z) (x + z)
theorem set.nonempty_Ico_sdiff {α : Type u} [linear_ordered_add_comm_group α] {x dx y dy : α} (h : dy < dx) (hx : 0 < dx) :
nonempty (set.Ico x (x + dx) \ set.Ico y (y + dy))

If we remove a smaller interval from a larger, the result is nonempty

@[simp]
theorem order_iso.preimage_Iic {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (b : β) :
@[simp]
theorem order_iso.preimage_Ici {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (b : β) :
@[simp]
theorem order_iso.preimage_Iio {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (b : β) :
@[simp]
theorem order_iso.preimage_Ioi {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (b : β) :
@[simp]
theorem order_iso.preimage_Icc {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : β) :
e ⁻¹' set.Icc a b = set.Icc ((e.symm) a) ((e.symm) b)
@[simp]
theorem order_iso.preimage_Ico {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : β) :
e ⁻¹' set.Ico a b = set.Ico ((e.symm) a) ((e.symm) b)
@[simp]
theorem order_iso.preimage_Ioc {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : β) :
e ⁻¹' set.Ioc a b = set.Ioc ((e.symm) a) ((e.symm) b)
@[simp]
theorem order_iso.preimage_Ioo {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : β) :
e ⁻¹' set.Ioo a b = set.Ioo ((e.symm) a) ((e.symm) b)
@[simp]
theorem order_iso.image_Iic {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a : α) :
@[simp]
theorem order_iso.image_Ici {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a : α) :
@[simp]
theorem order_iso.image_Iio {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a : α) :
@[simp]
theorem order_iso.image_Ioi {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a : α) :
@[simp]
theorem order_iso.image_Ioo {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : α) :
e '' set.Ioo a b = set.Ioo (e a) (e b)
@[simp]
theorem order_iso.image_Ioc {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : α) :
e '' set.Ioc a b = set.Ioc (e a) (e b)
@[simp]
theorem order_iso.image_Ico {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : α) :
e '' set.Ico a b = set.Ico (e a) (e b)
@[simp]
theorem order_iso.image_Icc {α : Type u_1} {β : Type u_2} [preorder α] [preorder β] (e : α ≃o β) (a b : α) :
e '' set.Icc a b = set.Icc (e a) (e b)
def order_iso.Iic_top {α : Type u_1} [preorder α] [order_top α] :

Order isomorphism between Iic (⊤ : α) and α when α has a top element

Equations
def order_iso.Ici_bot {α : Type u_1} [preorder α] [order_bot α] :

Order isomorphism between Ici (⊥ : α) and α when α has a bottom element

Equations

Lemmas about intervals in dense orders #

@[protected, instance]
def set.Ioo.no_min_order (α : Type u_1) [preorder α] [densely_ordered α] {x y : α} :
@[protected, instance]
def set.Ioc.no_min_order (α : Type u_1) [preorder α] [densely_ordered α] {x y : α} :
@[protected, instance]
def set.Ioi.no_min_order (α : Type u_1) [preorder α] [densely_ordered α] {x : α} :
@[protected, instance]
def set.Ioo.no_max_order (α : Type u_1) [preorder α] [densely_ordered α] {x y : α} :
@[protected, instance]
def set.Ico.no_max_order (α : Type u_1) [preorder α] [densely_ordered α] {x y : α} :
@[protected, instance]
def set.Iio.no_max_order (α : Type u_1) [preorder α] [densely_ordered α] {x : α} :