The areas / V03. Sets, finite structures and big operators
Mathlib.Data.Set.Monotone
39 declarations and 4 deprecated aliases. Mathlib docs · Source
Monotone functions over sets
Congruence lemmas for monotonicity and antitonicity
Monotonicity lemmas
Monotone
theorem MonotoneOn.congr E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
MonotoneOn f₁ s → Set.EqOn f₁ f₂ s → MonotoneOn f₂ s
theorem AntitoneOn.congr E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
AntitoneOn f₁ s → Set.EqOn f₁ f₂ s → AntitoneOn f₂ s
theorem StrictMonoOn.congr E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
StrictMonoOn f₁ s → Set.EqOn f₁ f₂ s → StrictMonoOn f₂ s
theorem StrictAntiOn.congr E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
StrictAntiOn f₁ s → Set.EqOn f₁ f₂ s → StrictAntiOn f₂ s
theorem Set.EqOn.congr_monotoneOn E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
Set.EqOn f₁ f₂ s → (MonotoneOn f₁ s ↔ MonotoneOn f₂ s)
theorem Set.EqOn.congr_antitoneOn E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
Set.EqOn f₁ f₂ s → (AntitoneOn f₁ s ↔ AntitoneOn f₂ s)
theorem Set.EqOn.congr_strictMonoOn E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
Set.EqOn f₁ f₂ s → (StrictMonoOn f₁ s ↔ StrictMonoOn f₂ s)
theorem Set.EqOn.congr_strictAntiOn E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f₁ f₂ : α → β} [inst : Preorder α] [inst_1 : Preorder β],
Set.EqOn f₁ f₂ s → (StrictAntiOn f₁ s ↔ StrictAntiOn f₂ s)
theorem MonotoneOn.mono E1 #
∀ {α : Type u_1} {β : Type u_2} {s s₂ : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
MonotoneOn f s → s₂ ⊆ s → MonotoneOn f s₂
theorem AntitoneOn.mono E1 #
∀ {α : Type u_1} {β : Type u_2} {s s₂ : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
AntitoneOn f s → s₂ ⊆ s → AntitoneOn f s₂
theorem StrictMonoOn.mono E1 #
∀ {α : Type u_1} {β : Type u_2} {s s₂ : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
StrictMonoOn f s → s₂ ⊆ s → StrictMonoOn f s₂
theorem StrictAntiOn.mono E1 #
∀ {α : Type u_1} {β : Type u_2} {s s₂ : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
StrictAntiOn f s → s₂ ⊆ s → StrictAntiOn f s₂
theorem MonotoneOn.monotone E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
MonotoneOn f s → Monotone (f ∘ Subtype.val)
theorem AntitoneOn.monotone E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
AntitoneOn f s → Antitone (f ∘ Subtype.val)
theorem StrictMonoOn.strictMono E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
StrictMonoOn f s → StrictMono (f ∘ Subtype.val)
theorem StrictAntiOn.strictAnti E1 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β],
StrictAntiOn f s → StrictAnti (f ∘ Subtype.val)
theorem Set.monotoneOn_insert_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β] {a : α},
MonotoneOn f (insert a s) ↔ (∀ b ∈ s, b ≤ a → f b ≤ f a) ∧ (∀ b ∈ s, a ≤ b → f a ≤ f b) ∧ MonotoneOn f s
theorem Set.antitoneOn_insert_iff E0 #
∀ {α : Type u_1} {β : Type u_2} {s : Set α} {f : α → β} [inst : Preorder α] [inst_1 : Preorder β] {a : α},
AntitoneOn f (insert a s) ↔ (∀ b ∈ s, b ≤ a → f a ≤ f b) ∧ (∀ b ∈ s, a ≤ b → f b ≤ f a) ∧ AntitoneOn f s
theorem Monotone.domRestrict E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → ∀ (s : Set α), Monotone (s.domRestrict f)
theorem Monotone.codRestrict E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → ∀ {s : Set β} (hs : ∀ (x : α), f x ∈ s), Monotone (Set.codRestrict f s hs)
theorem Monotone.rangeFactorization E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
Monotone f → Monotone (Set.rangeFactorization f)
theorem strictMono_domRestrict E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α},
StrictMono (s.domRestrict f) ↔ StrictMonoOn f s
theorem StrictMonoOn.domRestrict E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α},
StrictMonoOn f s → StrictMono (s.domRestrict f)
Alias of the reverse direction of strictMono_domRestrict.
theorem StrictMono.of_domRestrict E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α},
StrictMono (s.domRestrict f) → StrictMonoOn f s
Alias of the forward direction of strictMono_domRestrict.
theorem StrictMono.codRestrict E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β},
StrictMono f → ∀ {s : Set β} (hs : ∀ (x : α), f x ∈ s), StrictMono (Set.codRestrict f s hs)
theorem strictMonoOn_insert_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
StrictMonoOn f (insert a s) ↔ (∀ b ∈ s, b < a → f b < f a) ∧ (∀ b ∈ s, a < b → f a < f b) ∧ StrictMonoOn f s
theorem strictAntiOn_insert_iff E0 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
StrictAntiOn f (insert a s) ↔ (∀ b ∈ s, b < a → f a < f b) ∧ (∀ b ∈ s, a < b → f b < f a) ∧ StrictAntiOn f s
theorem strictMonoOn_insert_iff_of_forall_le E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
(∀ x ∈ s, x ≤ a) → (StrictMonoOn f (insert a s) ↔ (∀ b ∈ s, b < a → f b < f a) ∧ StrictMonoOn f s)
theorem strictMonoOn_insert_iff_of_forall_ge E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
(∀ x ∈ s, a ≤ x) → (StrictMonoOn f (insert a s) ↔ (∀ b ∈ s, a < b → f a < f b) ∧ StrictMonoOn f s)
theorem strictAntiOn_insert_iff_of_forall_le E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
(∀ x ∈ s, x ≤ a) → (StrictAntiOn f (insert a s) ↔ (∀ b ∈ s, b < a → f a < f b) ∧ StrictAntiOn f s)
theorem strictAntiOn_insert_iff_of_forall_ge E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : Preorder β] {f : α → β} {s : Set α} {a : α},
(∀ x ∈ s, a ≤ x) → (StrictAntiOn f (insert a s) ↔ (∀ b ∈ s, a < b → f b < f a) ∧ StrictAntiOn f s)
theorem Function.monotoneOn_of_rightInvOn_of_mapsTo E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β} {t : Set β}
{s : Set α}, MonotoneOn φ t → Set.RightInvOn ψ φ s → Set.MapsTo ψ s t → MonotoneOn ψ s
theorem Function.strictMonoOn_of_rightInvOn_of_mapsTo E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β} {t : Set β}
{s : Set α}, StrictMonoOn φ t → Set.RightInvOn ψ φ s → Set.MapsTo ψ s t → StrictMonoOn ψ s
theorem Function.antitoneOn_of_rightInvOn_of_mapsTo E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β} {t : Set β}
{s : Set α}, AntitoneOn φ t → Set.RightInvOn ψ φ s → Set.MapsTo ψ s t → AntitoneOn ψ s
theorem Function.strictAntiOn_of_rightInvOn_of_mapsTo E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β} {t : Set β}
{s : Set α}, StrictAntiOn φ t → Set.RightInvOn ψ φ s → Set.MapsTo ψ s t → StrictAntiOn ψ s
theorem Function.monotone_of_rightInverse E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β},
Monotone φ → Function.RightInverse ψ φ → Monotone ψ
theorem Function.strictMono_of_rightInverse E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β},
StrictMono φ → Function.RightInverse ψ φ → StrictMono ψ
theorem Function.antitone_of_rightInverse E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : PartialOrder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β},
Antitone φ → Function.RightInverse ψ φ → Antitone ψ
theorem Function.strictAnti_of_rightInverse E1 #
∀ {α : Type u_1} {β : Type u_2} [inst : Preorder α] [inst_1 : LinearOrder β] {φ : β → α} {ψ : α → β},
StrictAnti φ → Function.RightInverse ψ φ → StrictAnti ψ
Deprecated aliases
| Name | New name | Since |
|---|---|---|
Monotone.restrict | Monotone.domRestrict | 2026-07-19 |
StrictMono.of_restrict | StrictMono.of_domRestrict | 2026-07-19 |
StrictMonoOn.restrict | StrictMonoOn.domRestrict | 2026-07-19 |
strictMono_restrict | strictMono_domRestrict | 2026-07-19 |