Skip to content

Commit 4dd7538

Browse files
sgouezelriccardobrasca
authored andcommitted
chore: remove a backward.inferInstanceAs.wrap false (leanprover-community#37586)
Co-authored-by: sgouezel <sebastien.gouezel@univ-rennes1.fr>
1 parent 9640859 commit 4dd7538

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

Mathlib/NumberTheory/LucasLehmer.lean

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -461,12 +461,11 @@ lemma ω_pow_trace [Fact q.Prime] (odd : Odd q)
461461

462462
variable [NeZero q]
463463

464-
set_option backward.inferInstanceAs.wrap false in
465-
instance : Fintype (X q) := inferInstanceAs (Fintype (ZMod q × ZMod q))
464+
instance : Fintype (X q) := inferInstanceAs <| Fintype (ZMod q × ZMod q)
466465

467466
/-- The cardinality of `X` is `q^2`. -/
468467
theorem card_eq : Fintype.card (X q) = q ^ 2 := by
469-
dsimp [X]
468+
change Fintype.card (ZMod q × ZMod q) = q ^ 2
470469
rw [Fintype.card_prod, ZMod.card q, sq]
471470

472471
/-- There are strictly fewer than `q^2` units, since `0` is not a unit. -/

0 commit comments

Comments
 (0)