cfahlgren1/math / lean /OAI /Geometry /SmoothYau /Smoothness /PulledGradient.lean
cfahlgren1's picture
download
raw
52.2 kB
import Mathlib import OAI.Geometry.SmoothYau.Estimates.ExistsPreparationCovector import OAI.Geometry.SmoothYau.Estimates.RadialSpeedPositiveAnnulus import OAI.Geometry.SmoothYau.Geometry.MetricGradient import OAI.Geometry.SmoothYau.Limits.CoordinateForm namespace OAI noncomputable section namespace YauCounterexamples section open Set Filter Manifold Bundle MeasureTheory open scoped Topology ContDiff ENNReal open Set Filter Manifold Bundle open scoped Topology ContDiff open Set Filter Manifold Bundle open scoped Topology ContDiff variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E] [FiniteDimensional โ„ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold ๐“˜(โ„,E) โˆž M] def localMetricFlat (g : SmoothMetric E M) (p x : M) : E โ†’L[โ„] E โ†’L[โ„] โ„ := ContinuousLinearMap.inCoordinates E (TangentSpace ๐“˜(โ„,E)) (E โ†’L[โ„] โ„) (fun x => TangentSpace ๐“˜(โ„,E) x โ†’L[โ„] โ„) p x p x (g.inner x) omit [FiniteDimensional โ„ E] in lemma localMetricFlat_pairing (g : SmoothMetric E M) (p x : M) (hx : x โˆˆ (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).baseSet) (v w : E) : localMetricFlat g p x v w = g.inner x ((trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).symm x v) ((trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).symm x w) := by unfold localMetricFlat rw [inCoordinates_apply_eqโ‚‚ hx hx (by simp)] simp lemma localMetricFlat_invertible (g : SmoothMetric E M) (p x : M) (hx : x โˆˆ (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).baseSet) : (localMetricFlat g p x).IsInvertible := by let e := (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).continuousLinearEquivAt โ„ x hx have hi : Function.Injective (localMetricFlat g p x) := by apply (localMetricFlat g p x).ker_eq_bot.mp rw [LinearMap.ker_eq_bot'] intro v hv by_contra hn have he : e.symm v โ‰  0 := by simpa only [ne_eq,EmbeddingLike.map_eq_zero_iff] using hn have hp := g.pos x (e.symm v) he have hz := congrArg (fun f : E โ†’L[โ„] โ„ => f v) hv change localMetricFlat g p x v v = 0 at hz rw [localMetricFlat_pairing g p x hx] at hz change g.inner x (e.symm v) (e.symm v) = 0 at hz linarith have hdim : Module.finrank โ„ E = Module.finrank โ„ (E โ†’L[โ„] โ„) := (InnerProductSpace.toDual โ„ E).toLinearEquiv.finrank_eq have hs := (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mp hi exact โŸจ(LinearEquiv.ofBijective (localMetricFlat g p x).toLinearMap โŸจhi,hsโŸฉ).toContinuousLinearEquiv,rflโŸฉ omit [FiniteDimensional โ„ E] in lemma contMDiffAt_localMetricFlat (g : SmoothMetric E M) (p : M) : ContMDiffAt ๐“˜(โ„,E) ๐“˜(โ„,E โ†’L[โ„] E โ†’L[โ„] โ„) โˆž (localMetricFlat g p) p := by have hg := g.contMDiff p rw [contMDiffAt_section p] at hg simp only [hom_trivializationAt_apply] at hg convert! hg using 1 lemma local_metricGradient (g : SmoothMetric E M) (u : M โ†’ โ„) (p x : M) (hx : x โˆˆ (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).baseSet) : (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p โŸจx,metricGradient g u xโŸฉ).2 = (localMetricFlat g p x).inverse (inTangentCoordinates ๐“˜(โ„,E) ๐“˜(โ„,โ„) id u (mfderiv ๐“˜(โ„,E) ๐“˜(โ„,โ„) u) p x) := by symm apply (localMetricFlat_invertible g p x hx).inverse_apply_eq.mpr ext w rw [localMetricFlat_pairing g p x hx,Trivialization.symm_apply_apply_mk _ hx, metricGradient_pairing] unfold inTangentCoordinates simp only [id_eq] have he := ContinuousLinearMap.inCoordinates_eq (ฯ• := mfderiv ๐“˜(โ„,E) ๐“˜(โ„,โ„) u x) hx (show u x โˆˆ (trivializationAt โ„ (TangentSpace ๐“˜(โ„,โ„)) (u p)).baseSet by simp [TangentBundle.trivializationAt_baseSet, chartAt_self_eq]) have hew := congrArg (fun L : E โ†’L[โ„] โ„ => L w) he exact hew.trans (by simp [Trivialization.continuousLinearEquivAt_apply, Trivialization.continuousLinearEquivAt_symm_apply] rfl) theorem contMDiff_metricGradient (g : SmoothMetric E M) {u : M โ†’ โ„} (hu : ContMDiff ๐“˜(โ„,E) ๐“˜(โ„,โ„) โˆž u) : ContMDiff ๐“˜(โ„,E) (๐“˜(โ„,E).prod ๐“˜(โ„,E)) โˆž (fun x => TotalSpace.mk' E x (metricGradient g u x)) := by intro p rw [contMDiffAt_section p] have hg := contMDiffAt_localMetricFlat g p have hi := (localMetricFlat_invertible g p p (mem_baseSet_trivializationAt E _ p)).contDiffAt_map_inverse (n := โˆž) have hs := (hi.comp_contMDiffAt hg).clm_apply ((hu p).mfderiv_const (m := โˆž) (by simp)) apply hs.congr_of_eventuallyEq filter_upwards [(trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).open_baseSet.mem_nhds (mem_baseSet_trivializationAt E _ p)] with x hx exact local_metricGradient g u p x hx end section open Set Filter Manifold Bundle MeasureTheory open scoped Topology ContDiff ENNReal open Set Filter Manifold Bundle open scoped Topology ContDiff open Set Filter Manifold Bundle open scoped Topology ContDiff variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E] [FiniteDimensional โ„ E] local instance metricDualNorm : NormedAddCommGroup (E โ†’L[โ„] โ„) := inferInstance local instance metricDualSpace : NormedSpace โ„ (E โ†’L[โ„] โ„) := inferInstance local instance metricFormNorm : NormedAddCommGroup (E โ†’L[โ„] E โ†’L[โ„] โ„) := inferInstance local instance metricFormSpace : NormedSpace โ„ (E โ†’L[โ„] E โ†’L[โ„] โ„) := inferInstance local instance metricTriNorm : NormedAddCommGroup (E โ†’L[โ„] E โ†’L[โ„] E โ†’L[โ„] โ„) := inferInstance local instance metricTriSpace : NormedSpace โ„ (E โ†’L[โ„] E โ†’L[โ„] E โ†’L[โ„] โ„) := inferInstance def selfMetricFlat (g : SmoothMetric E E) (x : E) : E โ†’L[โ„] E โ†’L[โ„] โ„ := (g.inner x).bilinearComp (NormedSpace.fromTangentSpace (๐•œ:=โ„) x).symm.toContinuousLinearMap (NormedSpace.fromTangentSpace (๐•œ:=โ„) x).symm.toContinuousLinearMap omit [FiniteDimensional โ„ E] in lemma selfMetricFlat_apply (g : SmoothMetric E E) (x v w : E) : selfMetricFlat g x v w = g.inner x v w := rfl omit [FiniteDimensional โ„ E] in lemma localMetricFlat_self (g : SmoothMetric E E) (p x : E) : localMetricFlat g p x = selfMetricFlat g x := by ext v w rw [localMetricFlat_pairing g p x (by simp [TangentBundle.trivializationAt_baseSet, chartAt_self_eq])] have hv (v : E) : (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).symm x v = v := by rw [โ†Trivialization.symmL_apply (R := โ„) _ (by simp [TangentBundle.trivializationAt_baseSet, chartAt_self_eq]) v, TangentBundle.symmL_model_space] rfl rw [hv,hv] rfl omit [FiniteDimensional โ„ E] in lemma contDiff_selfMetricFlat (g : SmoothMetric E E) : ContDiff โ„ โˆž (selfMetricFlat g) := by rw [contDiff_iff_contDiffAt] intro x have h := contMDiffAt_localMetricFlat g x rw [contMDiffAt_iff_contDiffAt] at h have heq : localMetricFlat g x = selfMetricFlat g := funext (localMetricFlat_self g x) rwa [heq] at h omit [FiniteDimensional โ„ E] in lemma selfMetricFlat_symm (g : SmoothMetric E E) (x v w : E) : selfMetricFlat g x v w = selfMetricFlat g x w v := g.symm x v w omit [FiniteDimensional โ„ E] in lemma selfMetricFlat_pos (g : SmoothMetric E E) (x : E) {v : E} (hv : v โ‰  0) : 0 < selfMetricFlat g x v v := g.pos x v hv lemma selfMetricFlat_invertible (g : SmoothMetric E E) (x : E) : (selfMetricFlat g x).IsInvertible := by rw [โ†localMetricFlat_self g x x] exact localMetricFlat_invertible g x x (mem_baseSet_trivializationAt E _ x) def coordinateKoszul (D : E โ†’L[โ„] E โ†’L[โ„] E โ†’L[โ„] โ„) : E โ†’L[โ„] E โ†’L[โ„] E โ†’L[โ„] โ„ := (1/2 : โ„) โ€ข (D+D.flip-(ContinuousLinearMap.flipโ‚—แตข โ„ E E โ„).toContinuousLinearMap.comp D.flip) lemma coordinateKoszul_apply (D : E โ†’L[โ„] E โ†’L[โ„] E โ†’L[โ„] โ„) (v w z : E) : coordinateKoszul D v w z = (D v w z+D w v z-D z v w)/2 := by change (1/2 : โ„) * (D v w z+D w v z-D z v w) = _ ring def metricChristoffel (g : SmoothMetric E E) (x : E) : E โ†’L[โ„] E โ†’L[โ„] E := ((ContinuousLinearMap.compL โ„ E (E โ†’L[โ„] โ„) E) (selfMetricFlat g x).inverse).comp (coordinateKoszul (fderiv โ„ (selfMetricFlat g) x)) lemma metricChristoffel_pairing (g : SmoothMetric E E) (x v w z : E) : selfMetricFlat g x (metricChristoffel g x v w) z = (fderiv โ„ (selfMetricFlat g) x v w z+fderiv โ„ (selfMetricFlat g) x w v z- fderiv โ„ (selfMetricFlat g) x z v w)/2 := by have h := (selfMetricFlat_invertible g x).inverse_apply_eq.mp (show (selfMetricFlat g x).inverse (coordinateKoszul (fderiv โ„ (selfMetricFlat g) x) v w) = metricChristoffel g x v w from rfl) exact (congrArg (fun l : E โ†’L[โ„] โ„ => l z) h.symm).trans (coordinateKoszul_apply _ _ _ _) lemma contDiff_metricChristoffel (g : SmoothMetric E E) : ContDiff โ„ โˆž (metricChristoffel g) := by have hG := contDiff_selfMetricFlat g have hGi : ContDiff โ„ โˆž (fun x => (selfMetricFlat g x).inverse) := by rw [contDiff_iff_contDiffAt] intro x exact (selfMetricFlat_invertible g x).contDiffAt_map_inverse.comp x hG.contDiffAt have hD := hG.fderiv_right (m := โˆž) (by simp) have hDf : ContDiff โ„ โˆž (fun x => (fderiv โ„ (selfMetricFlat g) x).flip) := (ContinuousLinearMap.flipโ‚—แตข โ„ E E (E โ†’L[โ„] โ„)).toContinuousLinearMap.contDiff.comp hD have hK : ContDiff โ„ โˆž (fun x => coordinateKoszul (fderiv โ„ (selfMetricFlat g) x)) := (hD.add hDf |>.sub (contDiff_const.clm_comp hDf)).const_smul (1/2 : โ„) exact (contDiff_const.clm_apply hGi).clm_comp hK omit [FiniteDimensional โ„ E] in lemma fderiv_selfMetricFlat_symm (g : SmoothMetric E E) (x v w z : E) : fderiv โ„ (selfMetricFlat g) x v w z = fderiv โ„ (selfMetricFlat g) x v z w := by have hd := (contDiff_selfMetricFlat g).differentiable (by simp) have he : (fun y => selfMetricFlat g y w z) = (fun y => selfMetricFlat g y z w) := funext (fun y => selfMetricFlat_symm g y w z) have h := congrArg (fun f : E โ†’ โ„ => fderiv โ„ f x v) he have heval (w z : E) : fderiv โ„ (fun y => selfMetricFlat g y w z) x v = fderiv โ„ (selfMetricFlat g) x v w z := by rw [fderiv_clm_apply ((hd x).clm_apply (differentiableAt_const w)) (differentiableAt_const z), fderiv_clm_apply (hd x) (differentiableAt_const w)] simp simpa only [heval] using h lemma metricChristoffel_symm (g : SmoothMetric E E) (x v w : E) : metricChristoffel g x v w = metricChristoffel g x w v := by apply (selfMetricFlat_invertible g x).injective ext z rw [metricChristoffel_pairing,metricChristoffel_pairing, fderiv_selfMetricFlat_symm g x z v w] ring lemma metricChristoffel_compatible (g : SmoothMetric E E) (x v w z : E) : fderiv โ„ (selfMetricFlat g) x v w z = selfMetricFlat g x (metricChristoffel g x v w) z + selfMetricFlat g x w (metricChristoffel g x v z) := by rw [selfMetricFlat_symm g x w, metricChristoffel_pairing,metricChristoffel_pairing, fderiv_selfMetricFlat_symm g x v z w] ring lemma metricGradient_self (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : (NormedSpace.fromTangentSpace (๐•œ:=โ„) x) (metricGradient g u x) = (selfMetricFlat g x).inverse (fderiv โ„ u x) := by symm apply (selfMetricFlat_invertible g x).inverse_apply_eq.mpr ext v have h := (metricGradient_pairing g u x ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x).symm v)).symm rw [mfderiv_eq_fderiv] at h change fderiv โ„ u x v = g.inner x (metricGradient g u x) ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x).symm v) at h simpa only [selfMetricFlat,ContinuousLinearMap.bilinearComp_apply, ContinuousLinearEquiv.coe_coe,ContinuousLinearEquiv.symm_apply_apply] using h theorem compact_positive_bilinear_lower {X : Type*} [TopologicalSpace X] {K : Set X} (hK : IsCompact K) (B : X โ†’ E โ†’L[โ„] E โ†’L[โ„] โ„) (hB : Continuous B) (hpos : โˆ€ x โˆˆ K, โˆ€ v : E, v โ‰  0 โ†’ 0 < B x v v) : โˆƒ m : โ„, 0 < m โˆง โˆ€ x โˆˆ K, โˆ€ v : E, m*โ€–vโ€–^2 โ‰ค B x v v := by let S := K ร—หข Metric.sphere (0:E) 1 have hS : IsCompact S := hK.prod (isCompact_sphere 0 1) have hc : Continuous (fun p : X ร— E => B p.1 p.2 p.2) := ((hB.comp continuous_fst).clm_apply continuous_snd).clm_apply continuous_snd have hm : โˆƒ m : โ„, 0 < m โˆง โˆ€ x โˆˆ K, โˆ€ v : E, โ€–vโ€– = 1 โ†’ m โ‰ค B x v v := by by_cases hne : S.Nonempty ยท obtain โŸจp,hp,hminโŸฉ := hS.exists_isMinOn hne hc.continuousOn have hv : โ€–p.2โ€– = 1 := mem_sphere_zero_iff_norm.mp hp.2 refine โŸจB p.1 p.2 p.2,hpos p.1 hp.1 p.2 (norm_ne_zero_iff.mp (by rw [hv]; norm_num)),?_โŸฉ intro x hx v hv exact hmin (show (x,v) โˆˆ S from โŸจhx,mem_sphere_zero_iff_norm.mpr hvโŸฉ) ยท exact โŸจ1,zero_lt_one,fun x hx v hv => (hne โŸจ(x,v),hx,mem_sphere_zero_iff_norm.mpr hvโŸฉ).elimโŸฉ obtain โŸจm,hm,hmBโŸฉ := hm refine โŸจm,hm,?_โŸฉ intro x hx v by_cases hv : v = 0 ยท simp [hv] have hvn : โ€–vโ€– โ‰  0 := norm_ne_zero_iff.mpr hv let w := โ€–vโ€–โปยน โ€ข v have hw : โ€–wโ€– = 1 := by simp [w,norm_smul,hvn] have hvw : โ€–vโ€– โ€ข w = v := by simp [w,smul_smul,hvn] have heq : B x v v = โ€–vโ€–^2 * B x w w := by conv_lhs => rw [โ†hvw] simp only [map_smul,smul_apply,smul_eq_mul] ring rw [heq,mul_comm m] exact mul_le_mul_of_nonneg_left (hmB x hx w hw) (sq_nonneg _) lemma compact_selfMetricFlat_lower (g : SmoothMetric E E) {K : Set E} (hK : IsCompact K) : โˆƒ m : โ„, 0 < m โˆง โˆ€ x โˆˆ K, โˆ€ v : E, m*โ€–vโ€–^2 โ‰ค selfMetricFlat g x v v := compact_positive_bilinear_lower hK (selfMetricFlat g) (contDiff_selfMetricFlat g).continuous (fun x _ _ hv => selfMetricFlat_pos g x hv) theorem compact_metric_tangent_bound (g : SmoothMetric E E) {K : Set E} (hK : IsCompact K) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ โˆƒ J : โ„, 0 < J โˆง โˆ€ x โˆˆ K, โ€–(NormedSpace.fromTangentSpace (๐•œ:=โ„) x).toContinuousLinearMapโ€– โ‰ค J := by let : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ obtain โŸจm,hm,hmlโŸฉ := compact_selfMetricFlat_lower g hK refine โŸจ(Real.sqrt m)โปยน,inv_pos.mpr (Real.sqrt_pos.mpr hm),?_โŸฉ intro x hx apply ContinuousLinearMap.opNorm_le_bound _ (inv_nonneg.mpr (Real.sqrt_nonneg _)) intro v have hlow := hml x hx ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x) v) have hnorm : selfMetricFlat g x ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x) v) ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x) v) = โ€–vโ€–^2 := by have hn := real_inner_self_eq_norm_sq (v : TangentSpace ๐“˜(โ„,E) x) change g.inner x v v = โ€–vโ€–^2 at hn simpa only [selfMetricFlat,ContinuousLinearMap.bilinearComp_apply, ContinuousLinearEquiv.coe_coe,ContinuousLinearEquiv.symm_apply_apply] using hn rw [hnorm] at hlow have hh : Real.sqrt m * โ€–(NormedSpace.fromTangentSpace (๐•œ:=โ„) x) vโ€– โ‰ค โ€–vโ€– := le_of_sq_le_sq (by simpa only [mul_pow,Real.sq_sqrt hm.le] using hlow) (norm_nonneg _) change โ€–(NormedSpace.fromTangentSpace (๐•œ:=โ„) x) vโ€– โ‰ค (Real.sqrt m)โปยน * โ€–vโ€– rw [โ†div_eq_inv_mul,le_div_iffโ‚€ (Real.sqrt_pos.mpr hm)] rwa [mul_comm] end section open Set Filter Manifold Bundle MeasureTheory open scoped Topology ContDiff ENNReal open Set Filter Manifold Bundle open scoped Topology ContDiff open Set Filter Metric open scoped Topology InnerProductSpace open Set Filter Function Metric open scoped Topology open Set Filter Function Metric open scoped Topology open Set Filter Manifold Bundle open scoped Topology ContDiff InnerProductSpace section GenericCoordinateHessian variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] [NormedAddCommGroup V] [NormedSpace โ„ V] local instance genericHessMapNorm : NormedAddCommGroup (E โ†’L[โ„] V) := inferInstance local instance genericHessMapSpace : NormedSpace โ„ (E โ†’L[โ„] V) := inferInstance local instance genericHessFormNorm : NormedAddCommGroup (E โ†’L[โ„] E โ†’L[โ„] V) := inferInstance local instance genericHessFormSpace : NormedSpace โ„ (E โ†’L[โ„] E โ†’L[โ„] V) := inferInstance def coordinateCovariantSecond (ฮ“ : E โ†’ E โ†’L[โ„] E โ†’L[โ„] E) (f : E โ†’ V) (x : E) : E โ†’L[โ„] E โ†’L[โ„] V := fderiv โ„ (fderiv โ„ f) x - (ContinuousLinearMap.compL โ„ E E V (fderiv โ„ f x)).comp (ฮ“ x) lemma continuous_coordinateCovariantSecond (ฮ“ : E โ†’ E โ†’L[โ„] E โ†’L[โ„] E) (hฮ“ : Continuous ฮ“) {f : E โ†’ V} (hf : ContDiff โ„ โˆž f) : Continuous (coordinateCovariantSecond ฮ“ f) := by apply Continuous.sub ยท exact (hf.fderiv_right (m:=(โˆž : โ„•โˆžฯ‰)) (by simp)).continuous_fderiv (by simp) ยท exact ((ContinuousLinearMap.compL โ„ E E V).continuous.comp (hf.continuous_fderiv (by simp))).clm_comp hฮ“ end GenericCoordinateHessian variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E] [FiniteDimensional โ„ E] local instance actualDualNorm : NormedAddCommGroup (E โ†’L[โ„] โ„) := inferInstance local instance actualDualSpace : NormedSpace โ„ (E โ†’L[โ„] โ„) := inferInstance local instance actualFormNorm : NormedAddCommGroup (CoordinateForm E) := inferInstance local instance actualFormSpace : NormedSpace โ„ (CoordinateForm E) := inferInstance omit [FiniteDimensional โ„ E] in lemma quadraticPlaneStrict_iff_nonzero (T : CoordinateForm E) (q : E) : quadraticPlaneStrict T q โ†” โˆƒ v, v โ‰  0 โˆง inner โ„ q v = 0 โˆง 0 < T v v := by constructor ยท rintro โŸจv,hv,hq,hpโŸฉ exact โŸจv,norm_ne_zero_iff.mp (by rw [hv]; norm_num),hq,hpโŸฉ ยท rintro โŸจv,hv,hq,hpโŸฉ have hn : 0 < โ€–vโ€– := norm_pos_iff.mpr hv refine โŸจโ€–vโ€–โปยน โ€ข v,?_,?_,?_โŸฉ ยท simp [norm_smul,ne_of_gt hn] ยท simp [inner_smul_right,hq] ยท simpa only [map_smul,smul_apply,smul_eq_mul] using mul_pos (inv_pos.mpr hn) (mul_pos (inv_pos.mpr hn) hp) omit [FiniteDimensional โ„ E] in lemma quadraticPlaneFull_iff_nonzero (T : CoordinateForm E) (q : E) : quadraticPlaneFull T q โ†” โˆ€ v, v โ‰  0 โ†’ inner โ„ q v = 0 โ†’ 0 < T v v := by constructor ยท intro h v hv hq have hn : 0 < โ€–vโ€– := norm_pos_iff.mpr hv have hp := h (โ€–vโ€–โปยน โ€ข v) (by simp [norm_smul,ne_of_gt hn]) (by simp [inner_smul_right,hq]) simp only [map_smul,smul_apply,smul_eq_mul] at hp exact (mul_pos_iff_of_pos_left (inv_pos.mpr hn)).mp ((mul_pos_iff_of_pos_left (inv_pos.mpr hn)).mp hp) ยท intro h v hv hq exact h v (norm_ne_zero_iff.mp (by rw [hv]; norm_num)) hq def actualCoordinateHessian (g : SmoothMetric E E) (u : E โ†’ โ„) : E โ†’ CoordinateForm E := coordinateCovariantSecond (metricChristoffel g) u def coordinateMetricGradient (g : SmoothMetric E E) (ฯˆ : E โ†’ โ„) (x : E) : E := (selfMetricFlat g x).inverse (fderiv โ„ ฯˆ x) lemma coordinateMetricGradient_eq (g : SmoothMetric E E) (ฯˆ : E โ†’ โ„) (x : E) : coordinateMetricGradient g ฯˆ x = (NormedSpace.fromTangentSpace (๐•œ:=โ„) x) (metricGradient g ฯˆ x) := (metricGradient_self g ฯˆ x).symm lemma contDiff_coordinateMetricGradient (g : SmoothMetric E E) {ฯˆ : E โ†’ โ„} (hฯˆ : ContDiff โ„ โˆž ฯˆ) : ContDiff โ„ โˆž (coordinateMetricGradient g ฯˆ) := by have hGi : ContDiff โ„ โˆž (fun x => (selfMetricFlat g x).inverse) := by rw [contDiff_iff_contDiffAt] intro x exact (selfMetricFlat_invertible g x).contDiffAt_map_inverse.comp x (contDiff_selfMetricFlat g).contDiffAt exact hGi.clm_apply (hฯˆ.fderiv_right (m:=โˆž) (by simp)) def actualProfileTraceForm (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : CoordinateForm E := metricProfileTraceForm (selfMetricFlat g x) (actualCoordinateHessian g u x) (coordinateMetricGradient g u x) def actualProfileStrict (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : Prop := quadraticPlaneStrict (actualProfileTraceForm g u x) ((InnerProductSpace.toDual โ„ E).symm (fderiv โ„ u x)) def actualProfileFull (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : Prop := quadraticPlaneFull (actualProfileTraceForm g u x) ((InnerProductSpace.toDual โ„ E).symm (fderiv โ„ u x)) lemma continuous_actualProfileTraceForm (g : SmoothMetric E E) {u : E โ†’ โ„} (hu : ContDiff โ„ โˆž u) : Continuous (actualProfileTraceForm g u) := by have hB : Continuous (selfMetricFlat g) := (contDiff_selfMetricFlat g).continuous have hH : Continuous (actualCoordinateHessian g u) := continuous_coordinateCovariantSecond _ (contDiff_metricChristoffel g).continuous hu have ha : Continuous (coordinateMetricGradient g u) := (contDiff_coordinateMetricGradient g hu).continuous change Continuous (fun x => metricProfileTraceForm (selfMetricFlat g x) (actualCoordinateHessian g u x) (coordinateMetricGradient g u x)) unfold metricProfileTraceForm exact (((hH.clm_apply ha).clm_apply ha).smul hB).add ((continuous_const.add ((hB.clm_apply ha).clm_apply ha)).smul hH) omit [FiniteDimensional โ„ E] in lemma selfMetricFlat_metric_norm (g : SmoothMetric E E) (x : E) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ โˆ€ v : TangentSpace ๐“˜(โ„,E) x, selfMetricFlat g x ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x) v) ((NormedSpace.fromTangentSpace (๐•œ:=โ„) x) v) = โ€–vโ€–^2 := by let : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ intro v have hn := real_inner_self_eq_norm_sq v change g.inner x v v = โ€–vโ€–^2 at hn simpa only [selfMetricFlat,ContinuousLinearMap.bilinearComp_apply, ContinuousLinearEquiv.coe_coe,ContinuousLinearEquiv.symm_apply_apply] using hn lemma actualProfileTraceForm_tangent (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ let j := NormedSpace.fromTangentSpace (๐•œ:=โ„) x let H := (actualCoordinateHessian g u x).bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap โˆ€ v : TangentSpace ๐“˜(โ„,E) x, actualProfileTraceForm g u x (j v) (j v) = โ€–vโ€–^2*H (metricGradient g u x) (metricGradient g u x) + (1+โ€–metricGradient g u xโ€–^2)*H v v := by let : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ intro j H v rw [actualProfileTraceForm,metricProfileTraceForm_apply,coordinateMetricGradient_eq] rw [selfMetricFlat_metric_norm,selfMetricFlat_metric_norm] rfl omit [FiniteDimensional โ„ E] in lemma profileStrict_iff_quadratic (H : ProfileForm E) (a : E) : profileStrict H a โ†” quadraticPlaneStrict (metricProfileTraceForm (innerSL โ„) H a) a := by have ht (v : E) (hv : โ€–vโ€– = 1) : metricProfileTraceForm (innerSL โ„) H a v v = profileTrace H a v := by rw [metricProfileTraceForm_apply] change inner โ„ v v * H a a + (1+inner โ„ a a)*H v v = profileTrace H a v simp only [real_inner_self_eq_norm_sq,hv,one_pow,one_mul,profileTrace] constructor ยท rintro โŸจv,hv,hav,hpโŸฉ exact โŸจv,hv,hav,by rwa [ht v hv]โŸฉ ยท rintro โŸจv,hv,hav,hpโŸฉ exact โŸจv,hv,hav,by rwa [ht v hv] at hpโŸฉ omit [FiniteDimensional โ„ E] in lemma profileFull_iff_quadratic (H : ProfileForm E) (a : E) : profileFull H a โ†” quadraticPlaneFull (metricProfileTraceForm (innerSL โ„) H a) a := by have ht (v : E) (hv : โ€–vโ€– = 1) : metricProfileTraceForm (innerSL โ„) H a v v = profileTrace H a v := by rw [metricProfileTraceForm_apply] change inner โ„ v v * H a a + (1+inner โ„ a a)*H v v = profileTrace H a v simp only [real_inner_self_eq_norm_sq,hv,one_pow,one_mul,profileTrace] constructor <;> intro h v hv hav ยท rw [ht v hv] exact h v hv hav ยท rw [โ†ht v hv] exact h v hv hav omit [FiniteDimensional โ„ E] in lemma quadraticPlaneStrict_transport {V : Type*} [NormedAddCommGroup V] [InnerProductSpace โ„ V] (j : V โ‰ƒL[โ„] E) (T : CoordinateForm E) (S : CoordinateForm V) (q : E) (a : V) (hT : โˆ€ v, T (j v) (j v) = S v v) (hq : โˆ€ v, inner โ„ q (j v) = inner โ„ a v) : quadraticPlaneStrict T q โ†” quadraticPlaneStrict S a := by rw [quadraticPlaneStrict_iff_nonzero,quadraticPlaneStrict_iff_nonzero] constructor ยท rintro โŸจv,hv,hqv,hpโŸฉ refine โŸจj.symm v,by simpa using hv,?_,?_โŸฉ ยท rw [โ†hq,j.apply_symm_apply] exact hqv ยท rwa [โ†hT,j.apply_symm_apply] ยท rintro โŸจv,hv,hqv,hpโŸฉ exact โŸจj v,by simpa using hv,(hq v).trans hqv,by rwa [hT]โŸฉ omit [FiniteDimensional โ„ E] in lemma quadraticPlaneFull_transport {V : Type*} [NormedAddCommGroup V] [InnerProductSpace โ„ V] (j : V โ‰ƒL[โ„] E) (T : CoordinateForm E) (S : CoordinateForm V) (q : E) (a : V) (hT : โˆ€ v, T (j v) (j v) = S v v) (hq : โˆ€ v, inner โ„ q (j v) = inner โ„ a v) : quadraticPlaneFull T q โ†” quadraticPlaneFull S a := by rw [quadraticPlaneFull_iff_nonzero,quadraticPlaneFull_iff_nonzero] constructor ยท intro h v hv hqv rw [โ†hT] exact h (j v) (by simpa using hv) ((hq v).trans hqv) ยท intro h v hv hqv have horth : inner โ„ a (j.symm v) = 0 := by rw [โ†hq,j.apply_symm_apply] exact hqv have hp := h (j.symm v) (by simpa using hv) horth simpa only [โ†hT,j.apply_symm_apply] using hp lemma coordinateProfileStrict_iff_tangent (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) (Hโ‚€ : CoordinateForm E) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ let j := NormedSpace.fromTangentSpace (๐•œ:=โ„) x quadraticPlaneStrict (metricProfileTraceForm (selfMetricFlat g x) Hโ‚€ (coordinateMetricGradient g u x)) ((InnerProductSpace.toDual โ„ E).symm (fderiv โ„ u x)) โ†” profileStrict (Hโ‚€.bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap) (metricGradient g u x) := by let : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ intro j let : FiniteDimensional โ„ (TangentSpace ๐“˜(โ„,E) x) := Module.Finite.equiv j.symm.toLinearEquiv let H := Hโ‚€.bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap rw [profileStrict_iff_quadratic] apply quadraticPlaneStrict_transport j ยท intro v rw [metricProfileTraceForm_apply,metricProfileTraceForm_apply,coordinateMetricGradient_eq] rw [selfMetricFlat_metric_norm,selfMetricFlat_metric_norm] change โ€–vโ€–^2*H (metricGradient g u x) (metricGradient g u x) + (1+โ€–metricGradient g u xโ€–^2)*H v v = inner โ„ v v*H (metricGradient g u x) (metricGradient g u x) + (1+inner โ„ (metricGradient g u x) (metricGradient g u x))*H v v simp only [real_inner_self_eq_norm_sq] ยท intro v rw [InnerProductSpace.toDual_symm_apply] change fderiv โ„ u x (j v) = g.inner x (metricGradient g u x) v rw [metricGradient_pairing,mfderiv_eq_fderiv] rfl lemma coordinateProfileFull_iff_tangent (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) (Hโ‚€ : CoordinateForm E) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ let j := NormedSpace.fromTangentSpace (๐•œ:=โ„) x quadraticPlaneFull (metricProfileTraceForm (selfMetricFlat g x) Hโ‚€ (coordinateMetricGradient g u x)) ((InnerProductSpace.toDual โ„ E).symm (fderiv โ„ u x)) โ†” profileFull (Hโ‚€.bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap) (metricGradient g u x) := by let : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ intro j let : FiniteDimensional โ„ (TangentSpace ๐“˜(โ„,E) x) := Module.Finite.equiv j.symm.toLinearEquiv let H := Hโ‚€.bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap rw [profileFull_iff_quadratic] apply quadraticPlaneFull_transport j ยท intro v rw [metricProfileTraceForm_apply,metricProfileTraceForm_apply,coordinateMetricGradient_eq] rw [selfMetricFlat_metric_norm,selfMetricFlat_metric_norm] change โ€–vโ€–^2*H (metricGradient g u x) (metricGradient g u x) + (1+โ€–metricGradient g u xโ€–^2)*H v v = inner โ„ v v*H (metricGradient g u x) (metricGradient g u x) + (1+inner โ„ (metricGradient g u x) (metricGradient g u x))*H v v simp only [real_inner_self_eq_norm_sq] ยท intro v rw [InnerProductSpace.toDual_symm_apply] change fderiv โ„ u x (j v) = g.inner x (metricGradient g u x) v rw [metricGradient_pairing,mfderiv_eq_fderiv] rfl lemma actualProfileStrict_iff_tangent (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ let j := NormedSpace.fromTangentSpace (๐•œ:=โ„) x actualProfileStrict g u x โ†” profileStrict ((actualCoordinateHessian g u x).bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap) (metricGradient g u x) := coordinateProfileStrict_iff_tangent g u x (actualCoordinateHessian g u x) lemma actualProfileFull_iff_tangent (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) : letI : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ let j := NormedSpace.fromTangentSpace (๐•œ:=โ„) x actualProfileFull g u x โ†” profileFull ((actualCoordinateHessian g u x).bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap) (metricGradient g u x) := coordinateProfileFull_iff_tangent g u x (actualCoordinateHessian g u x) theorem exists_actual_preparation_covector (hd : Module.finrank โ„ E = 3) (g : SmoothMetric E E) (u : E โ†’ โ„) (x : E) (ha : coordinateMetricGradient g u x โ‰  0) (hs : actualProfileStrict g u x) : โˆƒ l : E โ†’L[โ„] โ„, l โ‰  0 โˆง l (coordinateMetricGradient g u x) = 0 โˆง (โˆ€ c : โ„, quadraticPlaneStrict (metricProfileTraceForm (selfMetricFlat g x) (actualCoordinateHessian g u x+c โ€ข profileRankOne l) (coordinateMetricGradient g u x)) ((InnerProductSpace.toDual โ„ E).symm (fderiv โ„ u x))) โˆง โˆƒ C : โ„•, โˆ€ c : โ„, C โ‰ค c โ†’ quadraticPlaneFull (metricProfileTraceForm (selfMetricFlat g x) (actualCoordinateHessian g u x+c โ€ข profileRankOne l) (coordinateMetricGradient g u x)) ((InnerProductSpace.toDual โ„ E).symm (fderiv โ„ u x)) := by let : RiemannianBundle (TangentSpace ๐“˜(โ„,E) : E โ†’ Type _) := โŸจg.toRiemannianMetricโŸฉ let j := NormedSpace.fromTangentSpace (๐•œ:=โ„) x let : FiniteDimensional โ„ (TangentSpace ๐“˜(โ„,E) x) := Module.Finite.equiv j.symm.toLinearEquiv let H := (actualCoordinateHessian g u x).bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap have hdim : Module.finrank โ„ (TangentSpace ๐“˜(โ„,E) x) = 3 := j.toLinearEquiv.finrank_eq.trans hd have ha' : metricGradient g u x โ‰  0 := by intro h apply ha rw [coordinateMetricGradient_eq,h,map_zero] obtain โŸจl,hl,hla,hlS,C,hlFโŸฉ := exists_preparation_covector hdim ha' ((actualProfileStrict_iff_tangent g u x).mp hs) let lโ‚€ := l.comp j.symm.toContinuousLinearMap have hform (c : โ„) : (actualCoordinateHessian g u x+c โ€ข profileRankOne lโ‚€).bilinearComp j.toContinuousLinearMap j.toContinuousLinearMap = H+c โ€ข profileRankOne l := by ext v w simp only [ContinuousLinearMap.bilinearComp_apply,add_apply, smul_apply,profileRankOne,ContinuousLinearMap.smulRight_apply, lโ‚€,ContinuousLinearMap.comp_apply,ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.symm_apply_apply,smul_eq_mul,H] refine โŸจlโ‚€,?_,?_,?_,C,?_โŸฉ ยท intro h apply hl ext v have hh := congrArg (fun L : E โ†’L[โ„] โ„ => L (j v)) h simpa only [lโ‚€,ContinuousLinearMap.comp_apply,ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.symm_apply_apply,zero_apply] using hh ยท rw [coordinateMetricGradient_eq] simpa only [lโ‚€,j,ContinuousLinearMap.comp_apply,ContinuousLinearEquiv.coe_coe, ContinuousLinearEquiv.symm_apply_apply] using hla ยท intro c apply (coordinateProfileStrict_iff_tangent g u x _).mpr rw [hform] exact hlS c ยท intro c hc apply (coordinateProfileFull_iff_tangent g u x _).mpr rw [hform] exact hlF c hc end section open Set Filter Function open scoped Topology ContDiff variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] [NormedAddCommGroup V] [NormedSpace โ„ V] lemma second_directional_eq {f : E โ†’ V} (hf : ContDiff โ„ โˆž f) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ f z w) x v = fderiv โ„ (fderiv โ„ f) x v w := by rw [fderiv_clm_apply ((hf.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) x) (differentiableAt_const w)] simp lemma smooth_comp_second {F : V โ†’ โ„} {y : E โ†’ V} (hF : ContDiff โ„ โˆž F) (hy : ContDiff โ„ โˆž y) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ (F โˆ˜ y) z w) x v = fderiv โ„ (fderiv โ„ F) (y x) (fderiv โ„ y x v) (fderiv โ„ y x w) + fderiv โ„ F (y x) (fderiv โ„ (fun z => fderiv โ„ y z w) x v) := by have hdF := hF.differentiable (by simp) have hdy := hy.differentiable (by simp) have hdDF := (hF.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have hdDy := (hy.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have he : (fun z => fderiv โ„ (F โˆ˜ y) z w) = (fun z => fderiv โ„ F (y z) (fderiv โ„ y z w)) := by funext z rw [fderiv_comp z (hdF _) (hdy _),ContinuousLinearMap.comp_apply] rw [he] erw [fderiv_clm_apply ((hdDF _).comp x (hdy _)) ((hdDy x).clm_apply (differentiableAt_const w))] erw [fderiv_fun_comp x (hdDF _) (hdy _)] simp only [_root_.add_apply,ContinuousLinearMap.comp_apply, ContinuousLinearMap.flip_apply] exact add_comm _ _ lemma smooth_product_second {f g : E โ†’ โ„} (hf : ContDiff โ„ โˆž f) (hg : ContDiff โ„ โˆž g) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ (fun t => f t*g t) z w) x v = f x * fderiv โ„ (fun z => fderiv โ„ g z w) x v + fderiv โ„ f x v * fderiv โ„ g x w + fderiv โ„ f x w * fderiv โ„ g x v + g x * fderiv โ„ (fun z => fderiv โ„ f z w) x v := by have df := hf.differentiable (by simp) have dg := hg.differentiable (by simp) have dDf := (hf.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have dDg := (hg.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have he : (fun z => fderiv โ„ (fun t => f t*g t) z w) = (fun z => f z * fderiv โ„ g z w + g z * fderiv โ„ f z w) := by funext z rw [fderiv_fun_mul (df z) (dg z)] simp rw [he] erw [fderiv_fun_add ((df x).mul ((dDg x).clm_apply (differentiableAt_const w))) ((dg x).mul ((dDf x).clm_apply (differentiableAt_const w))), fderiv_fun_mul (df x) ((dDg x).clm_apply (differentiableAt_const w)), fderiv_fun_mul (dg x) ((dDf x).clm_apply (differentiableAt_const w))] simp only [_root_.add_apply,_root_.smul_apply,smul_eq_mul] ring theorem corrugation_first {ฯˆ ฯ‡ : E โ†’ โ„} {F : V โ†’ โ„} {y : E โ†’ V} (hฯˆ : ContDiff โ„ โˆž ฯˆ) (hฯ‡ : ContDiff โ„ โˆž ฯ‡) (hF : ContDiff โ„ โˆž F) (hy : ContDiff โ„ โˆž y) (c N : โ„) (x v : E) : fderiv โ„ (fun z => ฯˆ z+c*ฯ‡ z*F (N โ€ข y z)) x v = fderiv โ„ ฯˆ x v + c*fderiv โ„ ฯ‡ x v*F (N โ€ข y x) + c*ฯ‡ x*N*fderiv โ„ F (N โ€ข y x) (fderiv โ„ y x v) := by have dhฯˆ := hฯˆ.differentiable (by simp) x have dhฯ‡ := hฯ‡.differentiable (by simp) x have dhy := hy.differentiable (by simp) x have dhF := hF.differentiable (by simp) (N โ€ข y x) have dhny := dhy.const_smul N have dhcomp := dhF.comp x dhny erw [fderiv_fun_add dhฯˆ ((dhฯ‡.const_mul c).mul dhcomp), fderiv_fun_mul (dhฯ‡.const_mul c) dhcomp, fderiv_const_mul dhฯ‡ c, fderiv_fun_comp x dhF dhny, fderiv_fun_const_smul dhy N] simp only [_root_.add_apply,_root_.smul_apply,ContinuousLinearMap.comp_apply, map_smul,smul_eq_mul,Function.comp_apply,Pi.smul_apply] ring end section open Set Filter Function open scoped Topology ContDiff open scoped Topology ContDiff variable {E V : Type*} [NormedAddCommGroup E] [NormedSpace โ„ E] [NormedAddCommGroup V] [NormedSpace โ„ V] lemma smooth_sum_second {f g : E โ†’ V} (hf : ContDiff โ„ โˆž f) (hg : ContDiff โ„ โˆž g) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ (fun t => f t+g t) z w) x v = fderiv โ„ (fun z => fderiv โ„ f z w) x v + fderiv โ„ (fun z => fderiv โ„ g z w) x v := by have df := hf.differentiable (by simp) have dg := hg.differentiable (by simp) have dDf := (hf.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have dDg := (hg.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have he : (fun z => fderiv โ„ (fun t => f t+g t) z w) = (fun z => fderiv โ„ f z w + fderiv โ„ g z w) := by funext z; rw [fderiv_fun_add (df z) (dg z)]; rfl rw [he, fderiv_fun_add ((dDf x).clm_apply (differentiableAt_const w)) ((dDg x).clm_apply (differentiableAt_const w))] rfl lemma smooth_const_smul_second {f : E โ†’ V} (hf : ContDiff โ„ โˆž f) (c : โ„) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ (fun t => c โ€ข f t) z w) x v = c โ€ข fderiv โ„ (fun z => fderiv โ„ f z w) x v := by have df := hf.differentiable (by simp) have dDf := (hf.fderiv_right (show (โˆž : โ„•โˆžฯ‰)+1 โ‰ค โˆž by simp)).differentiable (by simp) have he : (fun z => fderiv โ„ (fun t => c โ€ข f t) z w) = (fun z => c โ€ข fderiv โ„ f z w) := by funext z; rw [fderiv_fun_const_smul (df z) c]; rfl rw [he, fderiv_fun_const_smul ((dDf x).clm_apply (differentiableAt_const w)) c] rfl lemma scaled_comp_second {F : V โ†’ โ„} {y : E โ†’ V} (hF : ContDiff โ„ โˆž F) (hy : ContDiff โ„ โˆž y) (N : โ„) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ (fun t => F (N โ€ข y t)) z w) x v = N^2 * fderiv โ„ (fderiv โ„ F) (N โ€ข y x) (fderiv โ„ y x v) (fderiv โ„ y x w) + N * fderiv โ„ F (N โ€ข y x) (fderiv โ„ (fun z => fderiv โ„ y z w) x v) := by have hh := smooth_comp_second hF (hy.const_smul N) x v w change fderiv โ„ (fun z => fderiv โ„ (fun t => F (N โ€ข y t)) z w) x v = _ at hh rw [fderiv_fun_const_smul (hy.differentiable (by simp) x) N, smooth_const_smul_second hy N x v w] at hh simp only [_root_.smul_apply,map_smul,smul_eq_mul] at hh rw [hh] ring theorem corrugation_second {ฯˆ ฯ‡ : E โ†’ โ„} {F : V โ†’ โ„} {y : E โ†’ V} (hฯˆ : ContDiff โ„ โˆž ฯˆ) (hฯ‡ : ContDiff โ„ โˆž ฯ‡) (hF : ContDiff โ„ โˆž F) (hy : ContDiff โ„ โˆž y) (c N : โ„) (x v w : E) : fderiv โ„ (fun z => fderiv โ„ (fun t => ฯˆ t+c*(ฯ‡ t*F (N โ€ข y t))) z w) x v = fderiv โ„ (fun z => fderiv โ„ ฯˆ z w) x v + c*N^2*ฯ‡ x*fderiv โ„ (fderiv โ„ F) (N โ€ข y x) (fderiv โ„ y x v) (fderiv โ„ y x w) + c*N*ฯ‡ x*fderiv โ„ F (N โ€ข y x) (fderiv โ„ (fun z => fderiv โ„ y z w) x v) + c*N*fderiv โ„ ฯ‡ x v*fderiv โ„ F (N โ€ข y x) (fderiv โ„ y x w) + c*N*fderiv โ„ ฯ‡ x w*fderiv โ„ F (N โ€ข y x) (fderiv โ„ y x v) + c*F (N โ€ข y x)*fderiv โ„ (fun z => fderiv โ„ ฯ‡ z w) x v := by have hg : ContDiff โ„ โˆž (fun t => F (N โ€ข y t)) := hF.comp (hy.const_smul N) have hh := smooth_sum_second hฯˆ ((hฯ‡.mul hg).const_smul c) x v w simp only [smul_eq_mul] at hh rw [hh] have hc := smooth_const_smul_second (hฯ‡.mul hg) c x v w simp only [smul_eq_mul] at hc rw [hc,smooth_product_second hฯ‡ hg x v w,scaled_comp_second hF hy N x v w] have hfirst (z : E) : fderiv โ„ (fun t => F (N โ€ข y t)) x z = N * fderiv โ„ F (N โ€ข y x) (fderiv โ„ y x z) := by erw [fderiv_fun_comp x (hF.differentiable (by simp) _) ((hy.differentiable (by simp) x).const_smul N), fderiv_fun_const_smul (hy.differentiable (by simp) x) N] simp rw [hfirst w,hfirst v] ring end section open Set Filter Function Metric open scoped Topology open Set Filter Function Metric open scoped Topology ContDiff InnerProductSpace open Filter Set open scoped Topology open Set Filter Function Metric open scoped Topology ContDiff InnerProductSpace open Set Filter Function Metric Topology Manifold open scoped Topology ContDiff open Set Filter Function Metric Topology Manifold MeasureTheory open scoped Topology ContDiff lemma periodicRadialOffset_norm_le {R : โ„} (hR : 0 โ‰ค R) (x : ProfilePlane) : โ€–periodicRadialOffset R xโ€– โ‰ค R := by classical unfold periodicRadialOffset split_ifs with h ยท exact h.choose_spec.le ยท simpa using hR lemma periodicRadialOffset_radius_sq_le {R : โ„} (hR : 0 โ‰ค R) (x : ProfilePlane) : (periodicRadialOffset R x).1^2+(periodicRadialOffset R x).2^2 โ‰ค 2*R^2 := by have hn := periodicRadialOffset_norm_le hR x have h1 := (norm_fst_le (periodicRadialOffset R x)).trans hn have h2 := (norm_snd_le (periodicRadialOffset R x)).trans hn rw [Real.norm_eq_abs] at h1 h2 have hsq1 := pow_le_pow_leftโ‚€ (abs_nonneg _) h1 2 have hsq2 := pow_le_pow_leftโ‚€ (abs_nonneg _) h2 2 simpa only [sq_abs] using (show |(periodicRadialOffset R x).1|^2+|(periodicRadialOffset R x).2|^2 โ‰ค 2*R^2 by linarith only [hsq1,hsq2]) theorem periodicRadial_coefficients_bounded {ฮฒ : โ„ โ†’ โ„} (hฮฒ : ContDiff โ„ โˆž ฮฒ) (hฮฒc : HasCompactSupport ฮฒ) (hฮฒv : โˆ€ t, ฮฒ t โˆˆ Icc 0 1) {R : โ„} (hR : 0 < R) : โˆƒ M S K : โ„, 0 < M โˆง 0 < S โˆง 0 < K โˆง โˆ€ x : ProfilePlane, 0 โ‰ค periodicRadialSpeed ฮฒ R x โˆง periodicRadialSpeed ฮฒ R x โ‰ค M โˆง 0 โ‰ค periodicAngularSecond ฮฒ R x โˆง (periodicRadialSpeed ฮฒ R x)^2 โ‰ค S*periodicAngularSecond ฮฒ R x โˆง |periodicRadialSecond ฮฒ R x| โ‰ค K := by obtain โŸจD,hDโŸฉ := (hฮฒc.deriv.isCompact_range (hฮฒ.continuous_deriv (by simp))).exists_bound_of_continuousOn (f := id) continuous_id.continuousOn let D' := max D 0 have hD' : 0 โ‰ค D' := le_max_right _ _ have hDb : โˆ€ t, |deriv ฮฒ t| โ‰ค D' := fun t => (hD _ (mem_range_self t)).trans (le_max_left _ _) refine โŸจ4*R+1,4*R^2+1,3+8*R^2*D',by positivity,by positivity,by positivity,?_โŸฉ intro x let z := periodicRadialOffset R x let t := z.1^2+z.2^2 have ht : 0 โ‰ค t := by dsimp [t]; positivity have htb : t โ‰ค 2*R^2 := periodicRadialOffset_radius_sq_le hR.le x have hs : (Real.sqrt t)^2 = t := Real.sq_sqrt ht have hsp : 0 โ‰ค Real.sqrt t := Real.sqrt_nonneg _ have hsb : Real.sqrt t โ‰ค 2*R := by nlinarith only [hs,hsp,htb,hR] have hp := (hฮฒv t).1 have hb := (hฮฒv t).2 have hbp : 0 โ‰ค ฮฒ t*(1-ฮฒ t) := mul_nonneg hp (sub_nonneg.mpr hb) change 0 โ‰ค 2*Real.sqrt t*ฮฒ t โˆง 2*Real.sqrt t*ฮฒ t โ‰ค 4*R+1 โˆง 0 โ‰ค 2*ฮฒ t โˆง (2*Real.sqrt t*ฮฒ t)^2 โ‰ค (4*R^2+1)*(2*ฮฒ t) โˆง |2*ฮฒ t+4*t*deriv ฮฒ t| โ‰ค 3+8*R^2*D' refine โŸจby positivity,?_,by positivity,?_,?_โŸฉ ยท have hh := mul_le_mul hsb hb hp (by positivity : 0 โ‰ค 2*R) nlinarith only [hh] ยท calc (2*Real.sqrt t*ฮฒ t)^2 = 4*t*(ฮฒ t)^2 := by rw [mul_pow,mul_pow,hs]; ring _ โ‰ค 4*t*ฮฒ t := mul_le_mul_of_nonneg_left (by nlinarith only [hbp]) (by positivity) _ โ‰ค 8*R^2*ฮฒ t := by nlinarith only [mul_le_mul_of_nonneg_right htb hp] _ โ‰ค (4*R^2+1)*(2*ฮฒ t) := by nlinarith only [hp] ยท calc |2*ฮฒ t+4*t*deriv ฮฒ t| โ‰ค |2*ฮฒ t|+|4*t*deriv ฮฒ t| := abs_add_le _ _ _ = 2*ฮฒ t+4*t*|deriv ฮฒ t| := by rw [abs_of_nonneg (by positivity : 0 โ‰ค 2*ฮฒ t),abs_mul,abs_of_nonneg (by positivity : 0 โ‰ค 4*t)] _ โ‰ค 2+4*(2*R^2)*D' := add_le_add (by linarith only [hb]) (mul_le_mul (by nlinarith only [htb]) (hDb t) (abs_nonneg _) (by positivity)) _ โ‰ค 3+8*R^2*D' := by ring_nf; linarith theorem periodicRadialFunction_bounded {ฮฒ : โ„ โ†’ โ„} (hฮฒ : ContDiff โ„ โˆž ฮฒ) {b r R : โ„} (hr : 0 โ‰ค r) (hrR : r < R) (hsmall : 2*R < 1) (hb : b โ‰ค r^2) (hzero : โˆ€ t, b โ‰ค t โ†’ ฮฒ t = 0) : โˆƒ B : โ„, 0 < B โˆง โˆ€ x, |periodicRadialFunction ฮฒ b x| โ‰ค B := by have hf := radialSquaredBase_zero_of_norm hฮฒ.continuous hr hb hzero have hfR : โˆ€ z, R < โ€–zโ€– โ†’ radialSquaredBase ฮฒ b z = 0 := fun z hz => hf z (hrR.trans hz) obtain โŸจB,hBโŸฉ := ((radialSquaredBase_compact hฮฒ.continuous hr hb hzero).isCompact_range (radialSquaredBase_smooth ฮฒ b hฮฒ).continuous).exists_bound_of_continuousOn (f := id) continuous_id.continuousOn refine โŸจ|radialPrimitive ฮฒ b|+max B 0+1,by positivity,?_โŸฉ intro x have hp : |profilePeriodize (radialSquaredBase ฮฒ b) x| โ‰ค max B 0 := by by_cases hx : โˆƒ k, โ€–x-profileLatticePoint kโ€– < R ยท rw [(profilePeriodize_eventually_single hsmall hfR hx.choose hx.choose_spec).eq_of_nhds] exact (hB _ (mem_range_self _)).trans (le_max_left _ _) ยท have hxn : โˆ€ k, R โ‰ค โ€–x-profileLatticePoint kโ€– := by simpa only [not_exists,not_lt] using hx rw [(profilePeriodize_eventually_zero hrR hf x hxn).eq_of_nhds] simp unfold periodicRadialFunction calc _ โ‰ค |radialPrimitive ฮฒ b|+|profilePeriodize (radialSquaredBase ฮฒ b) x| := abs_add_le _ _ _ โ‰ค |radialPrimitive ฮฒ b|+max B 0+1 := by linarith only [hp] theorem periodicRadialFunction_fderiv_bound {ฮฒ : โ„ โ†’ โ„} (hฮฒ : ContDiff โ„ โˆž ฮฒ) (hฮฒ0 : ฮฒ 0 = 0) (hฮฒp : โˆ€ t, 0 โ‰ค ฮฒ t) {b r R : โ„} (hr : 0 โ‰ค r) (hrR : r < R) (hsmall : 2*R < 1) (hb : b โ‰ค r^2) (hzero : โˆ€ t, b โ‰ค t โ†’ ฮฒ t = 0) (x : ProfilePlane) : โ€–fderiv โ„ (periodicRadialFunction ฮฒ b) xโ€– โ‰ค 2*periodicRadialSpeed ฮฒ R x := by have he : fderiv โ„ (periodicRadialFunction ฮฒ b) x = periodicRadialSpeed ฮฒ R x โ€ข planeRadialCovector (periodicRadialOffset R x) := by apply ContinuousLinearMap.ext intro v exact periodicRadialFunction_first hฮฒ hฮฒ0 hr hrR hsmall hb hzero x v have hp : 0 โ‰ค periodicRadialSpeed ฮฒ R x := by unfold periodicRadialSpeed exact mul_nonneg (mul_nonneg (by norm_num) (Real.sqrt_nonneg _)) (hฮฒp _) rw [he,norm_smul,Real.norm_eq_abs,abs_of_nonneg hp] nlinarith only [mul_le_mul_of_nonneg_left (norm_planeRadialCovector_le (periodicRadialOffset R x)) hp] end open Set Filter Function Metric open scoped Topology open Set Filter Function Metric open scoped Topology ContDiff InnerProductSpace open Filter Set open scoped Topology open Set Filter Function Metric open scoped Topology ContDiff InnerProductSpace open Set Filter Function Metric Topology Manifold open scoped Topology ContDiff open Set Filter Function Metric Topology Manifold MeasureTheory open scoped Topology ContDiff open scoped InnerProductSpace variable {E V : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E] [FiniteDimensional โ„ E] [NormedAddCommGroup V] [InnerProductSpace โ„ V] [FiniteDimensional โ„ V] def pulledGradient (j : V โ†’L[โ„] E) (u : E โ†’ โ„) (x : E) : V := (InnerProductSpace.toDual โ„ V).symm ((fderiv โ„ u x).comp j) omit [FiniteDimensional โ„ E] in lemma pulledGradient_pairing (j : V โ†’L[โ„] E) (u : E โ†’ โ„) (x : E) (v : V) : inner โ„ (pulledGradient j u x) v = fderiv โ„ u x (j v) := InnerProductSpace.toDual_symm_apply def pulledHessian (ฮ“ : E โ†’ E โ†’L[โ„] E โ†’L[โ„] E) (j : V โ†’L[โ„] E) (u : E โ†’ โ„) (x : E) : ProfileForm V := (coordinateCovariantSecond ฮ“ u x).bilinearComp j j omit [FiniteDimensional โ„ E] [FiniteDimensional โ„ V] in lemma norm_bilinear_pullback_le (H : ProfileForm E) (j : V โ†’L[โ„] E) : โ€–H.bilinearComp j jโ€– โ‰ค โ€–Hโ€–*โ€–jโ€–^2 := by apply (H.bilinearComp j j).opNorm_le_boundโ‚‚ (by positivity) intro v w calc โ€–H (j v) (j w)โ€– โ‰ค โ€–Hโ€–*โ€–j vโ€–*โ€–j wโ€– := H.le_opNormโ‚‚ _ _ _ โ‰ค โ€–Hโ€–*(โ€–jโ€–*โ€–vโ€–)*(โ€–jโ€–*โ€–wโ€–) := mul_le_mul (mul_le_mul_of_nonneg_left (j.le_opNorm v) (norm_nonneg H)) (j.le_opNorm w) (norm_nonneg _) (by positivity) _ = _ := by ring lemma planeRadialCovector_le_radius (z v : ProfilePlane) : |planeRadialCovector z v| โ‰ค Real.sqrt (v.1^2+v.2^2) := by have he := plane_radial_angular_sq z v have hs := Real.sq_sqrt (show 0 โ‰ค v.1^2+v.2^2 by positivity) have ha := sq_abs (planeRadialCovector z v) nlinarith only [he,hs,ha,sq_nonneg (planeAngularCovector z v), abs_nonneg (planeRadialCovector z v),Real.sqrt_nonneg (v.1^2+v.2^2)] lemma radial_coframe_bounds (D : V โ†’L[โ„] ProfilePlane) (a : V) (z : ProfilePlane) (ha : D a = 0) (hup : โˆ€ v, Real.sqrt ((D v).1^2+(D v).2^2) โ‰ค 2*โ€–vโ€–) (hlo : โˆ€ v, inner โ„ a v = 0 โ†’ โ€–vโ€–/2 โ‰ค Real.sqrt ((D v).1^2+(D v).2^2)) : let R := (planeRadialCovector z).comp D let T := (planeAngularCovector z).comp D R a = 0 โˆง T a = 0 โˆง โ€–(InnerProductSpace.toDual โ„ V).symm Rโ€– โ‰ค 2 โˆง โˆ€ v, inner โ„ a v = 0 โ†’ โ€–vโ€–/2 โ‰ค Real.sqrt ((R v)^2+(T v)^2) := by dsimp only refine โŸจby simp [ha],by simp [ha],?_,?_โŸฉ ยท rw [LinearIsometryEquiv.norm_map] apply ContinuousLinearMap.opNorm_le_bound _ (by norm_num) intro v exact (planeRadialCovector_le_radius z (D v)).trans (hup v) ยท intro v hv simpa only [ContinuousLinearMap.comp_apply,plane_radial_angular_sq] using hlo v hv lemma periodicRadialSpeed_le_angular {ฮฒ : โ„ โ†’ โ„} (hฮฒ : โˆ€ t, 0 โ‰ค ฮฒ t) {R : โ„} (hR : 0 < R) (x : ProfilePlane) : periodicRadialSpeed ฮฒ R x/(2*R) โ‰ค periodicAngularSecond ฮฒ R x := by let z := periodicRadialOffset R x let t := z.1^2+z.2^2 have ht : 0 โ‰ค t := by dsimp [t]; positivity have htb : t โ‰ค 2*R^2 := periodicRadialOffset_radius_sq_le hR.le x have hs : Real.sqrt t โ‰ค 2*R := by nlinarith only [Real.sq_sqrt ht,Real.sqrt_nonneg t,htb,hR] apply (div_le_iffโ‚€ (by positivity : 0 < 2*R)).mpr change 2*Real.sqrt t*ฮฒ t โ‰ค (2*ฮฒ t)*(2*R) nlinarith only [mul_le_mul_of_nonneg_right hs (hฮฒ t)] def radialCorrugation (ฯˆ ฯ‡ : E โ†’ โ„) (y : E โ†’ ProfilePlane) (ฮฒ : โ„ โ†’ โ„) (b ฮด A N : โ„) (x : E) : โ„ := ฯˆ x+(ฮด*A/N)*(ฯ‡ x*periodicRadialFunction ฮฒ b (N โ€ข y x)) omit [FiniteDimensional โ„ E] in lemma radialCorrugation_smooth {ฯˆ ฯ‡ : E โ†’ โ„} {y : E โ†’ ProfilePlane} (hฯˆ : ContDiff โ„ โˆž ฯˆ) (hฯ‡ : ContDiff โ„ โˆž ฯ‡) (hy : ContDiff โ„ โˆž y) {ฮฒ : โ„ โ†’ โ„} (hฮฒ : ContDiff โ„ โˆž ฮฒ) {b r R : โ„} (hr : 0 โ‰ค r) (_hrR : r < R) (_hsmall : 2*R < 1) (hb : b โ‰ค r^2) (hzero : โˆ€ t, b โ‰ค t โ†’ ฮฒ t = 0) (ฮด A N : โ„) : ContDiff โ„ โˆž (radialCorrugation ฯˆ ฯ‡ y ฮฒ b ฮด A N) := by have hF : ContDiff โ„ โˆž (periodicRadialFunction ฮฒ b) := by exact radial_periodic_smooth hฮฒ hr hb hzero exact hฯˆ.add (contDiff_const.mul (hฯ‡.mul (hF.comp (hy.const_smul N)))) omit [FiniteDimensional โ„ E] in lemma radialCorrugation_gradient {ฯˆ ฯ‡ : E โ†’ โ„} {y : E โ†’ ProfilePlane} (hฯˆ : ContDiff โ„ โˆž ฯˆ) (hฯ‡ : ContDiff โ„ โˆž ฯ‡) (hy : ContDiff โ„ โˆž y) {ฮฒ : โ„ โ†’ โ„} (hฮฒ : ContDiff โ„ โˆž ฮฒ) (hฮฒ0 : ฮฒ 0 = 0) {b r R : โ„} (hr : 0 โ‰ค r) (hrR : r < R) (hsmall : 2*R < 1) (hb : b โ‰ค r^2) (hzero : โˆ€ t, b โ‰ค t โ†’ ฮฒ t = 0) (j : V โ†’L[โ„] E) (ฮด A N : โ„) (hN : N โ‰  0) (x : E) : pulledGradient j (radialCorrugation ฯˆ ฯ‡ y ฮฒ b ฮด A N) x = pulledGradient j ฯˆ x + (ฮด*A*ฯ‡ x*periodicRadialSpeed ฮฒ R (N โ€ข y x)) โ€ข (InnerProductSpace.toDual โ„ V).symm ((planeRadialCovector (periodicRadialOffset R (N โ€ข y x))).comp ((fderiv โ„ y x).comp j)) + (ฮด*A/N*periodicRadialFunction ฮฒ b (N โ€ข y x)) โ€ข pulledGradient j ฯ‡ x := by have hF : ContDiff โ„ โˆž (periodicRadialFunction ฮฒ b) := radial_periodic_smooth hฮฒ hr hb hzero apply ext_inner_right โ„ intro v rw [pulledGradient_pairing,inner_add_left,inner_add_left,real_inner_smul_left,real_inner_smul_left, pulledGradient_pairing,pulledGradient_pairing,InnerProductSpace.toDual_symm_apply] have he := corrugation_first hฯˆ hฯ‡ hF hy (ฮด*A/N) N x (j v) have heq : (fun z => ฯˆ z+(ฮด*A/N)*ฯ‡ z*periodicRadialFunction ฮฒ b (N โ€ข y z)) = radialCorrugation ฯˆ ฯ‡ y ฮฒ b ฮด A N := by funext z; dsimp [radialCorrugation]; ring rw [heq,periodicRadialFunction_first hฮฒ hฮฒ0 hr hrR hsmall hb hzero] at he simp only [ContinuousLinearMap.comp_apply] rw [he] field_simp [hN] ring end YauCounterexamples end end OAI
import Mathlib
import OAI.Geometry.SmoothYau.Estimates.ExistsPreparationCovector
import OAI.Geometry.SmoothYau.Estimates.RadialSpeedPositiveAnnulus
import OAI.Geometry.SmoothYau.Geometry.MetricGradient
import OAI.Geometry.SmoothYau.Limits.CoordinateForm
namespace OAI
noncomputable section
namespace YauCounterexamples
section
open Set Filter Manifold Bundle MeasureTheory
open scoped Topology ContDiff ENNReal
open Set Filter Manifold Bundle
open scoped Topology ContDiff
open Set Filter Manifold Bundle
open scoped Topology ContDiff
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E]
[FiniteDimensional โ„ E] {M : Type*} [TopologicalSpace M] [ChartedSpace E M]
[IsManifold ๐“˜(โ„,E) โˆž M]
def localMetricFlat (g : SmoothMetric E M) (p x : M) : E โ†’L[โ„] E โ†’L[โ„] โ„ :=
ContinuousLinearMap.inCoordinates E (TangentSpace ๐“˜(โ„,E)) (E โ†’L[โ„] โ„)
(fun x => TangentSpace ๐“˜(โ„,E) x โ†’L[โ„] โ„) p x p x (g.inner x)
omit [FiniteDimensional โ„ E] in
lemma localMetricFlat_pairing (g : SmoothMetric E M) (p x : M)
(hx : x โˆˆ (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).baseSet) (v w : E) :
localMetricFlat g p x v w = g.inner x
((trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).symm x v)
((trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).symm x w) := by
unfold localMetricFlat
rw [inCoordinates_apply_eqโ‚‚ hx hx (by simp)]
simp
lemma localMetricFlat_invertible (g : SmoothMetric E M) (p x : M)
(hx : x โˆˆ (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).baseSet) :
(localMetricFlat g p x).IsInvertible := by
let e := (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).continuousLinearEquivAt โ„ x hx
have hi : Function.Injective (localMetricFlat g p x) := by
apply (localMetricFlat g p x).ker_eq_bot.mp
rw [LinearMap.ker_eq_bot']
intro v hv
by_contra hn
have he : e.symm v โ‰  0 := by simpa only [ne_eq,EmbeddingLike.map_eq_zero_iff] using hn
have hp := g.pos x (e.symm v) he
have hz := congrArg (fun f : E โ†’L[โ„] โ„ => f v) hv
change localMetricFlat g p x v v = 0 at hz
rw [localMetricFlat_pairing g p x hx] at hz
change g.inner x (e.symm v) (e.symm v) = 0 at hz
linarith
have hdim : Module.finrank โ„ E = Module.finrank โ„ (E โ†’L[โ„] โ„) :=
(InnerProductSpace.toDual โ„ E).toLinearEquiv.finrank_eq
have hs := (LinearMap.injective_iff_surjective_of_finrank_eq_finrank hdim).mp hi
exact โŸจ(LinearEquiv.ofBijective (localMetricFlat g p x).toLinearMap โŸจhi,hsโŸฉ).toContinuousLinearEquiv,rflโŸฉ
omit [FiniteDimensional โ„ E] in
lemma contMDiffAt_localMetricFlat (g : SmoothMetric E M) (p : M) :
ContMDiffAt ๐“˜(โ„,E) ๐“˜(โ„,E โ†’L[โ„] E โ†’L[โ„] โ„) โˆž (localMetricFlat g p) p := by
have hg := g.contMDiff p
rw [contMDiffAt_section p] at hg
simp only [hom_trivializationAt_apply] at hg
convert! hg using 1
lemma local_metricGradient (g : SmoothMetric E M) (u : M โ†’ โ„) (p x : M)
(hx : x โˆˆ (trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).baseSet) :
(trivializationAt E (TangentSpace ๐“˜(โ„,E)) p โŸจx,metricGradient g u xโŸฉ).2 =
(localMetricFlat g p x).inverse
(inTangentCoordinates ๐“˜(โ„,E) ๐“˜(โ„,โ„) id u
(mfderiv ๐“˜(โ„,E) ๐“˜(โ„,โ„) u) p x) := by
symm
apply (localMetricFlat_invertible g p x hx).inverse_apply_eq.mpr
ext w
rw [localMetricFlat_pairing g p x hx,Trivialization.symm_apply_apply_mk _ hx,
metricGradient_pairing]
unfold inTangentCoordinates
simp only [id_eq]
have he := ContinuousLinearMap.inCoordinates_eq (ฯ• := mfderiv ๐“˜(โ„,E) ๐“˜(โ„,โ„) u x) hx
(show u x โˆˆ (trivializationAt โ„ (TangentSpace ๐“˜(โ„,โ„)) (u p)).baseSet by
simp [TangentBundle.trivializationAt_baseSet, chartAt_self_eq])
have hew := congrArg (fun L : E โ†’L[โ„] โ„ => L w) he
exact hew.trans (by
simp [Trivialization.continuousLinearEquivAt_apply,
Trivialization.continuousLinearEquivAt_symm_apply]
rfl)
theorem contMDiff_metricGradient (g : SmoothMetric E M) {u : M โ†’ โ„}
(hu : ContMDiff ๐“˜(โ„,E) ๐“˜(โ„,โ„) โˆž u) :
ContMDiff ๐“˜(โ„,E) (๐“˜(โ„,E).prod ๐“˜(โ„,E)) โˆž
(fun x => TotalSpace.mk' E x (metricGradient g u x)) := by
intro p
rw [contMDiffAt_section p]
have hg := contMDiffAt_localMetricFlat g p
have hi := (localMetricFlat_invertible g p p (mem_baseSet_trivializationAt E _ p)).contDiffAt_map_inverse (n := โˆž)
have hs := (hi.comp_contMDiffAt hg).clm_apply ((hu p).mfderiv_const (m := โˆž) (by simp))
apply hs.congr_of_eventuallyEq
filter_upwards [(trivializationAt E (TangentSpace ๐“˜(โ„,E)) p).open_baseSet.mem_nhds
(mem_baseSet_trivializationAt E _ p)] with x hx
exact local_metricGradient g u p x hx

Xet Storage Details

Size:
52.2 kB
ยท
Xet hash:
d6c57a19e454c63a240bcf95729148f012f160ab79ed20a01761f71596f27693

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.