We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cb2c81 commit 66153a0Copy full SHA for 66153a0
Batteries/Data/List/Lemmas.lean
@@ -543,7 +543,7 @@ theorem findIdxs_append :
543
@[simp, grind =]
544
theorem findIdxs_take :
545
((xs : List α).take n).findIdxs p s = (xs.findIdxs p s).take ((xs.take n).countP p) := by
546
- induction xs generalizing n s <;> cases n <;> grind
+ induction xs generalizing n s <;> cases n <;> grind [countP_eq_length_filter]
547
548
@[simp, grind =>]
549
theorem le_getElem_findIdxs (h : i < ((xs : List α).findIdxs p s).length) :
0 commit comments