File size: 2,656 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | import OAI.Analysis.BernoulliCone.PositiveQuotient
namespace OAI
universe uE
section
noncomputable section
open Set Filter
open scoped Topology ContDiff
namespace Bernoulli.ConeCalculus
variable {E : Type uE} [NormedAddCommGroup E] [NormedSpace β E]
lemma euler_identity {f : E β β} {x : E} (hf : DifferentiableAt β f x)
(hom : β r : β, 0 < r β β y, f (r β’ y) = r*f y) :
fderiv β f x x = f x := by
have hc : HasDerivAt (fun r : β => f (r β’ x)) (fderiv β f x x) 1 := by
have hf1 : HasFDerivAt f (fderiv β f x) ((fun r : β => r β’ x) 1) := by simpa using hf.hasFDerivAt
convert! hf1.comp_hasDerivAt 1 ((hasDerivAt_id (1:β)).smul_const x) using 1
simp
have he : (fun r : β => f (r β’ x)) =αΆ [π 1] (fun r => r*f x) := by
filter_upwards [eventually_gt_nhds (by norm_num : (0:β)<1)] with r hr
exact hom r hr x
apply hc.unique
simpa using (((hasDerivAt_id (1:β)).mul_const (f x)).congr_of_eventuallyEq he)
/-- Euler's homogeneous identity differentiated on the actual open smooth
phase. No Hessian or angular equation is assumed. -/
lemma hessian_radial {f : E β β} {O : Set E} (hO : IsOpen O)
(hf : ContDiffOn β β f O)
(hom : β r : β, 0 < r β β y, f (r β’ y) = r*f y)
{x : E} (hx : xβO) (v : E) :
fderiv β (fderiv β f) x v x = 0 := by
have hs := hf.contDiffAt (hO.mem_nhds hx)
have hd := hs.differentiableAt (by simp)
have hD : DifferentiableAt β (fderiv β f) x :=
(hs.fderiv_right (m:=1) (by change (β(2 : ββ) : WithTop ββ) β€ β(β€ : ββ); exact WithTop.coe_le_coe.mpr le_top)).differentiableAt (by simp)
have he : (fun y => fderiv β f y y) =αΆ [π x] f := by
filter_upwards [hO.mem_nhds hx] with y hy
exact euler_identity ((hf.contDiffAt (hO.mem_nhds hy)).differentiableAt (by simp)) hom
have hh := (hD.hasFDerivAt.clm_apply (hasFDerivAt_id x)).congr_of_eventuallyEq he.symm
have heq := congrArg (fun A : E βL[β] β => A v) (hh.unique hd.hasFDerivAt)
simp only [add_apply,ContinuousLinearMap.coe_comp,
Function.comp_apply,ContinuousLinearMap.id_apply,ContinuousLinearMap.flip_apply,id_eq] at heq
linarith
variable {d : β}
lemma laplacian_trace (f : EuclideanSpace β (Fin d) β β) (x : EuclideanSpace β (Fin d)) :
Laplacian.laplacian f x = β i, fderiv β (fderiv β f) x
(EuclideanSpace.basisFun (Fin d) β i) (EuclideanSpace.basisFun (Fin d) β i) := by
rw [InnerProductSpace.laplacian_eq_iteratedFDeriv_orthonormalBasis f
(EuclideanSpace.basisFun (Fin d) β)]
simp [iteratedFDeriv_two_apply]
end Bernoulli.ConeCalculus
end
end
end OAI
|