From 44eb23a52cc38492aba78f6ad49c54f1e8407f17 Mon Sep 17 00:00:00 2001 From: Scott Morrison Date: Fri, 23 Sep 2022 23:35:54 +0000 Subject: [PATCH] chore(linear_algebra/matrix/adjugate): remove unnecessary fin_cases with (#16605) This was the only use of `fin_cases ... with ...` in mathlib, and it wasn't even necessary. Removing it to avoid having to port unused tactic features. Co-authored-by: Scott Morrison --- src/linear_algebra/matrix/adjugate.lean | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/linear_algebra/matrix/adjugate.lean b/src/linear_algebra/matrix/adjugate.lean index 9083adee09b76..1cad67fe7358d 100644 --- a/src/linear_algebra/matrix/adjugate.lean +++ b/src/linear_algebra/matrix/adjugate.lean @@ -346,7 +346,7 @@ lemma adjugate_fin_two (A : matrix (fin 2) (fin 2) α) : begin ext i j, rw [adjugate_apply, det_fin_two], - fin_cases i with [0, 1]; fin_cases j with [0, 1]; + fin_cases i; fin_cases j; simp only [nat.one_ne_zero, one_mul, fin.one_eq_zero_iff, pi.single_eq_same, zero_mul, fin.zero_eq_one_iff, sub_zero, pi.single_eq_of_ne, ne.def, not_false_iff, update_row_self, update_row_ne, cons_val_zero, mul_zero, mul_one, zero_sub, cons_val_one, head_cons, of_apply],