We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a44ba46 commit 38ca5c2Copy full SHA for 38ca5c2
Mathlib/Algebra/BigOperators/Fin.lean
@@ -733,11 +733,8 @@ theorem prod_take_ofFn {n : ℕ} (f : Fin n → M) (i : ℕ) :
733
· have : i < length (ofFn f) := by rwa [length_ofFn]
734
rw [prod_take_succ _ _ this]
735
have A : ({j | j.val < i + 1} : Finset (Fin n)) =
736
- insert ⟨i, h⟩ ({j | Fin.val j < i} : Finset (Fin n)) := by
737
- ext ⟨_, _⟩
738
- simp [Nat.lt_succ_iff_lt_or_eq, or_comm]
739
- rw [A, prod_insert (by simp), IH, mul_comm]
740
- simp
+ insert ⟨i, h⟩ ({j | Fin.val j < i} : Finset (Fin n)) := by grind
+ grind
741
· have A : (ofFn f).take i = (ofFn f).take i.succ := by
742
rw [← length_ofFn (f := f)] at h
743
have : length (ofFn f) ≤ i := not_lt.mp h
0 commit comments