Commit 2023-12-18 07:15 d61c95e1
View on Github →chore: Rename pow monotonicity lemmas (#9095)
The names for lemmas about monotonicity of (a ^ ·) and (· ^ n) were a mess. This PR tidies up everything related by following the naming convention for (a * ·) and (· * b). Namely, (a ^ ·) is pow_right and (· ^ n) is pow_left in lemma names. All lemma renames follow the corresponding multiplication lemma names closely.
Renames
Algebra.GroupPower.Order
pow_mono→pow_right_monopow_le_pow→pow_le_pow_rightpow_le_pow_of_le_left→pow_le_pow_leftpow_lt_pow_of_lt_left→pow_lt_pow_leftstrictMonoOn_pow→pow_left_strictMonoOnpow_strictMono_right→pow_right_strictMonopow_lt_pow→pow_lt_pow_rightpow_lt_pow_iff→pow_lt_pow_iff_rightpow_le_pow_iff→pow_le_pow_iff_rightself_lt_pow→lt_self_powstrictAnti_pow→pow_right_strictAntipow_lt_pow_iff_of_lt_one→pow_lt_pow_iff_right_of_lt_onepow_lt_pow_of_lt_one→pow_lt_pow_right_of_lt_onelt_of_pow_lt_pow→lt_of_pow_lt_pow_leftle_of_pow_le_pow→le_of_pow_le_pow_leftpow_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_rightpow_lt_pow'→pow_lt_pow_right'nsmul_lt_nsmul→nsmul_lt_nsmul_leftpow_strictMono_left→pow_right_strictMono'nsmul_strictMono_right→nsmul_left_strictMonoStrictMono.pow_right'→StrictMono.pow_constStrictMono.nsmul_left→StrictMono.const_nsmulpow_strictMono_right'→pow_left_strictMononsmul_strictMono_left→nsmul_right_strictMonoMonotone.pow_right→Monotone.pow_constMonotone.nsmul_left→Monotone.const_nsmullt_of_pow_lt_pow'→lt_of_pow_lt_pow_left'lt_of_nsmul_lt_nsmul→lt_of_nsmul_lt_nsmul_rightpow_le_pow'→pow_le_pow_right'nsmul_le_nsmul→nsmul_le_nsmul_leftpow_le_pow_of_le_one'→pow_le_pow_right_of_le_one'nsmul_le_nsmul_of_nonpos→nsmul_le_nsmul_left_of_nonposle_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_leftpow_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_leftNat.pow_le_iff_le_left→Nat.pow_le_pow_iff_leftNat.pow_lt_iff_lt_left→Nat.pow_lt_pow_iff_left
Lemmas added
pow_le_pow_iff_leftpow_lt_pow_iff_leftpow_right_injectivepow_right_injNat.pow_le_pow_leftto have the correct name sinceNat.pow_le_pow_of_le_leftis in Std.Nat.pow_le_pow_rightto have the correct name sinceNat.pow_le_pow_of_le_rightis in Std.
Lemmas removed
self_le_powwas a duplicate ofle_self_pow.Nat.pow_lt_pow_of_lt_rightis defeq topow_lt_pow_right.Nat.pow_right_strictMonois defeq topow_right_strictMono.Nat.pow_le_iff_le_rightis defeq topow_le_pow_iff_right.Nat.pow_lt_iff_lt_rightis defeq topow_lt_pow_iff_right.
Other changes
- A bunch of proofs have been golfed.
- Some lemma assumptions have been turned from
0 < nor1 ≤ nton ≠ 0. - A few
Natlemmas have beenprotected. - One docstring has been fixed.