Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit d908bc0

Browse files
committed
chore(data/fintype): drop a decidable_pred assumption (#14971)
OTOH, now the proof depends on `classical.choice`.
1 parent a95b442 commit d908bc0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/data/fintype/basic.lean

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1004,8 +1004,9 @@ begin
10041004
end
10051005

10061006
/-- If the subtype of all-but-one elements is a `fintype` then the type itself is a `fintype`. -/
1007-
def fintype_of_fintype_ne (a : α) [decidable_pred (= a)] (h : fintype {b // b ≠ a}) : fintype α :=
1008-
fintype.of_equiv _ $ equiv.sum_compl (= a)
1007+
def fintype_of_fintype_ne (a : α) (h : fintype {b // b ≠ a}) : fintype α :=
1008+
fintype.of_bijective (sum.elim (coe : {b // b = a} → α) (coe : {b // b ≠ a} → α)) $
1009+
by { classical, exact (equiv.sum_compl (= a)).bijective }
10091010

10101011
section finset
10111012

0 commit comments

Comments
 (0)