Download data/lean/OAI/Analysis/BernoulliCone/HomogeneousCalculus.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.66 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BernoulliCone/HomogeneousCalculus.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BernoulliCone/HomogeneousCalculus.lean
-
curl -L -o HomogeneousCalculus.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BernoulliCone/HomogeneousCalculus.lean
2.66 kB
| 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 | |