@@ -455,29 +455,30 @@ lemma mdifferentiable_smul_const_section
455455 fun x₀ ↦ (hs x₀).smul_const_section
456456
457457lemma MDifferentiableWithinAt.sum_section {ι : Type *} {s : Finset ι} {t : ι → (x : B) → E x}
458- (hs : ∀ i, MDiffAt[u] (T% (t i ·)) x₀) :
458+ (hs : ∀ i ∈ s , MDiffAt[u] (T% (t i ·)) x₀) :
459459 MDiffAt[u] (T% (fun x ↦ ∑ i ∈ s, (t i x))) x₀ := by
460460 classical
461461 induction s using Finset.induction_on with
462462 | empty => simpa using ! (contMDiffWithinAt_zeroSection 𝕜 E).mdifferentiableWithinAt one_ne_zero
463463 | insert i s hi h =>
464- simpa [Finset.sum_insert hi] using ! mdifferentiableWithinAt_add_section (hs i) h
464+ simp only [Finset.mem_insert, forall_eq_or_imp] at hs
465+ simpa [Finset.sum_insert hi] using mdifferentiableWithinAt_add_section (hs.1 ) (h hs.2 )
465466
466467lemma MDifferentiableAt.sum_section {ι : Type *} {s : Finset ι} {t : ι → (x : B) → E x} {x₀ : B}
467- (hs : ∀ i, MDiffAt (T% (t i ·)) x₀) :
468+ (hs : ∀ i ∈ s , MDiffAt (T% (t i ·)) x₀) :
468469 MDiffAt (T% (fun x ↦ ∑ i ∈ s, (t i x))) x₀ := by
469470 simp_rw [← mdifferentiableWithinAt_univ] at hs ⊢
470471 exact MDifferentiableWithinAt.sum_section hs
471472
472473lemma MDifferentiableOn.sum_section {ι : Type *} {s : Finset ι} {t : ι → (x : B) → E x}
473- (hs : ∀ i, MDiff[u] (T% (t i ·))) :
474+ (hs : ∀ i ∈ s , MDiff[u] (T% (t i ·))) :
474475 MDiff[u] (T% (fun x ↦ ∑ i ∈ s, (t i x))) :=
475- fun x₀ hx₀ ↦ .sum_section fun i ↦ hs i x₀ hx₀
476+ fun x₀ hx₀ ↦ .sum_section fun i hi ↦ hs i hi x₀ hx₀
476477
477478lemma MDifferentiable.sum_section {ι : Type *} {s : Finset ι} {t : ι → (x : B) → E x}
478- (hs : ∀ i, MDiff (T% (t i ·))) :
479+ (hs : ∀ i ∈ s , MDiff (T% (t i ·))) :
479480 MDiff (T% (fun x ↦ ∑ i ∈ s, (t i x))) :=
480- fun x₀ ↦ .sum_section fun i ↦ (hs i) x₀
481+ fun x₀ ↦ .sum_section fun i hi ↦ (hs i) hi x₀
481482
482483/-- The scalar product `ψ • s` of a differentiable function `ψ : M → 𝕜` and a section `s` of a
483484vector bundle `V → M` is differentiable once `s` is differentiable on an open set containing
@@ -510,7 +511,7 @@ lemma MDifferentiableWithinAt.sum_section_of_locallyFinite
510511 let s := {i | ((fun i ↦ {x | t i x ≠ 0 }) i ∩ u').Nonempty}
511512 have := hfin.fintype
512513 have : MDiffAt[u ∩ u'] (T% (fun x ↦ ∑ i ∈ s, (t i x))) x₀ :=
513- .sum_section fun i ↦ ((ht' i).mono inter_subset_left)
514+ .sum_section fun i _ ↦ ((ht' i).mono inter_subset_left)
514515 apply (mdifferentiableWithinAt_inter hu').mp
515516 apply this.congr' (fun y hy ↦ ?_) inter_subset_right (mem_of_mem_nhds hu')
516517 rw [TotalSpace.mk_inj, tsum_eq_sum']
0 commit comments