Commit 2021-05-18 04:50 3694945d
View on Github →feat(logic/is_empty): Add is_empty typeclass (#7606)
- Refactor some equivalences that use
empty
orpempty
. - Replace
α → false
withis_empty α
in various places (but not everywhere, we can do that in follow-up PRs). infinite
is proven equivalent tois_empty (fintype α)
. The oldnot_fintype
is renamed tofintype.false
(to allow projection notation), and there are two useful variantsinfinite.false
andnot_fintype
added with different arguments explicit.- add instance
unique true
. - Changed the type of
fin_one_equiv
fromfin 1 ≃ punit
tofin 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