Zulip Chat Archive
Stream: mathlib4
Topic: Renaming monotonicity of powers lemmas
Yaël Dillies (Dec 18 2023 at 08:27):
This is an announcement that #9095 landed. This is a rather disruptive PR since it renamed 58 lemmas that are among the most used in mathlib. If you have a project depending on mathlib, you should check how the lemmas were renamed to adapt.
Yaël Dillies (Dec 18 2023 at 08:28):
The lemmas in question are all about monotonicity of (a ^ ·)
and (· ^ n)
. The full list of renames by file is
Algebra.GroupPower.Order
pow_mono
→pow_right_mono
pow_le_pow
→pow_le_pow_right
pow_le_pow_of_le_left
→pow_le_pow_left
pow_lt_pow_of_lt_left
→pow_lt_pow_left
strictMonoOn_pow
→pow_left_strictMonoOn
pow_strictMono_right
→pow_right_strictMono
pow_lt_pow
→pow_lt_pow_right
pow_lt_pow_iff
→pow_lt_pow_iff_right
pow_le_pow_iff
→pow_le_pow_iff_right
self_lt_pow
→lt_self_pow
strictAnti_pow
→pow_right_strictAnti
pow_lt_pow_iff_of_lt_one
→pow_lt_pow_iff_right_of_lt_one
pow_lt_pow_of_lt_one
→pow_lt_pow_right_of_lt_one
lt_of_pow_lt_pow
→lt_of_pow_lt_pow_left
le_of_pow_le_pow
→le_of_pow_le_pow_left
pow_lt_pow₀
→pow_lt_pow_right₀
Algebra.GroupPower.CovariantClass
pow_le_pow_of_le_left'
→pow_le_pow_left'
nsmul_le_nsmul_of_le_right
→nsmul_le_nsmul_right
pow_lt_pow'
→pow_lt_pow_right'
nsmul_lt_nsmul
→nsmul_lt_nsmul_left
pow_strictMono_left
→pow_right_strictMono'
nsmul_strictMono_right
→nsmul_left_strictMono
StrictMono.pow_right'
→StrictMono.pow_const
StrictMono.nsmul_left
→StrictMono.const_nsmul
pow_strictMono_right'
→pow_left_strictMono
nsmul_strictMono_left
→nsmul_right_strictMono
Monotone.pow_right
→Monotone.pow_const
Monotone.nsmul_left
→Monotone.const_nsmul
lt_of_pow_lt_pow'
→lt_of_pow_lt_pow_left'
lt_of_nsmul_lt_nsmul
→lt_of_nsmul_lt_nsmul_right
pow_le_pow'
→pow_le_pow_right'
nsmul_le_nsmul
→nsmul_le_nsmul_left
pow_le_pow_of_le_one'
→pow_le_pow_right_of_le_one'
nsmul_le_nsmul_of_nonpos
→nsmul_le_nsmul_left_of_nonpos
le_of_pow_le_pow'
→le_of_pow_le_pow_left'
le_of_nsmul_le_nsmul'
→le_of_nsmul_le_nsmul_right'
pow_le_pow_iff'
→pow_le_pow_iff_right'
nsmul_le_nsmul_iff
→nsmul_le_nsmul_iff_left
pow_lt_pow_iff'
→pow_lt_pow_iff_right'
nsmul_lt_nsmul_iff
→nsmul_lt_nsmul_iff_left
Data.Nat.Pow
Nat.pow_lt_pow_of_lt_left
→Nat.pow_lt_pow_left
Nat.pow_le_iff_le_left
→Nat.pow_le_pow_iff_left
Nat.pow_lt_iff_lt_left
→Nat.pow_lt_pow_iff_left
Yaël Dillies (Dec 18 2023 at 08:28):
On top of that, the following lemmas were removed:
self_le_pow
was a duplicate ofle_self_pow
.Nat.pow_lt_pow_of_lt_right
is defeq topow_lt_pow_right
.Nat.pow_right_strictMono
is defeq topow_right_strictMono
.Nat.pow_le_iff_le_right
is defeq topow_le_pow_iff_right
.Nat.pow_lt_iff_lt_right
is defeq topow_lt_pow_iff_right
.
Yaël Dillies (Dec 18 2023 at 08:28):
And finally:
- Some lemma assumptions have been turned from
0 < n
or1 ≤ n
ton ≠ 0
. - A few
Nat
lemmas have beenprotected
.
Yaël Dillies (Dec 18 2023 at 08:29):
There are other changes that are non-breaking that you can look up in #9095 if you're interested.
Yaël Dillies (Dec 18 2023 at 08:31):
I should remind you that the information of what lemma has been changed in what PR is available in the #changelog. The changelog does not however contain lists of renames.
Johan Commelin (Dec 18 2023 at 08:35):
Thanks for clearly documenting the changes!
Last updated: Dec 20 2023 at 11:08 UTC