Skip to content
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/is_empty): Add is_empty typeclass #7606

Closed
wants to merge 18 commits into from

Conversation

fpvandoorn
Copy link
Member

@fpvandoorn fpvandoorn commented May 13, 2021

  • Refactor some equivalences that use empty or pempty.
  • Replace α → false with is_empty α in various places (but not everywhere, we can do that in follow-up PRs).
  • infinite is proven equivalent to is_empty (fintype α). The old not_fintype is renamed to fintype.false (to allow projection notation), and there are two useful variants infinite.false and not_fintype added with different arguments explicit.
  • add instance unique true.
  • Changed the type of fin_one_equiv from fin 1 ≃ punit to fin 1 ≃ unit (it was used only once, where the former formulation required giving an explicit universe level).
  • renamings:
    equiv.subsingleton_iff -> equiv.subsingleton_congr
    finprod_of_empty -> finprod_of_is_empty

Open in Gitpod

@fpvandoorn fpvandoorn added the WIP Work in progress label May 13, 2021
@fpvandoorn fpvandoorn added awaiting-review The author would like community review of the PR and removed WIP Work in progress labels May 14, 2021
@fpvandoorn
Copy link
Member Author

Build has passed, this can be reviewed while I make the linter happy.

@github-actions github-actions bot added the merge-conflict Please `git merge origin/master` then a bot will remove this label. label May 15, 2021
@github-actions github-actions bot removed the merge-conflict Please `git merge origin/master` then a bot will remove this label. label May 15, 2021
@semorrison
Copy link
Collaborator

Very nice, thank you. No comments. :-)

bors merge

@github-actions 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 May 18, 2021
bors bot pushed a commit that referenced this pull request May 18, 2021
* Refactor some equivalences that use `empty` or `pempty`.
* Replace `α → false` with `is_empty α` in various places (but not everywhere, we can do that in follow-up PRs).
* `infinite` is now defined as `is_empty (fintype α)`. The old `not_fintype` is renamed to `fintype.false` (to allow projection notation), and there are two useful variants `infinite.false` and `not_fintype` added with different arguments explicit.
* add instance `unique true`.
* Changed the type of `fin_one_equiv` from `fin 1 ≃ punit` to `fin 1 ≃ unit` (it was used only once, where the former formulation required giving an explicit universe level).
* renamings:
`equiv.subsingleton_iff` -> `equiv.subsingleton_congr`
`finprod_of_empty` -> `finprod_of_is_empty`
@bors
Copy link

bors bot commented May 18, 2021

Build failed (retrying...):

bors bot pushed a commit that referenced this pull request May 18, 2021
* Refactor some equivalences that use `empty` or `pempty`.
* Replace `α → false` with `is_empty α` in various places (but not everywhere, we can do that in follow-up PRs).
* `infinite` is proven equivalent to `is_empty (fintype α)`. The old `not_fintype` is renamed to `fintype.false` (to allow projection notation), and there are two useful variants `infinite.false` and `not_fintype` added with different arguments explicit.
* add instance `unique true`.
* Changed the type of `fin_one_equiv` from `fin 1 ≃ punit` to `fin 1 ≃ unit` (it was used only once, where the former formulation required giving an explicit universe level).
* renamings:
`equiv.subsingleton_iff` -> `equiv.subsingleton_congr`
`finprod_of_empty` -> `finprod_of_is_empty`
@bors
Copy link

bors bot commented May 18, 2021

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title feat(logic/is_empty): Add is_empty typeclass [Merged by Bors] - feat(logic/is_empty): Add is_empty typeclass May 18, 2021
@bors bors bot closed this May 18, 2021
@bors bors bot deleted the is_empty branch May 18, 2021 10:47
Vierkantor pushed a commit that referenced this pull request May 19, 2021
* Refactor some equivalences that use `empty` or `pempty`.
* Replace `α → false` with `is_empty α` in various places (but not everywhere, we can do that in follow-up PRs).
* `infinite` is proven equivalent to `is_empty (fintype α)`. The old `not_fintype` is renamed to `fintype.false` (to allow projection notation), and there are two useful variants `infinite.false` and `not_fintype` added with different arguments explicit.
* add instance `unique true`.
* Changed the type of `fin_one_equiv` from `fin 1 ≃ punit` to `fin 1 ≃ unit` (it was used only once, where the former formulation required giving an explicit universe level).
* renamings:
`equiv.subsingleton_iff` -> `equiv.subsingleton_congr`
`finprod_of_empty` -> `finprod_of_is_empty`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready-to-merge All that is left is for bors to build and merge this PR. (Remember you need to say `bors r+`.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants