[Merged by Bors] - chore: uncomment cons_injective and cons_inj in Data/List/Basic.lean#372
[Merged by Bors] - chore: uncomment cons_injective and cons_inj in Data/List/Basic.lean#372dwrensha wants to merge 3 commits intoleanprover-community:masterfrom
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