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

Commit d8ac338

Browse files
committed
lint(data/zmod/quotient): fix fintype/finite (#17613)
1 parent 568eb9b commit d8ac338

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/data/zmod/quotient.lean

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,10 @@ attribute [to_additive orbit_zmultiples_equiv_symm_apply'] orbit_zpowers_equiv_s
152152
minimal_period ((•) a) b = fintype.card (orbit (zpowers a) b) :=
153153
by rw [←fintype.of_equiv_card (orbit_zpowers_equiv a b), zmod.card]
154154

155-
@[to_additive] instance minimal_period_pos [fintype $ orbit (zpowers a) b] :
155+
@[to_additive] instance minimal_period_pos [finite $ orbit (zpowers a) b] :
156156
ne_zero $ minimal_period ((•) a) b :=
157157
begin
158+
casesI nonempty_fintype (orbit (zpowers a) b),
158159
haveI : nonempty (orbit (zpowers a) b) := (orbit_nonempty b).to_subtype,
159160
rw minimal_period_eq_card,
160161
exact fintype.card_ne_zero,

0 commit comments

Comments
 (0)