-
Notifications
You must be signed in to change notification settings - Fork 362
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] - chore: uncomment cons_injective and cons_inj in Data/List/Basic.lean #372
Conversation
nolints are almost never the right thing to do in response to a linter warning. In this case the issue is that |
Should we remove the |
Yes, |
Please also follow the commit message guidelines and title this PR |
(link to commit message guidelines: https://github.com/leanprover-community/lean/blob/master/doc/commit_convention.md ) |
Updated the PR title (subject) and summary (body) to conform with the conventions. |
Can you please remove the |
And please follow the new conventions. (Which no longer have the |
Removing
These didn't look trivial to fix, so I thought it would it would make sense to land this with the comment instead. |
In mathlib3, [`function.injective`](https://github.com/leanprover-community/lean/blob/4b58f26becf336a50cf037c3e2894b6f2938956e/library/init/function.lean#L73) is not reducible, so `Function.injective` should not be reducible here either. To avoid errors in `Order/Basic` ("@[ext] attribute only applies to structures or lemmas proving x = y"), we need to adjust `extAttribute` too. Fixes some problems seen in #372.
bors r+ |
…372) Uncomment two theorems that were added in commented form in #22. You may compare to the mathlib3 versions here: https://github.com/leanprover-community/mathlib/blob/aaf7dc2c34831dbd92a21b9e37c1f63017d35f45/src/data/list/basic.lean#L50-L54
Pull request successfully merged into master. Build succeeded: |
Uncomment two theorems that were added in commented form in #22.
You may compare to the mathlib3 versions here: https://github.com/leanprover-community/mathlib/blob/aaf7dc2c34831dbd92a21b9e37c1f63017d35f45/src/data/list/basic.lean#L50-L54