We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e503193 commit a564e38Copy full SHA for a564e38
1 file changed
Mathlib/Combinatorics/Enumerative/Bonferroni.lean
@@ -38,7 +38,7 @@ private lemma trunc_choose_sum_eq_one_sub (m k : ℕ) (hk : k < m) :
38
1 - ((-1 : ℤ) ^ k) * (choose (m - 1) k) := by
39
simp only [show ∀ j : ℕ, ((-1 : ℤ) ^ (j + 1)) = -((-1 : ℤ) ^ j) from fun j ↦ by ring,
40
neg_mul, sum_neg_distrib]
41
- simp [neg_eq_iff_eq_neg]
+ simp only [reduceNeg, neg_eq_iff_eq_neg, neg_sub]
42
have insert_eq : range (k + 1) = insert 0 (Finset.Icc 1 k) := by grind
43
calc
44
_ = (∑ j ∈ range (k + 1), ((-1 : ℤ) ^ j) * (choose m j)) - 1 := by simp [insert_eq]
0 commit comments