This repository has been archived by the owner on Jul 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 298
[Merged by Bors] - feat(algebra/group/with_one): make with_one and with_zero irreducible. #3883
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bryangingechen
changed the title
feat:(algebra/group/with_one): make with_one and with_zero irreducible.
feat(algebra/group/with_one): make with_one and with_zero irreducible.
Aug 20, 2020
kbuzzard
added
the
awaiting-review
The author would like community review of the PR
label
Aug 20, 2020
jcommelin
approved these changes
Aug 20, 2020
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.
LGTM, mod minor comments
jcommelin
added
awaiting-author
A reviewer has asked the author a question or requested changes
and removed
awaiting-review
The author would like community review of the PR
labels
Aug 20, 2020
Co-authored-by: Johan Commelin <johan@commelin.net>
Co-authored-by: Johan Commelin <johan@commelin.net>
Shall I do the same with |
kbuzzard
added
awaiting-review
The author would like community review of the PR
and removed
awaiting-author
A reviewer has asked the author a question or requested changes
labels
Aug 21, 2020
If you have the energy (-; But maybe in another PR? |
jcommelin
approved these changes
Aug 22, 2020
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.
Thanks 🎉
bors merge
github-actions
bot
added
ready-to-merge
All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
and removed
awaiting-review
The author would like community review of the PR
labels
Aug 22, 2020
Pull request successfully merged into master. Build succeeded: |
bors
bot
changed the title
feat(algebra/group/with_one): make with_one and with_zero irreducible.
[Merged by Bors] - feat(algebra/group/with_one): make with_one and with_zero irreducible.
Aug 22, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
ready-to-merge
All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We make
with_zero
andwith_one
irreducible.Arguments for: currently the simplifier will apply
with_one
lemmas towith_zero
terms, causing "false positives" with the simp linter. Sometimes these are good (if the goal gets closed), but sometimes the goal state is in some sense corrupted. Making these irreducible stops this happening.Arguments against: one will need to duplicate some API -- so far I didn't need to duplicate anything though because a lot was duplicated already.
I was surprised how little of mathlib this broke. If people are generally enthusiastic about the idea then we could also make
with_top
andwith_bot
irreducible.This idea was suggested by Johan in #3716 (comment) .
Zulip chat: https://leanprover.zulipchat.com/#narrow/stream/113488-general/topic/.22bug.22.20in.20.60simp.60.3F/near/207319933