The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Set.Order
17 declarations and 2 deprecated aliases. Mathlib docs · Source
Order structures and monotonicity lemmas for Set
Monotone lemmas for sets
theorem Set.monotoneOn_iff_monotone E1 #
∀ {α : Type u} {β : Type v} {s : Set α} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
MonotoneOn f s ↔ Monotone fun a ↦ f ↑a
theorem Set.antitoneOn_iff_antitone E1 #
∀ {α : Type u} {β : Type v} {s : Set α} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
AntitoneOn f s ↔ Antitone fun a ↦ f ↑a
theorem Set.strictMonoOn_iff_strictMono E1 #
∀ {α : Type u} {β : Type v} {s : Set α} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
StrictMonoOn f s ↔ StrictMono fun a ↦ f ↑a
theorem Set.strictAntiOn_iff_strictAnti E1 #
∀ {α : Type u} {β : Type v} {s : Set α} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
StrictAntiOn f s ↔ StrictAnti fun a ↦ f ↑a
theorem Set.not_monotoneOn_not_antitoneOn_iff_exists_le_le E1 #
∀ {α : Type u} {β : Type v} {s : Set α} [inst : LinearOrder α] [inst_1 : LinearOrder β] {f : α → β},
¬MonotoneOn f s ∧ ¬AntitoneOn f s ↔
∃ a ∈ s, ∃ b ∈ s, ∃ c ∈ s, a ≤ b ∧ b ≤ c ∧ (f a < f b ∧ f c < f b ∨ f b < f a ∧ f b < f c)
A function between linear orders which is neither monotone nor antitone makes a dent upright or downright.
theorem Set.not_monotoneOn_not_antitoneOn_iff_exists_lt_lt E1 #
∀ {α : Type u} {β : Type v} {s : Set α} [inst : LinearOrder α] [inst_1 : LinearOrder β] {f : α → β},
¬MonotoneOn f s ∧ ¬AntitoneOn f s ↔
∃ a ∈ s, ∃ b ∈ s, ∃ c ∈ s, a < b ∧ b < c ∧ (f a < f b ∧ f c < f b ∨ f b < f a ∧ f b < f c)
A function between linear orders which is neither monotone nor antitone makes a dent upright or downright.
theorem Monotone.inter E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α},
Monotone f → Monotone g → Monotone fun x ↦ f x ∩ g x
theorem MonotoneOn.inter E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α} {s : Set β},
MonotoneOn f s → MonotoneOn g s → MonotoneOn (fun x ↦ f x ∩ g x) s
theorem Antitone.inter E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α},
Antitone f → Antitone g → Antitone fun x ↦ f x ∩ g x
theorem AntitoneOn.inter E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α} {s : Set β},
AntitoneOn f s → AntitoneOn g s → AntitoneOn (fun x ↦ f x ∩ g x) s
theorem Monotone.union E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α},
Monotone f → Monotone g → Monotone fun x ↦ f x ∪ g x
theorem MonotoneOn.union E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α} {s : Set β},
MonotoneOn f s → MonotoneOn g s → MonotoneOn (fun x ↦ f x ∪ g x) s
theorem Antitone.union E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α},
Antitone f → Antitone g → Antitone fun x ↦ f x ∪ g x
theorem AntitoneOn.union E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder β] {f g : β → Set α} {s : Set β},
AntitoneOn f s → AntitoneOn g s → AntitoneOn (fun x ↦ f x ∪ g x) s
theorem Set.monotone_ofPred E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] {p : α → β → Prop},
(∀ (b : β), Monotone fun a ↦ p a b) → Monotone fun a ↦ {b | p a b}
theorem Set.antitone_ofPred E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] {p : α → β → Prop},
(∀ (b : β), Antitone fun a ↦ p a b) → Antitone fun a ↦ {b | p a b}
theorem Set.antitone_bforall E1 #
∀ {α : Type u_1} {P : α → Prop}, Antitone fun s ↦ ∀ x ∈ s, P x
Quantifying over a set is antitone in the set
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Set.antitone_setOf | Set.antitone_ofPred | 2026-07-09 |
Set.monotone_setOf | Set.monotone_ofPred | 2026-07-09 |