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 tois_empty (fintype α). The oldnot_fintypeis renamed tofintype.false(to allow projection notation), and there are two useful variantsinfinite.falseandnot_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