Commit 2021-05-18 04:50 3694945d
View on Github →feat(logic/is_empty): Add is_empty typeclass (#7606)
- Refactor some equivalences that use emptyorpempty.
- Replace α → falsewithis_empty αin various places (but not everywhere, we can do that in follow-up PRs).
- infiniteis proven equivalent to- is_empty (fintype α). The old- not_fintypeis renamed to- fintype.false(to allow projection notation), and there are two useful variants- infinite.falseand- not_fintypeadded with different arguments explicit.
- add instance unique true.
- Changed the type of fin_one_equivfromfin 1 ≃ punittofin 1 ≃ unit(it was used only once, where the former formulation required giving an explicit universe level).
- renamings:
equiv.subsingleton_iff->equiv.subsingleton_congrfinprod_of_empty->finprod_of_is_empty