Skip to content

Commit a564e38

Browse files
committed
style(Combinatorics/Enumerative/Bonferroni): fix linter warning
1 parent e503193 commit a564e38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Mathlib/Combinatorics/Enumerative/Bonferroni.lean

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ private lemma trunc_choose_sum_eq_one_sub (m k : ℕ) (hk : k < m) :
3838
1 - ((-1 : ℤ) ^ k) * (choose (m - 1) k) := by
3939
simp only [show ∀ j : ℕ, ((-1 : ℤ) ^ (j + 1)) = -((-1 : ℤ) ^ j) from fun j ↦ by ring,
4040
neg_mul, sum_neg_distrib]
41-
simp [neg_eq_iff_eq_neg]
41+
simp only [reduceNeg, neg_eq_iff_eq_neg, neg_sub]
4242
have insert_eq : range (k + 1) = insert 0 (Finset.Icc 1 k) := by grind
4343
calc
4444
_ = (∑ j ∈ range (k + 1), ((-1 : ℤ) ^ j) * (choose m j)) - 1 := by simp [insert_eq]

0 commit comments

Comments
 (0)