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
feat(tactic/lint): check if inhabited instances should be nonempty #1971
Conversation
Well, that's good to know: GH Actions does build a merge commit on PR builds. I was wondering if/how to avoid the duplicate PR and branch builds, but they're apparently not duplicates. |
234877c
to
bbaf10a
Compare
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, but there are currently some conflicts.
Well, that was fast, I rebased it this afternoon. Will fix tomorrow. |
…eanprover-community#1971) * add inhabited vs nonempty linter * add new linter to ci * start updating files to pass linter * more linter fixes * fix more linter errors * more fixes * fix build * remove unnecessary instances * nicer proof * adjust inhabit tactic * improve proof * move instance to better place * generalize instance * fix build * inhabited -> nonempty * fix build
…eanprover-community#1971) * add inhabited vs nonempty linter * add new linter to ci * start updating files to pass linter * more linter fixes * fix more linter errors * more fixes * fix build * remove unnecessary instances * nicer proof * adjust inhabit tactic * improve proof * move instance to better place * generalize instance * fix build * inhabited -> nonempty * fix build
This was mentioned here and in #1924. In a theorem or lemma, an argument of type
inhabited
that isn't used in following arguments or in the type can be (constructively) weakened tononempty
.For convenience, this PR also adds a tactic
inhabit α
that upgrades anonempty α
instance in the local context toinhabited α
.TO CONTRIBUTORS:
Make sure you have:
If this PR is related to a discussion on Zulip, please include a link in the discussion.
For reviewers: code review check list