Commit 2022-07-07 16:57 7428bd9b
View on Github →refactor(data/finite/set,data/set/finite): move most contents of one file to another (#15166)
- move most content of
data.finite.set
todata.set.finite
; - use
casesI nonempty_fintype _
instead ofletI := fintype.of_finite
; sometimes it lets us avoidclassical.choice
; - merge
set.finite.of_fintype
,set.finite_of_fintype
, andset.finite_of_finite
intoset.to_finite
; - rewrite
set.finite_univ_iff
andfinite.of_finite_univ
in terms ofset.finite
; - replace some assumptions
[fintype (plift _)]
with[finite _]
; - generalize
set.cod_restrict
and some lemmas to allow domain inSort*
, use it forfinite.of_injective_finite.range
.