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

27 declarations. Mathlib docs · Source

Intervals

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

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

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

We also define a typeclass Set.OrdConnected saying that a set includes Set.Icc a b whenever it contains both a and b.

def Set.Iio E1 #

{α : Type u_1} → [Preorder α] → α → Set α

Iio b is the left-infinite right-open interval $(-∞, b)$.

def Set.Ioi E1 #

{α : Type u_1} → [Preorder α] → α → Set α

Ioi a is the left-open right-infinite interval $(a, ∞)$.

theorem Set.mem_Iio E0 #

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

theorem Set.mem_Ioi E0 #

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

theorem Set.Iio_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), {x | x < a} = Set.Iio a

theorem Set.Ioi_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (a : α), {x | a < x} = Set.Ioi a

def Set.Iic E1 #

{α : Type u_1} → [Preorder α] → α → Set α

Iic b is the left-infinite right-closed interval $(-∞, b]$.

def Set.Ici E1 #

{α : Type u_1} → [Preorder α] → α → Set α

Ici a is the left-closed right-infinite interval $[a, ∞)$.

theorem Set.mem_Ici E0 #

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

theorem Set.mem_Iic E0 #

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

theorem Set.Ici_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (b : α), {x | b ≤ x} = Set.Ici b

theorem Set.Iic_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (b : α), {x | x ≤ b} = Set.Iic b

def Set.Ioo E3 #

{α : Type u_1} → [Preorder α] → α → α → Set α

Ioo a b is the left-open right-open interval $(a, b)$.

theorem Set.mem_Ioo E0 #

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

theorem Set.Ioo_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (a b : α), {x | a < x ∧ x < b} = Set.Ioo a b

def Set.Ico E3 #

{α : Type u_1} → [Preorder α] → α → α → Set α

Ico a b is the left-closed right-open interval $[a, b)$.

def Set.Ioc E3 #

{α : Type u_1} → [Preorder α] → α → α → Set α

Ioc a b is the left-open right-closed interval $(a, b]$.

theorem Set.mem_Ico E0 #

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

theorem Set.Ico_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (a b : α), {x | a ≤ x ∧ x < b} = Set.Ico a b

theorem Set.mem_Ioc E0 #

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

theorem Set.Ioc_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (a b : α), {x | a < x ∧ x ≤ b} = Set.Ioc a b

def Set.Icc E3 #

{α : Type u_1} → [Preorder α] → α → α → Set α

Icc a b is the left-closed right-closed interval $[a, b]$.

theorem Set.mem_Icc E0 #

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

theorem Set.Icc_def E0 #

∀ {α : Type u_1} [inst : Preorder α] (a b : α), {x | a ≤ x ∧ x ≤ b} = Set.Icc a b

class Set.OrdConnected E1 #

{α : Type u_1} → [Preorder α] → Set α → Prop

We say that a set s : Set α is OrdConnected if for all x y ∈ s it includes the interval [[x, y]]. If α is a DenselyOrdered ConditionallyCompleteLinearOrder with the OrderTopology, then this condition is equivalent to IsPreconnected s. If α is a linearly ordered field, then this condition is also equivalent to Convex α s.

ctor Set.OrdConnected.mk E0 #

∀ {α : Type u_1} [inst : Preorder α] {s : Set α},
  (∀ ⦃x : α⦄, x ∈ s → ∀ ⦃y : α⦄, y ∈ s → Set.Icc x y ⊆ s) → s.OrdConnected

theorem Set.OrdConnected.out' E1 #

∀ {α : Type u_1} {inst : Preorder α} {s : Set α} [self : s.OrdConnected] ⦃x : α⦄,
  x ∈ s → ∀ ⦃y : α⦄, y ∈ s → Set.Icc x y ⊆ s

s : Set α is OrdConnected if for all x y ∈ s it includes the interval [[x, y]].