The areas / V04. Order and lattices
Mathlib.Order.Interval.Set.UnorderedInterval
88 declarations. Mathlib docs · Source
def Set.uIcc E1 #
{α : Type u_1} → [Lattice α] → α → α → Set α
uIcc a b is the set of elements lying between a and b, with a and b included.
Note that we define it more generally in a lattice as Set.Icc (a ⊓ b) (a ⊔ b). In a product type,
uIcc corresponds to the bounding box of the two elements.
def Interval.«term[[_,_]]» E1 #
Lean.ParserDescr
[[a, b]] denotes the set of elements lying between a and b, inclusive.
theorem Set.uIcc_toDual E0 #
∀ {α : Type u_1} [inst : Lattice α] (a b : α),
Set.uIcc (OrderDual.toDual a) (OrderDual.toDual b) = ⇑OrderDual.ofDual ⁻¹' Set.uIcc a b
theorem Set.uIcc_ofDual E0 #
∀ {α : Type u_1} [inst : Lattice α] (a b : αᵒᵈ),
Set.uIcc (OrderDual.ofDual a) (OrderDual.ofDual b) = ⇑OrderDual.toDual ⁻¹' Set.uIcc a b
theorem Set.uIcc_of_le E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, a ≤ b → Set.uIcc a b = Set.Icc a b
theorem Set.uIcc_of_ge E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, b ≤ a → Set.uIcc a b = Set.Icc b a
theorem Set.uIcc_comm E1 #
∀ {α : Type u_1} [inst : Lattice α] (a b : α), Set.uIcc a b = Set.uIcc b a
theorem Set.uIcc_of_lt E1 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, a < b → Set.uIcc a b = Set.Icc a b
theorem Set.uIcc_of_gt E1 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, b < a → Set.uIcc a b = Set.Icc b a
theorem Set.uIcc_self E1 #
∀ {α : Type u_1} [inst : Lattice α] {a : α}, Set.uIcc a a = {a}
theorem Set.nonempty_uIcc E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, (Set.uIcc a b).Nonempty
theorem Set.Icc_subset_uIcc E1 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, Set.Icc a b ⊆ Set.uIcc a b
theorem Set.Icc_subset_uIcc' E1 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, Set.Icc b a ⊆ Set.uIcc a b
theorem Set.left_mem_uIcc E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, a ∈ Set.uIcc a b
theorem Set.right_mem_uIcc E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b : α}, b ∈ Set.uIcc a b
theorem Set.mem_uIcc_of_le E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b x : α}, a ≤ x → x ≤ b → x ∈ Set.uIcc a b
theorem Set.mem_uIcc_of_ge E0 #
∀ {α : Type u_1} [inst : Lattice α] {a b x : α}, b ≤ x → x ≤ a → x ∈ Set.uIcc a b
theorem Set.uIcc_subset_uIcc E1 #
∀ {α : Type u_1} [inst : Lattice α] {a₁ a₂ b₁ b₂ : α},
a₁ ∈ Set.uIcc a₂ b₂ → b₁ ∈ Set.uIcc a₂ b₂ → Set.uIcc a₁ b₁ ⊆ Set.uIcc a₂ b₂
theorem Set.uIcc_subset_Icc E1 #
∀ {α : Type u_1} [inst : Lattice α] {a₁ a₂ b₁ b₂ : α},
a₁ ∈ Set.Icc a₂ b₂ → b₁ ∈ Set.Icc a₂ b₂ → Set.uIcc a₁ b₁ ⊆ Set.Icc a₂ b₂
theorem Set.uIcc_subset_uIcc_iff_mem E1 #
∀ {α : Type u_1} [inst : Lattice α] {a₁ a₂ b₁ b₂ : α},
Set.uIcc a₁ b₁ ⊆ Set.uIcc a₂ b₂ ↔ a₁ ∈ Set.uIcc a₂ b₂ ∧ b₁ ∈ Set.uIcc a₂ b₂
theorem Set.uIcc_subset_uIcc_iff_le' E1 #
∀ {α : Type u_1} [inst : Lattice α] {a₁ a₂ b₁ b₂ : α},
Set.uIcc a₁ b₁ ⊆ Set.uIcc a₂ b₂ ↔ a₂ ⊓ b₂ ≤ a₁ ⊓ b₁ ∧ a₁ ⊔ b₁ ≤ a₂ ⊔ b₂
theorem Set.uIcc_subset_uIcc_right E1 #
∀ {α : Type u_1} [inst : Lattice α] {a b x : α}, x ∈ Set.uIcc a b → Set.uIcc x b ⊆ Set.uIcc a b
theorem Set.uIcc_subset_uIcc_left E1 #
∀ {α : Type u_1} [inst : Lattice α] {a b x : α}, x ∈ Set.uIcc a b → Set.uIcc a x ⊆ Set.uIcc a b
theorem Set.bdd_below_bdd_above_iff_subset_uIcc E1 #
∀ {α : Type u_1} [inst : Lattice α] (s : Set α), BddBelow s ∧ BddAbove s ↔ ∃ a b, s ⊆ Set.uIcc a b
theorem Set.uIcc_prod_uIcc E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Lattice α] [inst_1 : Lattice β] (a₁ a₂ : α) (b₁ b₂ : β),
Set.uIcc a₁ a₂ ×ˢ Set.uIcc b₁ b₂ = Set.uIcc (a₁, b₁) (a₂, b₂)
theorem Set.uIcc_prod_eq E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Lattice α] [inst_1 : Lattice β] (a b : α × β),
Set.uIcc a b = Set.uIcc a.1 b.1 ×ˢ Set.uIcc a.2 b.2
theorem Set.uIcc_injective_right E1 #
∀ {α : Type u_1} [inst : DistribLattice α] (a : α), Function.Injective fun b ↦ Set.uIcc b a
theorem Set.uIcc_injective_left E1 #
∀ {α : Type u_1} [inst : DistribLattice α] (a : α), Function.Injective (Set.uIcc a)
theorem MonotoneOn.mapsTo_uIcc E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
MonotoneOn f (Set.uIcc a b) → Set.MapsTo f (Set.uIcc a b) (Set.uIcc (f a) (f b))
theorem AntitoneOn.mapsTo_uIcc E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
AntitoneOn f (Set.uIcc a b) → Set.MapsTo f (Set.uIcc a b) (Set.uIcc (f a) (f b))
theorem Monotone.mapsTo_uIcc E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
Monotone f → Set.MapsTo f (Set.uIcc a b) (Set.uIcc (f a) (f b))
theorem Antitone.mapsTo_uIcc E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
Antitone f → Set.MapsTo f (Set.uIcc a b) (Set.uIcc (f a) (f b))
theorem MonotoneOn.image_uIcc_subset E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
MonotoneOn f (Set.uIcc a b) → f '' Set.uIcc a b ⊆ Set.uIcc (f a) (f b)
theorem AntitoneOn.image_uIcc_subset E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
AntitoneOn f (Set.uIcc a b) → f '' Set.uIcc a b ⊆ Set.uIcc (f a) (f b)
theorem Monotone.image_uIcc_subset E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
Monotone f → f '' Set.uIcc a b ⊆ Set.uIcc (f a) (f b)
theorem Antitone.image_uIcc_subset E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : Lattice β] {f : α → β} {a b : α},
Antitone f → f '' Set.uIcc a b ⊆ Set.uIcc (f a) (f b)
theorem Set.Icc_min_max E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Icc (min a b) (max a b) = Set.uIcc a b
theorem Set.uIcc_of_not_le E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, ¬a ≤ b → Set.uIcc a b = Set.Icc b a
theorem Set.uIcc_of_not_ge E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, ¬b ≤ a → Set.uIcc a b = Set.Icc a b
theorem Set.uIcc_eq_union E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.uIcc a b = Set.Icc a b ∪ Set.Icc b a
theorem Set.mem_uIcc E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, a ∈ Set.uIcc b c ↔ b ≤ a ∧ a ≤ c ∨ c ≤ a ∧ a ≤ b
theorem Set.notMem_uIcc_of_lt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, c < a → c < b → c ∉ Set.uIcc a b
theorem Set.notMem_uIcc_of_gt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, a < c → b < c → c ∉ Set.uIcc a b
theorem Set.uIcc_subset_uIcc_iff_le E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
Set.uIcc a₁ b₁ ⊆ Set.uIcc a₂ b₂ ↔ min a₂ b₂ ≤ min a₁ b₁ ∧ max a₁ b₁ ≤ max a₂ b₂
theorem Set.uIcc_subset_uIcc_union_uIcc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, Set.uIcc a c ⊆ Set.uIcc a b ∪ Set.uIcc b c
A sort of triangle inequality.
theorem Set.monotone_or_antitone_iff_uIcc E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] {f : α → β},
Monotone f ∨ Antitone f ↔ ∀ (a b c : α), c ∈ Set.uIcc a b → f c ∈ Set.uIcc (f a) (f b)
theorem Set.monotoneOn_or_antitoneOn_iff_uIcc E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : LinearOrder α] [inst_1 : LinearOrder β] {f : α → β} {s : Set α},
MonotoneOn f s ∨ AntitoneOn f s ↔ ∀ a ∈ s, ∀ b ∈ s, ∀ c ∈ s, c ∈ Set.uIcc a b → f c ∈ Set.uIcc (f a) (f b)
def Set.uIoc E1 #
{α : Type u_1} → [LinearOrder α] → α → α → Set α
The open-closed uIcc with unordered bounds.
def Interval.termΙ E1 #
Lean.ParserDescr
Ι a b denotes the open-closed interval with unordered bounds. Here, Ι is a capital iota,
distinguished from a capital i.
theorem Set.uIoc_of_le E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.uIoc a b = Set.Ioc a b
theorem Set.uIoc_of_ge E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ≤ a → Set.uIoc a b = Set.Ioc b a
theorem Set.uIoc_eq_union E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.uIoc a b = Set.Ioc a b ∪ Set.Ioc b a
theorem Set.mem_uIoc E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, a ∈ Set.uIoc b c ↔ b < a ∧ a ≤ c ∨ c < a ∧ a ≤ b
theorem Set.notMem_uIoc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, a ∉ Set.uIoc b c ↔ a ≤ b ∧ a ≤ c ∨ c < a ∧ b < a
theorem Set.left_mem_uIoc E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ∈ Set.uIoc a b ↔ b < a
theorem Set.right_mem_uIoc E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ∈ Set.uIoc a b ↔ a < b
theorem Set.forall_uIoc_iff E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α} {P : α → Prop},
(∀ x ∈ Set.uIoc a b, P x) ↔ (∀ x ∈ Set.Ioc a b, P x) ∧ ∀ x ∈ Set.Ioc b a, P x
theorem Set.uIoc_subset_uIoc_of_uIcc_subset_uIcc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c d : α}, Set.uIcc a b ⊆ Set.uIcc c d → Set.uIoc a b ⊆ Set.uIoc c d
theorem Set.uIoc_comm E1 #
∀ {α : Type u_1} [inst : LinearOrder α] (a b : α), Set.uIoc a b = Set.uIoc b a
theorem Set.Ioc_subset_uIoc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioc a b ⊆ Set.uIoc a b
theorem Set.Ioc_subset_uIoc' E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioc a b ⊆ Set.uIoc b a
theorem Set.uIoc_subset_uIcc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.uIoc a b ⊆ Set.uIcc a b
theorem Set.uIoc_injective_right E1 #
∀ {α : Type u_1} [inst : LinearOrder α] (a : α), Function.Injective fun b ↦ Set.uIoc b a
theorem Set.uIoc_injective_left E1 #
∀ {α : Type u_1} [inst : LinearOrder α] (a : α), Function.Injective (Set.uIoc a)
theorem Set.uIoc_union_uIoc E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b c : α}, b ∈ Set.uIcc a c → Set.uIoc a b ∪ Set.uIoc b c = Set.uIoc a c
def Set.uIoo E1 #
{α : Type u_1} → [LinearOrder α] → α → α → Set α
uIoo a b is the set of elements lying between a and b, with a and b not included.
Note that we define it more generally in a lattice as Set.Ioo (a ⊓ b) (a ⊔ b). In a product type,
uIoo corresponds to the bounding box of the two elements.
theorem Set.uIoo_toDual E0 #
∀ {α : Type u_1} [inst : LinearOrder α] (a b : α),
Set.uIoo (OrderDual.toDual a) (OrderDual.toDual b) = ⇑OrderDual.ofDual ⁻¹' Set.uIoo a b
theorem Set.uIoo_ofDual E0 #
∀ {α : Type u_1} [inst : LinearOrder α] (a b : αᵒᵈ),
Set.uIoo (OrderDual.ofDual a) (OrderDual.ofDual b) = ⇑OrderDual.toDual ⁻¹' Set.uIoo a b
theorem Set.uIoo_of_le E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ≤ b → Set.uIoo a b = Set.Ioo a b
theorem Set.uIoo_of_ge E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ≤ a → Set.uIoo a b = Set.Ioo b a
theorem Set.uIoo_comm E1 #
∀ {α : Type u_1} [inst : LinearOrder α] (a b : α), Set.uIoo a b = Set.uIoo b a
theorem Set.uIoo_of_lt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a < b → Set.uIoo a b = Set.Ioo a b
theorem Set.uIoo_of_gt E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b < a → Set.uIoo a b = Set.Ioo b a
theorem Set.uIoo_self E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a : α}, Set.uIoo a a = ∅
theorem Set.left_notMem_uIoo E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, a ∉ Set.uIoo a b
theorem Set.right_notMem_uIoo E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, b ∉ Set.uIoo a b
theorem Set.Ioo_subset_uIoo E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioo a b ⊆ Set.uIoo a b
theorem Set.Ioo_subset_uIoo' E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioo b a ⊆ Set.uIoo a b
Same as Ioo_subset_uIoo but with Ioo a b replaced by Ioo b a.
theorem Set.mem_uIoo_of_lt E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b x : α}, a < x → x < b → x ∈ Set.uIoo a b
theorem Set.mem_uIoo_of_gt E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b x : α}, b < x → x < a → x ∈ Set.uIoo a b
theorem Set.Ioo_min_max E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.Ioo (min a b) (max a b) = Set.uIoo a b
theorem Set.uIoo_of_not_le E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, ¬a ≤ b → Set.uIoo a b = Set.Ioo b a
theorem Set.uIoo_of_not_ge E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, ¬b ≤ a → Set.uIoo a b = Set.Ioo a b
theorem Set.uIoo_subset_uIcc_self E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.uIoo a b ⊆ Set.uIcc a b
theorem Set.uIoo_subset_Ioo E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a₁ a₂ b₁ b₂ : α},
a₁ ∈ Set.Icc a₂ b₂ → b₁ ∈ Set.Icc a₂ b₂ → Set.uIoo a₁ b₁ ⊆ Set.Ioo a₂ b₂
theorem Set.nonempty_uIoo E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α} [DenselyOrdered α], (Set.uIoo a b).Nonempty ↔ a ≠ b
theorem Set.nonempty_uIoc E0 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, (Set.uIoc a b).Nonempty ↔ a ≠ b
theorem Set.uIoo_eq_union E1 #
∀ {α : Type u_1} [inst : LinearOrder α] {a b : α}, Set.uIoo a b = Set.Ioo a b ∪ Set.Ioo b a