theoremfixed_hasFDerivAt {F:E×ℝ→G} (hF:ContDiffℝ1F) (x:E) (a b:ℝ) :
HasFDerivAt (funy:E=>∫t in a..b,F (y,t))
(∫t in a..b,fderiv ℝF (x,t) ∘LContinuousLinearMap.inl ℝEℝ) x :=by
proof · 20
lines
letD:E×ℝ→E→L[ℝ] G:=fun p=>fderiv ℝF p ∘LContinuousLinearMap.inl ℝEℝhavehD:ContinuousD:=(hF.continuous_fderiv (by norm_num)).clm_comp continuous_const
havehc:IsCompact ((Metric.closedBall x 1)×ˢ(uIcc a b)):=
(isCompact_closedBall x 1).prod isCompact_uIcc
obtain ⟨C,hC⟩:=hc.exists_bound_of_continuousOn hD.continuousOn
have hFu (y:E):Continuous (funt:ℝ=>F (y,t)):=hF.continuous.comp (continuous_const.prodMk continuous_id)
have hDu (y:E):Continuous (funt:ℝ=>D (y,t)):=hD.comp (continuous_const.prodMk continuous_id)
apply intervalIntegral.hasFDerivAt_integral_of_dominated_of_fderiv_le
(F:=fun y t=>F (y,t)) (F':=fun y t=>D (y,t))
(s:=Metric.closedBall x 1) (bound:=fun _=>C) (Metric.closedBall_mem_nhds x (by norm_num))
· exact .of_forall fun y=>(hFu y).aestronglyMeasurable
· exact (hFu x).intervalIntegrable a b
· exact (hDu x).aestronglyMeasurable
· exact ae_of_all _ fun t ht y hy=>hC (y,t) ⟨hy,uIoc_subset_uIcc ht⟩
· exact intervalIntegrable_const
· exact ae_of_all _ fun t _ y _=>byhavehi:HasFDerivAt (funz:E=>(z,t)) (ContinuousLinearMap.inl ℝEℝ) y :=by
simpa only [ContinuousLinearMap.inl,id_eq] using
(hasFDerivAt_id (𝕜:=ℝ) y).prodMk (hasFDerivAt_const t y)
exact ((hF.differentiable (by norm_num)) (y,t)).hasFDerivAt.comp y hi
letB:(E×ℝ)×ℝ→G:=fun z=>z.1.2 • F (z.1.1,z.2*z.1.2)
havehB:ContDiffℝ1B:=byhavehm:ContDiffℝ1 (funz:(E×ℝ)×ℝ=>(z.1.1,z.2*z.1.2)):=by fun_prop
exact (contDiff_fst.snd).smul (hF.comp hm)
intro p
havehd: DifferentiableAtℝ (funy:E×ℝ=>∫s in (0:ℝ)..1,B (y,s)) p :=
(fixed_hasFDerivAt hB p 01).differentiableAt
exact hd.congr_of_eventuallyEq (.of_forall fun q=>heightPrimitive_rescale F q)
lemmagraph_fderiv {F:E×ℝ→G} (hF:ContDiffℝ1F) {u:E→ℝ} {x:E}
(hu:DifferentiableAtℝ u x) (v:E) :
fderiv ℝ (funy:E=>heightPrimitive F (y,u y)) x v=
(∫s in (0:ℝ)..u x,fderiv ℝF (x,s) (v,0))+fderiv ℝ u x v • F (x,u x) :=by
proof · 8
lines
havehh:HasFDerivAt (funy:E=>heightPrimitive F (y,u y))
(fderiv ℝ (heightPrimitive F) (x,u x) ∘L
(ContinuousLinearMap.id ℝE).prod (fderiv ℝ u x)) x :=HasFDerivAt.comp (g:=heightPrimitive F) (f:=funy:E=>(y,u y)) x
(heightPrimitive_differentiable hF (x,u x)).hasFDerivAt
((hasFDerivAt_id x).prodMk hu.hasFDerivAt)
rw [hh.fderiv]
exact heightPrimitive_fderiv hF (x,u x) v (fderiv ℝ u x v)