Skip to content

Commit efcab06

Browse files
Komyyyjoelriou
authored andcommitted
chore: reduce open Fin.NatCast (leanprover-community#29443)
Co-authored-by: Komyyy <pol_tta@outlook.jp>
1 parent d6f634d commit efcab06

File tree

1 file changed

+1
-2
lines changed
  • Mathlib/LinearAlgebra/Matrix/GeneralLinearGroup

1 file changed

+1
-2
lines changed

Mathlib/LinearAlgebra/Matrix/GeneralLinearGroup/Card.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ local notation "n" => Module.finrank K V
3030

3131
attribute [local instance] Fintype.ofFinite in
3232
open Fintype in
33-
open Fin.NatCast in -- TODO: should this be refactored to avoid needing the coercion?
3433
/-- The cardinal of the set of linearly independent vectors over a finite dimensional vector space
3534
over a finite field. -/
3635
theorem card_linearIndependent {k : ℕ} (hk : k ≤ n) :
@@ -49,7 +48,7 @@ theorem card_linearIndependent {k : ℕ} (hk : k ≤ n) :
4948
simp only [SetLike.coe_sort_coe, finrank_span_eq_card s.2, card_fin]
5049
rw [Module.card_eq_pow_finrank (K := K)]
5150
simp [card_congr (equiv_linearIndependent k), sum_congr _ _ this, ih (Nat.le_of_succ_le hk),
52-
mul_comm, Fin.prod_univ_succAbove _ k]
51+
mul_comm, Fin.prod_univ_succAbove _ (Fin.last k)]
5352

5453
end LinearIndependent
5554

0 commit comments

Comments
 (0)