Skip to content

[Merged by Bors] - chore: Deprecate pow monotonicity lemmas#9235

Closed
YaelDillies wants to merge 3 commits intomasterfrom
deprecate_pow_mono
Closed

[Merged by Bors] - chore: Deprecate pow monotonicity lemmas#9235
YaelDillies wants to merge 3 commits intomasterfrom
deprecate_pow_mono

Conversation

@YaelDillies
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies commented Dec 23, 2023

Add deprecated aliases for all the lemmas removed in #9095 and fix a few renames that were botched.


See https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/Renaming.20monotonicity.20of.20powers.20lemmas

Open in Gitpod

Add deprecated aliases for all the lemmas removed in #9095
@YaelDillies YaelDillies added awaiting-review t-algebra Algebra (groups, rings, fields, etc) t-order Order theory labels Dec 23, 2023
Comment on lines -178 to +183
theorem Monotone.pow_right {f : β → M} (hf : Monotone f) : ∀ n : ℕ, Monotone fun a => f a ^ n
theorem Monotone.pow_const {f : β → M} (hf : Monotone f) : ∀ n : ℕ, Monotone fun a => f a ^ n
| 0 => by simpa using monotone_const
| n + 1 => by
simp_rw [pow_succ]
exact hf.mul' (Monotone.pow_right hf _)
#align monotone.pow_right Monotone.pow_right
exact hf.mul' (Monotone.pow_const hf _)
#align monotone.pow_right Monotone.pow_const
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These don't look like deprecations to me; can you split them to their own PR?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those lemma renames were announced in #9095. I just messed up when doing so.

@urkud
Copy link
Copy Markdown
Member

urkud commented Dec 24, 2023

LGTM but I don't know how to verify that all aliases are there.

@YaelDillies
Copy link
Copy Markdown
Contributor Author

You could check the list from the description of #9095 one by one. I copy-pasted it to get the aliases.

@urkud
Copy link
Copy Markdown
Member

urkud commented Dec 25, 2023

Let's get it merged
bors merge

@github-actions github-actions bot added ready-to-merge This PR has been sent to bors. and removed awaiting-review labels Dec 25, 2023
mathlib-bors bot pushed a commit that referenced this pull request Dec 25, 2023
Add deprecated aliases for all the lemmas removed in #9095 and fix a few renames that were botched.
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Dec 25, 2023

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title chore: Deprecate pow monotonicity lemmas [Merged by Bors] - chore: Deprecate pow monotonicity lemmas Dec 25, 2023
@mathlib-bors mathlib-bors bot closed this Dec 25, 2023
@mathlib-bors mathlib-bors bot deleted the deprecate_pow_mono branch December 25, 2023 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-merge This PR has been sent to bors. t-algebra Algebra (groups, rings, fields, etc) t-order Order theory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants