Skip to content

Commit 0da722a

Browse files
committed
Minor simplifications
1 parent bad4b28 commit 0da722a

1 file changed

Lines changed: 9 additions & 10 deletions

File tree

Mathlib/LinearAlgebra/Lagrange.lean

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -480,27 +480,26 @@ theorem iterate_derivative_interpolate
480480
omega
481481
_ = k.factorial * ∑ t ∈ (s.erase i).powersetCard (#s - (k + 1)),
482482
∏ a ∈ t, (X - C (v a)) := by
483-
rw [powersetCard_eq_filter, powersetCard_eq_filter, powerset_image,
484-
sum_nbij (fun (t : Finset ι) => t.image v)]
483+
rw [powersetCard_eq_filter, powerset_image, sum_nbij (fun (t : Finset ι) => t.image v)]
485484
case hi =>
486485
intro a ha
487-
rw [mem_filter, mem_powerset] at ha
486+
rw [mem_powersetCard] at ha
488487
rw [mem_filter, mem_image]
489488
refine ⟨⟨a, by simp [ha.1]⟩, ?_⟩
490-
rw [card_image_of_injOn (hvs'.mono (coe_subset.mpr ha.1))]
489+
rw [card_image_of_injOn (hvs'.mono (by grind))]
491490
exact ha.2
492-
case i_inj => exact (image_injOn_powerset_of_injOn hvs').mono (coe_subset.mpr (by simp))
491+
case i_inj => exact (image_injOn_powerset_of_injOn hvs').mono (by grind)
493492
case i_surj =>
494493
intro t ht
495494
rw [mem_coe, mem_filter, mem_image] at ht
496495
obtain ⟨a, ha⟩ := ht.1
497-
simp_rw [Set.mem_image, mem_coe, mem_filter]
498-
refine ⟨a, ⟨⟨ha.1, ?_⟩, ha.2⟩⟩
499-
rw [← ht.2, ← ha.2, card_image_of_injOn (hvs'.mono (coe_subset.mpr (mem_powerset.mp ha.1)))]
496+
simp_rw [Set.mem_image, mem_coe, mem_powersetCard]
497+
refine ⟨a, ⟨⟨mem_powerset.mp ha.1, ?_⟩, ha.2⟩⟩
498+
rw [← ht.2, ← ha.2, card_image_of_injOn (hvs'.mono (by grind))]
500499
case h =>
501500
intro a ha
502-
rw [mem_filter, mem_powerset] at ha
503-
rw [prod_image (hvs'.mono (coe_subset.mpr ha.1))]
501+
convert (prod_image (hvs'.mono (coe_subset.mpr (mem_powersetCard.mp ha).1))).symm
502+
rfl
504503

505504
theorem eval_iterate_derivative_eq_sum
506505
(hvs : Set.InjOn v s) {P : Polynomial F} (hP : #s = P.degree + 1)

0 commit comments

Comments
 (0)