Documentation

Mathlib.Data.Finset.LocallyFinite

Intervals as finsets #

This file provides basic results about all the Finset.Ixx, which are defined in Order.LocallyFinite.

In addition, it shows that in a locally finite order and < are the transitive closures of, respectively, ⩿ and , which then leads to a characterization of monotone and strictly functions whose domain is a locally finite order. In particular, this file proves:

TODO #

This file was originally only about Finset.Ico a b where a b : ℕ. No care has yet been taken to generalize these lemmas properly and many lemmas about Icc, Ioc, Ioo are missing. In general, what's to do is taking the lemmas in Data.X.Intervals and abstract away the concrete structure.

Complete the API. See https://github.com/leanprover-community/mathlib/pull/14448#discussion_r906109235 for some ideas.

@[simp]
theorem Finset.nonempty_Icc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
@[simp]
theorem Finset.nonempty_Ico {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
@[simp]
theorem Finset.nonempty_Ioc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
@[simp]
theorem Finset.nonempty_Ioo {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} [DenselyOrdered α] :
@[simp]
theorem Finset.Icc_eq_empty_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
@[simp]
theorem Finset.Ico_eq_empty_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
@[simp]
theorem Finset.Ioc_eq_empty_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
@[simp]
theorem Finset.Ioo_eq_empty_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} [DenselyOrdered α] :
theorem Finset.Icc_eq_empty {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
¬a bFinset.Icc a b =

Alias of the reverse direction of Finset.Icc_eq_empty_iff.

theorem Finset.Ico_eq_empty {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
¬a < bFinset.Ico a b =

Alias of the reverse direction of Finset.Ico_eq_empty_iff.

theorem Finset.Ioc_eq_empty {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
¬a < bFinset.Ioc a b =

Alias of the reverse direction of Finset.Ioc_eq_empty_iff.

@[simp]
theorem Finset.Ioo_eq_empty {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : ¬a < b) :
@[simp]
theorem Finset.Icc_eq_empty_of_lt {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : b < a) :
@[simp]
theorem Finset.Ico_eq_empty_of_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : b a) :
@[simp]
theorem Finset.Ioc_eq_empty_of_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : b a) :
@[simp]
theorem Finset.Ioo_eq_empty_of_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : b a) :
theorem Finset.left_mem_Icc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
a Finset.Icc a b a b
theorem Finset.left_mem_Ico {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
a Finset.Ico a b a < b
theorem Finset.right_mem_Icc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
b Finset.Icc a b a b
theorem Finset.right_mem_Ioc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
b Finset.Ioc a b a < b
theorem Finset.left_not_mem_Ioc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.left_not_mem_Ioo {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.right_not_mem_Ico {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.right_not_mem_Ioo {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.Icc_subset_Icc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (ha : a₂ a₁) (hb : b₁ b₂) :
Finset.Icc a₁ b₁ Finset.Icc a₂ b₂
theorem Finset.Ico_subset_Ico {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (ha : a₂ a₁) (hb : b₁ b₂) :
Finset.Ico a₁ b₁ Finset.Ico a₂ b₂
theorem Finset.Ioc_subset_Ioc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (ha : a₂ a₁) (hb : b₁ b₂) :
Finset.Ioc a₁ b₁ Finset.Ioc a₂ b₂
theorem Finset.Ioo_subset_Ioo {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (ha : a₂ a₁) (hb : b₁ b₂) :
Finset.Ioo a₁ b₁ Finset.Ioo a₂ b₂
theorem Finset.Icc_subset_Icc_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b : α} (h : a₁ a₂) :
Finset.Icc a₂ b Finset.Icc a₁ b
theorem Finset.Ico_subset_Ico_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b : α} (h : a₁ a₂) :
Finset.Ico a₂ b Finset.Ico a₁ b
theorem Finset.Ioc_subset_Ioc_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b : α} (h : a₁ a₂) :
Finset.Ioc a₂ b Finset.Ioc a₁ b
theorem Finset.Ioo_subset_Ioo_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b : α} (h : a₁ a₂) :
Finset.Ioo a₂ b Finset.Ioo a₁ b
theorem Finset.Icc_subset_Icc_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b₁ : α} {b₂ : α} (h : b₁ b₂) :
Finset.Icc a b₁ Finset.Icc a b₂
theorem Finset.Ico_subset_Ico_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b₁ : α} {b₂ : α} (h : b₁ b₂) :
Finset.Ico a b₁ Finset.Ico a b₂
theorem Finset.Ioc_subset_Ioc_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b₁ : α} {b₂ : α} (h : b₁ b₂) :
Finset.Ioc a b₁ Finset.Ioc a b₂
theorem Finset.Ioo_subset_Ioo_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b₁ : α} {b₂ : α} (h : b₁ b₂) :
Finset.Ioo a b₁ Finset.Ioo a b₂
theorem Finset.Ico_subset_Ioo_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b : α} (h : a₁ < a₂) :
Finset.Ico a₂ b Finset.Ioo a₁ b
theorem Finset.Ioc_subset_Ioo_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b₁ : α} {b₂ : α} (h : b₁ < b₂) :
Finset.Ioc a b₁ Finset.Ioo a b₂
theorem Finset.Icc_subset_Ico_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b₁ : α} {b₂ : α} (h : b₁ < b₂) :
Finset.Icc a b₁ Finset.Ico a b₂
theorem Finset.Ioo_subset_Ico_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.Ioo_subset_Ioc_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.Ico_subset_Icc_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.Ioc_subset_Icc_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.Ioo_subset_Icc_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} :
theorem Finset.Icc_subset_Icc_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (h₁ : a₁ b₁) :
Finset.Icc a₁ b₁ Finset.Icc a₂ b₂ a₂ a₁ b₁ b₂
theorem Finset.Icc_subset_Ioo_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (h₁ : a₁ b₁) :
Finset.Icc a₁ b₁ Finset.Ioo a₂ b₂ a₂ < a₁ b₁ < b₂
theorem Finset.Icc_subset_Ico_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (h₁ : a₁ b₁) :
Finset.Icc a₁ b₁ Finset.Ico a₂ b₂ a₂ a₁ b₁ < b₂
theorem Finset.Icc_subset_Ioc_iff {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (h₁ : a₁ b₁) :
Finset.Icc a₁ b₁ Finset.Ioc a₂ b₂ a₂ < a₁ b₁ b₂
theorem Finset.Icc_ssubset_Icc_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (hI : a₂ b₂) (ha : a₂ < a₁) (hb : b₁ b₂) :
Finset.Icc a₁ b₁ Finset.Icc a₂ b₂
theorem Finset.Icc_ssubset_Icc_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (hI : a₂ b₂) (ha : a₂ a₁) (hb : b₁ < b₂) :
Finset.Icc a₁ b₁ Finset.Icc a₂ b₂
theorem Finset.Ico_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) :
theorem Finset.Ioc_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) :
theorem Finset.Ioo_self {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) :
def Set.fintypeOfMemBounds {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {s : Set α} [DecidablePred fun x => x s] (ha : a lowerBounds s) (hb : b upperBounds s) :
Fintype s

A set with upper and lower bounds in a locally finite order is a fintype

Equations
Instances For
    theorem BddBelow.finite_of_bddAbove {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {s : Set α} (h₀ : BddBelow s) (h₁ : BddAbove s) :
    theorem Finset.Ico_filter_lt_of_le_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred fun x => x < c] (hca : c a) :
    Finset.filter (fun x => x < c) (Finset.Ico a b) =
    theorem Finset.Ico_filter_lt_of_right_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred fun x => x < c] (hbc : b c) :
    Finset.filter (fun x => x < c) (Finset.Ico a b) = Finset.Ico a b
    theorem Finset.Ico_filter_lt_of_le_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred fun x => x < c] (hcb : c b) :
    Finset.filter (fun x => x < c) (Finset.Ico a b) = Finset.Ico a c
    theorem Finset.Ico_filter_le_of_le_left {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred ((fun x x_1 => x x_1) c)] (hca : c a) :
    Finset.filter ((fun x x_1 => x x_1) c) (Finset.Ico a b) = Finset.Ico a b
    theorem Finset.Ico_filter_le_of_right_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidablePred ((fun x x_1 => x x_1) b)] :
    Finset.filter ((fun x x_1 => x x_1) b) (Finset.Ico a b) =
    theorem Finset.Ico_filter_le_of_left_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred ((fun x x_1 => x x_1) c)] (hac : a c) :
    Finset.filter ((fun x x_1 => x x_1) c) (Finset.Ico a b) = Finset.Ico c b
    theorem Finset.Icc_filter_lt_of_lt_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred fun x => x < c] (h : b < c) :
    Finset.filter (fun x => x < c) (Finset.Icc a b) = Finset.Icc a b
    theorem Finset.Ioc_filter_lt_of_lt_right {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} [DecidablePred fun x => x < c] (h : b < c) :
    Finset.filter (fun x => x < c) (Finset.Ioc a b) = Finset.Ioc a b
    theorem Finset.Iic_filter_lt_of_lt_right {α : Type u_3} [Preorder α] [LocallyFiniteOrderBot α] {a : α} {c : α} [DecidablePred fun x => x < c] (h : a < c) :
    Finset.filter (fun x => x < c) (Finset.Iic a) = Finset.Iic a
    theorem Finset.filter_lt_lt_eq_Ioo {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) (b : α) [Fintype α] [DecidablePred fun j => a < j j < b] :
    Finset.filter (fun j => a < j j < b) Finset.univ = Finset.Ioo a b
    theorem Finset.filter_lt_le_eq_Ioc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) (b : α) [Fintype α] [DecidablePred fun j => a < j j b] :
    Finset.filter (fun j => a < j j b) Finset.univ = Finset.Ioc a b
    theorem Finset.filter_le_lt_eq_Ico {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) (b : α) [Fintype α] [DecidablePred fun j => a j j < b] :
    Finset.filter (fun j => a j j < b) Finset.univ = Finset.Ico a b
    theorem Finset.filter_le_le_eq_Icc {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] (a : α) (b : α) [Fintype α] [DecidablePred fun j => a j j b] :
    Finset.filter (fun j => a j j b) Finset.univ = Finset.Icc a b
    @[simp]
    @[simp]
    theorem BddBelow.finite {α : Type u_2} [Preorder α] [LocallyFiniteOrderTop α] {s : Set α} (hs : BddBelow s) :
    theorem Finset.filter_lt_eq_Ioi {α : Type u_2} [Preorder α] [LocallyFiniteOrderTop α] {a : α} [Fintype α] [DecidablePred ((fun x x_1 => x < x_1) a)] :
    Finset.filter ((fun x x_1 => x < x_1) a) Finset.univ = Finset.Ioi a
    theorem Finset.filter_le_eq_Ici {α : Type u_2} [Preorder α] [LocallyFiniteOrderTop α] {a : α} [Fintype α] [DecidablePred ((fun x x_1 => x x_1) a)] :
    Finset.filter ((fun x x_1 => x x_1) a) Finset.univ = Finset.Ici a
    theorem BddAbove.finite {α : Type u_2} [Preorder α] [LocallyFiniteOrderBot α] {s : Set α} (hs : BddAbove s) :
    theorem Finset.filter_gt_eq_Iio {α : Type u_2} [Preorder α] [LocallyFiniteOrderBot α] {a : α} [Fintype α] [DecidablePred fun x => x < a] :
    Finset.filter (fun x => x < a) Finset.univ = Finset.Iio a
    theorem Finset.filter_ge_eq_Iic {α : Type u_2} [Preorder α] [LocallyFiniteOrderBot α] {a : α} [Fintype α] [DecidablePred fun x => x a] :
    Finset.filter (fun x => x a) Finset.univ = Finset.Iic a
    @[simp]
    theorem Finset.Icc_self {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] (a : α) :
    Finset.Icc a a = {a}
    @[simp]
    theorem Finset.Icc_eq_singleton_iff {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    Finset.Icc a b = {c} a = c b = c
    theorem Finset.Ico_disjoint_Ico_consecutive {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.Icc_erase_left {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) :
    @[simp]
    theorem Finset.Icc_erase_right {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) :
    @[simp]
    theorem Finset.Ico_erase_left {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) :
    @[simp]
    theorem Finset.Ioc_erase_right {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) :
    @[simp]
    theorem Finset.Icc_diff_both {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) :
    Finset.Icc a b \ {a, b} = Finset.Ioo a b
    @[simp]
    theorem Finset.Ico_insert_right {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a b) :
    @[simp]
    theorem Finset.Ioc_insert_left {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a b) :
    @[simp]
    theorem Finset.Ioo_insert_left {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a < b) :
    @[simp]
    theorem Finset.Ioo_insert_right {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a < b) :
    @[simp]
    theorem Finset.Icc_diff_Ico_self {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a b) :
    Finset.Icc a b \ Finset.Ico a b = {b}
    @[simp]
    theorem Finset.Icc_diff_Ioc_self {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a b) :
    Finset.Icc a b \ Finset.Ioc a b = {a}
    @[simp]
    theorem Finset.Icc_diff_Ioo_self {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a b) :
    Finset.Icc a b \ Finset.Ioo a b = {a, b}
    @[simp]
    theorem Finset.Ico_diff_Ioo_self {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a < b) :
    Finset.Ico a b \ Finset.Ioo a b = {a}
    @[simp]
    theorem Finset.Ioc_diff_Ioo_self {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidableEq α] (h : a < b) :
    Finset.Ioc a b \ Finset.Ioo a b = {b}
    @[simp]
    theorem Finset.Ico_inter_Ico_consecutive {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    theorem Finset.Icc_eq_cons_Ico {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : a b) :

    Finset.cons version of Finset.Ico_insert_right.

    theorem Finset.Icc_eq_cons_Ioc {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : a b) :

    Finset.cons version of Finset.Ioc_insert_left.

    theorem Finset.Ioc_eq_cons_Ioo {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : a < b) :

    Finset.cons version of Finset.Ioo_insert_right.

    theorem Finset.Ico_eq_cons_Ioo {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : a < b) :

    Finset.cons version of Finset.Ioo_insert_left.

    theorem Finset.Ico_filter_le_left {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {a : α} {b : α} [DecidablePred fun x => x a] (hab : a < b) :
    Finset.filter (fun x => x a) (Finset.Ico a b) = {a}
    @[simp]
    @[simp]
    @[simp]
    theorem Finset.sup_Iic {α : Type u_2} [SemilatticeSup α] [LocallyFiniteOrderBot α] [OrderBot α] (a : α) :
    @[simp]
    theorem Finset.inf_Ici {α : Type u_2} [SemilatticeInf α] [LocallyFiniteOrderTop α] [OrderTop α] (a : α) :
    theorem Finset.Ico_subset_Ico_iff {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a₁ : α} {b₁ : α} {a₂ : α} {b₂ : α} (h : a₁ < b₁) :
    Finset.Ico a₁ b₁ Finset.Ico a₂ b₂ a₂ a₁ b₁ b₂
    theorem Finset.Ico_union_Ico_eq_Ico {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} (hab : a b) (hbc : b c) :
    @[simp]
    theorem Finset.Ioc_union_Ioc_eq_Ioc {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} (h₁ : a b) (h₂ : b c) :
    theorem Finset.Ico_subset_Ico_union_Ico {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    theorem Finset.Ico_union_Ico' {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} {d : α} (hcb : c b) (had : a d) :
    theorem Finset.Ico_union_Ico {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} {d : α} (h₁ : min a b max c d) (h₂ : min c d max a b) :
    theorem Finset.Ico_inter_Ico {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} {d : α} :
    @[simp]
    theorem Finset.Ico_filter_lt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    Finset.filter (fun x => x < c) (Finset.Ico a b) = Finset.Ico a (min b c)
    @[simp]
    theorem Finset.Ico_filter_le {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    Finset.filter (fun x => c x) (Finset.Ico a b) = Finset.Ico (max a c) b
    @[simp]
    theorem Finset.Ioo_filter_lt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    Finset.filter (fun x => x < c) (Finset.Ioo a b) = Finset.Ioo a (min b c)
    @[simp]
    theorem Finset.Iio_filter_lt {α : Type u_3} [LinearOrder α] [LocallyFiniteOrderBot α] (a : α) (b : α) :
    Finset.filter (fun x => x < b) (Finset.Iio a) = Finset.Iio (min a b)
    @[simp]
    theorem Finset.Ico_diff_Ico_left {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.Ico_diff_Ico_right {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    theorem Set.Infinite.exists_gt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrderBot α] {s : Set α} (hs : Set.Infinite s) (a : α) :
    b, b s a < b
    theorem Set.infinite_iff_exists_gt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrderBot α] {s : Set α} [Nonempty α] :
    Set.Infinite s ∀ (a : α), b, b s a < b
    theorem Set.Infinite.exists_lt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrderTop α] {s : Set α} (hs : Set.Infinite s) (a : α) :
    b, b s b < a
    theorem Set.infinite_iff_exists_lt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrderTop α] {s : Set α} [Nonempty α] :
    Set.Infinite s ∀ (a : α), b, b s b < a
    theorem Finset.uIcc_toDual {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] (a : α) (b : α) :
    Finset.uIcc (OrderDual.toDual a) (OrderDual.toDual b) = Finset.map (Equiv.toEmbedding OrderDual.toDual) (Finset.uIcc a b)
    @[simp]
    theorem Finset.uIcc_of_le {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} (h : a b) :
    @[simp]
    theorem Finset.uIcc_of_ge {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} (h : b a) :
    theorem Finset.uIcc_comm {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] (a : α) (b : α) :
    theorem Finset.uIcc_self {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} :
    Finset.uIcc a a = {a}
    @[simp]
    theorem Finset.nonempty_uIcc {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} :
    theorem Finset.Icc_subset_uIcc {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} :
    theorem Finset.Icc_subset_uIcc' {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} :
    theorem Finset.left_mem_uIcc {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} :
    theorem Finset.right_mem_uIcc {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} :
    theorem Finset.mem_uIcc_of_le {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} {x : α} (ha : a x) (hb : x b) :
    theorem Finset.mem_uIcc_of_ge {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} {x : α} (hb : b x) (ha : x a) :
    theorem Finset.uIcc_subset_uIcc {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (h₁ : a₁ Finset.uIcc a₂ b₂) (h₂ : b₁ Finset.uIcc a₂ b₂) :
    Finset.uIcc a₁ b₁ Finset.uIcc a₂ b₂
    theorem Finset.uIcc_subset_Icc {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} (ha : a₁ Finset.Icc a₂ b₂) (hb : b₁ Finset.Icc a₂ b₂) :
    Finset.uIcc a₁ b₁ Finset.Icc a₂ b₂
    theorem Finset.uIcc_subset_uIcc_iff_mem {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} :
    Finset.uIcc a₁ b₁ Finset.uIcc a₂ b₂ a₁ Finset.uIcc a₂ b₂ b₁ Finset.uIcc a₂ b₂
    theorem Finset.uIcc_subset_uIcc_iff_le' {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} :
    Finset.uIcc a₁ b₁ Finset.uIcc a₂ b₂ a₂ b₂ a₁ b₁ a₁ b₁ a₂ b₂
    theorem Finset.uIcc_subset_uIcc_right {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} {x : α} (h : x Finset.uIcc a b) :
    theorem Finset.uIcc_subset_uIcc_left {α : Type u_2} [Lattice α] [LocallyFiniteOrder α] {a : α} {b : α} {x : α} (h : x Finset.uIcc a b) :
    theorem Finset.eq_of_mem_uIcc_of_mem_uIcc {α : Type u_2} [DistribLattice α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    a Finset.uIcc b cb Finset.uIcc a ca = b
    theorem Finset.eq_of_mem_uIcc_of_mem_uIcc' {α : Type u_2} [DistribLattice α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    b Finset.uIcc a cc Finset.uIcc a bb = c
    theorem Finset.Icc_min_max {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} :
    Finset.Icc (min a b) (max a b) = Finset.uIcc a b
    theorem Finset.uIcc_of_not_le {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : ¬a b) :
    theorem Finset.uIcc_of_not_ge {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} (h : ¬b a) :
    theorem Finset.uIcc_eq_union {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} :
    theorem Finset.mem_uIcc' {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    a Finset.uIcc b c b a a c c a a b
    theorem Finset.not_mem_uIcc_of_lt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    c < ac < b¬c Finset.uIcc a b
    theorem Finset.not_mem_uIcc_of_gt {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :
    a < cb < c¬c Finset.uIcc a b
    theorem Finset.uIcc_subset_uIcc_iff_le {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a₁ : α} {a₂ : α} {b₁ : α} {b₂ : α} :
    Finset.uIcc a₁ b₁ Finset.uIcc a₂ b₂ min a₂ b₂ min a₁ b₁ max a₁ b₁ max a₂ b₂
    theorem Finset.uIcc_subset_uIcc_union_uIcc {α : Type u_2} [LinearOrder α] [LocallyFiniteOrder α] {a : α} {b : α} {c : α} :

    A sort of triangle inequality.

    @[simp]
    theorem Finset.map_add_left_Icc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_right_Icc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_left_Ico {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_right_Ico {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_left_Ioc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_right_Ioc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_left_Ioo {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.map_add_right_Ioo {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] (a : α) (b : α) (c : α) :
    @[simp]
    theorem Finset.image_add_left_Icc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image ((fun x x_1 => x + x_1) c) (Finset.Icc a b) = Finset.Icc (c + a) (c + b)
    @[simp]
    theorem Finset.image_add_left_Ico {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image ((fun x x_1 => x + x_1) c) (Finset.Ico a b) = Finset.Ico (c + a) (c + b)
    @[simp]
    theorem Finset.image_add_left_Ioc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image ((fun x x_1 => x + x_1) c) (Finset.Ioc a b) = Finset.Ioc (c + a) (c + b)
    @[simp]
    theorem Finset.image_add_left_Ioo {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image ((fun x x_1 => x + x_1) c) (Finset.Ioo a b) = Finset.Ioo (c + a) (c + b)
    @[simp]
    theorem Finset.image_add_right_Icc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image (fun x => x + c) (Finset.Icc a b) = Finset.Icc (a + c) (b + c)
    theorem Finset.image_add_right_Ico {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image (fun x => x + c) (Finset.Ico a b) = Finset.Ico (a + c) (b + c)
    theorem Finset.image_add_right_Ioc {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image (fun x => x + c) (Finset.Ioc a b) = Finset.Ioc (a + c) (b + c)
    theorem Finset.image_add_right_Ioo {α : Type u_2} [OrderedCancelAddCommMonoid α] [ExistsAddOfLE α] [LocallyFiniteOrder α] [DecidableEq α] (a : α) (b : α) (c : α) :
    Finset.image (fun x => x + c) (Finset.Ioo a b) = Finset.Ioo (a + c) (b + c)
    theorem Finset.sum_sum_Ioi_add_eq_sum_sum_off_diag {ι : Type u_1} {α : Type u_2} [Fintype ι] [LinearOrder ι] [LocallyFiniteOrderTop ι] [LocallyFiniteOrderBot ι] [AddCommMonoid α] (f : ιια) :
    (Finset.sum Finset.univ fun i => Finset.sum (Finset.Ioi i) fun j => f j i + f i j) = Finset.sum Finset.univ fun i => Finset.sum {i} fun j => f j i
    theorem Finset.prod_prod_Ioi_mul_eq_prod_prod_off_diag {ι : Type u_1} {α : Type u_2} [Fintype ι] [LinearOrder ι] [LocallyFiniteOrderTop ι] [LocallyFiniteOrderBot ι] [CommMonoid α] (f : ιια) :
    (Finset.prod Finset.univ fun i => Finset.prod (Finset.Ioi i) fun j => f j i * f i j) = Finset.prod Finset.univ fun i => Finset.prod {i} fun j => f j i

    ⩿, and monotonicity #

    theorem transGen_wcovby_of_le {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {x : α} {y : α} (hxy : x y) :
    Relation.TransGen (fun x x_1 => x ⩿ x_1) x y
    theorem le_iff_transGen_wcovby {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {x : α} {y : α} :
    x y Relation.TransGen (fun x x_1 => x ⩿ x_1) x y

    In a locally finite preorder, is the transitive closure of ⩿.

    theorem le_iff_reflTransGen_covby {α : Type u_2} [PartialOrder α] [LocallyFiniteOrder α] {x : α} {y : α} :
    x y Relation.ReflTransGen (fun x x_1 => x x_1) x y

    In a locally finite partial order, is the reflexive transitive closure of .

    theorem transGen_covby_of_lt {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {x : α} {y : α} (hxy : x < y) :
    Relation.TransGen (fun x x_1 => x x_1) x y
    theorem lt_iff_transGen_covby {α : Type u_2} [Preorder α] [LocallyFiniteOrder α] {x : α} {y : α} :
    x < y Relation.TransGen (fun x x_1 => x x_1) x y

    In a locally finite preorder, < is the transitive closure of .

    theorem monotone_iff_forall_wcovby {α : Type u_2} {β : Type u_3} [Preorder α] [LocallyFiniteOrder α] [Preorder β] (f : αβ) :
    Monotone f ∀ (a b : α), a ⩿ bf a f b

    A function from a locally finite preorder is monotone if and only if it is monotone when restricted to pairs satisfying a ⩿ b.

    theorem monotone_iff_forall_covby {α : Type u_2} {β : Type u_3} [PartialOrder α] [LocallyFiniteOrder α] [Preorder β] (f : αβ) :
    Monotone f ∀ (a b : α), a bf a f b

    A function from a locally finite partial order is monotone if and only if it is monotone when restricted to pairs satisfying a ⋖ b.

    theorem strictMono_iff_forall_covby {α : Type u_2} {β : Type u_3} [Preorder α] [LocallyFiniteOrder α] [Preorder β] (f : αβ) :
    StrictMono f ∀ (a b : α), a bf a < f b

    A function from a locally finite preorder is strictly monotone if and only if it is strictly monotone when restricted to pairs satisfying a ⋖ b.

    theorem antitone_iff_forall_wcovby {α : Type u_2} {β : Type u_3} [Preorder α] [LocallyFiniteOrder α] [Preorder β] (f : αβ) :
    Antitone f ∀ (a b : α), a ⩿ bf b f a

    A function from a locally finite preorder is antitone if and only if it is antitone when restricted to pairs satisfying a ⩿ b.

    theorem antitone_iff_forall_covby {α : Type u_2} {β : Type u_3} [PartialOrder α] [LocallyFiniteOrder α] [Preorder β] (f : αβ) :
    Antitone f ∀ (a b : α), a bf b f a

    A function from a locally finite partial order is antitone if and only if it is antitone when restricted to pairs satisfying a ⋖ b.

    theorem strictAnti_iff_forall_covby {α : Type u_2} {β : Type u_3} [Preorder α] [LocallyFiniteOrder α] [Preorder β] (f : αβ) :
    StrictAnti f ∀ (a b : α), a bf b < f a

    A function from a locally finite preorder is strictly antitone if and only if it is strictly antitone when restricted to pairs satisfying a ⋖ b.