-
Notifications
You must be signed in to change notification settings - Fork 298
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] - feat(logic/equiv/basic): two empty types are equivalent; remove various redundant lemmas #14604
Conversation
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.
Looks good generally, just one name I disagree with
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.
bors d+
Note that the PR description needs updating to reflect the new lemma names
✌️ vihdzp can now approve this pull request. To approve and merge a pull request, simply reply with |
bors r+ |
…us redundant lemmas (#14604) We prove `equiv_of_is_empty`, which states two empty types are equivalent. This allows us to remove various redundant lemmas. We keep `empty_equiv_empty` and `empty_equiv_pempty` as these specific instantiations of that lemma are widely used.
Pull request successfully merged into master. Build succeeded: |
…ique` types (#14605) This PR does various simple and highly related things: - Rename `equiv_of_unique_of_unique` to `equiv_of_unique` and make its arguments explicit, in order to match the lemma `equiv_of_empty` added in #14604. - Rename `equiv_punit_of_unique` to `equiv_punit` and make its argument explicit to match `equiv_pempty`. - Fix their docstrings (which talked about a `subsingleton` type instead of a `unique` one). - Move them much earlier in the file, together with the lemmas on empty types. - Golf `prop_equiv_punit`.
We prove
equiv_of_is_empty
, which states two empty types are equivalent. This allows us to remove various redundant lemmas.We keep
empty_equiv_empty
andempty_equiv_pempty
as these specific instantiations of that lemma are widely used.