Commit 2023-09-14 10:14 9476eae9
View on Github →chore(Co(ntra)variantClass): generalize and remove duplicates (#6677) 4 files have major changes: Algebra/CovariantAndContravariant.lean
- Add new theorem
contravariant_le_iff_contravariant_lt_and_eq. - Add
covariantClass_le_of_ltgeneralizing and replacingMul.to_covariantClass_left/rightin Algebra/Order/Monoid/Defs.lean - Replace
CommSemigroupbyIsSymmOp N N muand replaceCancelSemigroupbyIsMulCancel, removing superfluous associativity assumption. - new theorems
covariant_lt_of_covariant_le_of_contravariant_eqandcontravariant_le_of_contravariant_eq_and_ltthat could replace eight instances when appropriate refactoring is in place. - Golfs
- Fix changed names in other files. Algebra/Order/Monoid/Lemmas.lean
- Generalize
mul_eq_mul_iff_eq_and_eqand remove the less generalLeft/Right.mul_eq_mul_iff_eq_and_eq. - Move
mul_le_mul_iff_of_ge. - Introduce the more general Left/Right versions of
min_le_max_of_mul_le_mul. - Move
min_lt_max_of_mul_lt_mulhere from Algebra/GroupPower/Order.lean. - Replace
CommSemigroupbyIsSymmOp. Algebra/Order/Monoid/Basic.lean - Remove
eq_and_eq_of_le_of_le_of_mul_leas it's just one direction ofmul_le_mul_iff_of_gebut with more assumptions. Algebra/Order/Ring/Lemmas.lean - Generalize two versions of
mul_eq_mul_iff_eq_and_eq_of_pos - Golfs Changes to Algebra/Group/UniqueProds.lean and Algebra/MonoidAlgebra/NoZeroDivisors.lean are in declarations that will be removed by #6723.