New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - refactor(algebra/linear_ordered_comm_group_with_zero, *): mostly take advantage of the new classes for linear_ordered_comm_group_with_zero
#7645
Conversation
ed2371a
to
2682bed
Compare
Not directly related to this PR, but I just noticed that class covariant_class : Prop :=
(covc : covariant M N μ r) |
Sébastien, I changed the classes from |
Oh great! I misread the fact that you changed labels. I thought you put it back to No need to ping me once you're done. I generally look though all Github notifications on PRs I've interacted with (but feel free to ping me once it's waiting for a few days). |
After a really long time, this PR is finally ready again for review! |
src/algebra/order/with_zero.lean
Outdated
... ≤ x * x ^ n : mul_le_mul_left' (left.one_le_pow_of_le H) x | ||
... = x ^ n.succ : (pow_succ x n).symm | ||
|
||
--alias left.one_le_pow_of_le ← one_le_pow_of_one_le' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this intentionally commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The lemma name one_le_pow_of_one_le'
is already used, so I simply removed the comment. Now that the refactor is getting to lemmas that already exist, there might be a little bit of cleaning up to remove duplicates.
I would leave this for subsequent PRs, though!
bors d+ |
✌️ adomani can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
Thank you, Johan for the approval! I am really happy to get this moving again! |
… advantage of the new classes for `linear_ordered_comm_group_with_zero` (#7645) This PR continues the refactor of the `ordered` hierarchy, begun in #7371. In this iteration, I weakened the assumptions of the lemmas in `ordered_group`. The bulk of the changes are in the two files * `algebra/ordered_monoid_lemmas` * `algebra/ordered_group` while the remaining files have been edited mostly to accommodate for name/assumption changes. I have tried to be careful to maintain the **exact** assumptions of each one of the `norm_num` and `linarith` lemmas. For this reason, some lemmas have a proof that is simply an application of a lemma with weaker assumptions. The end result is that no lemma whose proof involved a call to `norm_num` or `linarith` broke.
Pull request successfully merged into master. Build succeeded: |
linear_ordered_comm_group_with_zero
linear_ordered_comm_group_with_zero
This PR continues the refactor of the
ordered
hierarchy, begun in #7371.In this iteration, I weakened the assumptions of the lemmas in
ordered_group
. The bulk of the changes are in the two filesalgebra/ordered_monoid_lemmas
algebra/ordered_group
while the remaining files have been edited mostly to accommodate for name/assumption changes.
I have tried to be careful to maintain the exact assumptions of each one of the
norm_num
andlinarith
lemmas. For this reason, some lemmas have a proof that is simply an application of a lemma with weaker assumptions. The end result is that no lemma whose proof involved a call tonorm_num
orlinarith
broke.covariant
andcontravariant
inordered_monoid_lemmas
#7876, where there is a "minimal" version of splitting off the filealgebra/covariant_and_contravariant
.covariant + contravariant
typeclasses inalgebra/ordered_monoid
#7999, where the covariant and contravariant typeclasses take over the filealgebra/covariant_and_contravariant
.order
refactor -- ordered groups #8060, revamping theordered_group
file.