Repository navigation
Conversation
Following leanprover-community#9095, leanprover-community#9235 and leanprover-community#18956, this renames the ambiguous rpow monotonicity lemma names in Real, NNReal and ENNReal. Lemmas monotone in the base (the left argument of ^) gain the suffix _left, lemmas monotone in the exponent gain _right, and iff-variants use the _iff_left / _iff_right infixes. The of_exponent_* spellings become the _right names matching pow_le_pow_right and friends; the existing rpow_*_left_iff names, which vary the exponent, become *_iff_right so they no longer clash with the new *_left names. All uses are updated and deprecated aliases are added. Closes leanprover-community#13544
Welcome new contributor!Thank you for contributing to Mathlib! If you haven't done so already, please review our contribution guidelines, as well as the style guide and naming conventions. In particular, we kindly remind contributors that we have guidelines regarding the use of AI when making pull requests. We use a review queue to manage reviews. If your PR does not appear there, it is probably because it is not successfully building (i.e., it doesn't have a green checkmark), has the If you haven't already done so, please come to Zulip and join the Lean community. |
PR summary 10247e41a0Import changes for modified filesNo significant changes to the import graph Import changes for all files
|
These commands made the changes in this commit. To make the same fixes yourself, run them in your mathlib4 checkout.
Review follow-up: since the exponent mention was dropped from these names, the base mention goes too.
YaelDillies
left a comment
There was a problem hiding this comment.
Thanks! 🚀
maintainer merge
|
🚀 Pull request has been placed on the maintainer queue by YaelDillies. |
Following #9095, #9235 and #18956, this renames the ambiguous rpow monotonicity lemma names in
Real,NNRealandENNReal, as requested in #13544.The convention is the one established for
pow/zpow: lemmas monotone in the base (the left argument of^) gain_left, lemmas monotone in the exponent gain_right, and iff-variants use the_iff_left/_iff_rightinfixes.Rename summary:
rpow_le_rpow→rpow_le_rpow_left,rpow_lt_rpow→rpow_lt_rpow_left(base varies)rpow_le_rpow_of_nonpos→rpow_le_rpow_left_of_nonpos,rpow_lt_rpow_of_neg→rpow_lt_rpow_left_of_neg(antitone in base)rpow_le_rpow_iff→rpow_le_rpow_iff_left,rpow_lt_rpow_iff→rpow_lt_rpow_iff_left(and the_of_negvariants likewise)rpow_le_rpow_of_exponent_le→rpow_le_rpow_right,rpow_lt_rpow_of_exponent_lt→rpow_lt_rpow_rightrpow_le_rpow_of_exponent_ge→rpow_le_rpow_right_of_le_one,rpow_lt_rpow_of_exponent_gt→rpow_lt_rpow_right_of_lt_one(and the'/of_impvariants), matchingpow_le_pow_right_of_le_one'andpow_lt_pow_right_of_lt_one₀rpow_le_rpow_left_iff→rpow_le_rpow_iff_right,rpow_lt_rpow_left_iff→rpow_lt_rpow_iff_right,rpow_le_rpow_left_iff_of_base_lt_one→rpow_le_rpow_iff_right_of_base_lt_one,rpow_lt_rpow_left_iff_of_base_lt_one→rpow_lt_rpow_iff_right_of_base_lt_one— these varied the exponent, so keeping them under_left_iffwould clash semantically with the new_leftnamesAll uses are updated (50 files, 225 occurrences) and
@[deprecated (since := "2026-11-22")] aliasentries are added for every old name in the three namespaces.Closes #13544