Skip to content

Commit

Permalink
feat(data/set/function): missing mono lemmas (#13863)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgouezel committed May 1, 2022
1 parent 9e7c80f commit 071cb55
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/data/set/function.lean
Expand Up @@ -202,6 +202,26 @@ lemma eq_on.congr_strict_anti_on (h : s.eq_on f₁ f₂) : strict_anti_on f₁ s

end order

/-! ### Mono lemmas-/

section mono

variables [preorder α] [preorder β]

lemma _root_.monotone_on.mono (h : monotone_on f s) (h' : s₂ ⊆ s) : monotone_on f s₂ :=
λ x hx y hy, h (h' hx) (h' hy)

lemma _root_.antitone_on.mono (h : antitone_on f s) (h' : s₂ ⊆ s) : antitone_on f s₂ :=
λ x hx y hy, h (h' hx) (h' hy)

lemma _root_.strict_mono_on.mono (h : strict_mono_on f s) (h' : s₂ ⊆ s) : strict_mono_on f s₂ :=
λ x hx y hy, h (h' hx) (h' hy)

lemma _root_.strict_anti_on.mono (h : strict_anti_on f s) (h' : s₂ ⊆ s) : strict_anti_on f s₂ :=
λ x hx y hy, h (h' hx) (h' hy)

end mono

/-! ### maps to -/

/-- `maps_to f a b` means that the image of `a` is contained in `b`. -/
Expand Down

0 comments on commit 071cb55

Please sign in to comment.