import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.HarmonicSphereCharts import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Analysis.Covariant.IntegrationByParts import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Analysis.Covariant.IntegrationByPartsTests /-! # The chart harmonic equation from first-variation tests Morgan-Tian Claim 18.12, printed pp. 426-427. Covariant integration by parts and supported scalar tests give zero tension in every actual target chart. The test-integral premise is supplied separately by energy stationarity using actual smooth sphere variations. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set MeasureTheory open scoped Manifold ContDiff BigOperators universe u namespace PoincareMT open CoordinateExponential ConnectionVariation ConjugateVariation variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] /-- Vanishing of all supported coordinate first variations gives the actual chart harmonic equation. Source: MT Claim 18.12, pp. 426-427. -/ theorem m60SphereChartHarmonic_of_test_integrals (g : RiemannianMetric n M) (f : UnitTwoSphere โ†’ M) (hf : ContMDiff (๐“ก 2) (๐“ก n) โˆž f) (htest : โˆ€ (b : M) (V : LoopPlane โ†’ EuclideanSpace โ„ (Fin n)), ContDiff โ„ โˆž V โ†’ HasCompactSupport V โ†’ tsupport V โІ (f โˆ˜ m60SphereParameter) โปยน' (extChartAt (๐“ก n) b).source โ†’ let u := (extChartAt (๐“ก n) b) โˆ˜ (f โˆ˜ m60SphereParameter) let B := g.pullbackCoefficients (extChartAt (๐“ก n) b).symm โˆซ z, โˆ‘ i : Fin 2, B (u z) (covDerivAlong (christoffelBilinear B) u V (EuclideanSpace.basisFun (Fin 2) โ„ i) z) (fderiv โ„ u z (EuclideanSpace.basisFun (Fin 2) โ„ i)) = 0) : M60SphereChartHarmonic g f := by intro b z hz let ฯ† := f โˆ˜ m60SphereParameter let c := extChartAt (๐“ก n) b let O := ฯ† โปยน' c.source let u := c โˆ˜ ฯ† let B := g.pullbackCoefficients c.symm let ฮ“ := christoffelBilinear B let e := EuclideanSpace.basisFun (Fin 2) โ„ let ฯ„ : LoopPlane โ†’ EuclideanSpace โ„ (Fin n) := fun x => โˆ‘ i : Fin 2, covDerivAlong ฮ“ u (fun y => fderiv โ„ u y (e i)) (e i) x have hฯ† : ContMDiff (๐“ก 2) (๐“ก n) โˆž ฯ† := hf.comp m60SphereParameter_contMDiff have hO : IsOpen O := hฯ†.continuous.isOpen_preimage _ (isOpen_extChartAt_source b) have hu : ContDiffOn โ„ โˆž u O := by intro x hx have hx' : ฯ† x โˆˆ (extChartAt (๐“ก n) b).source := hx have hc : ContMDiffAt (๐“ก n) (๐“ก n) โˆž c (ฯ† x) := contMDiffAt_extChartAt' (by simpa only [extChartAt_source] using hx') exact (contMDiffAt_iff_contDiffAt.mp (hc.comp x hฯ†.contMDiffAt)).contDiffWithinAt have htarget (x : LoopPlane) (hx : x โˆˆ O) : u x โˆˆ c.target := c.map_source hx have hB (x : LoopPlane) (hx : x โˆˆ O) : ContDiffAt โ„ โˆž B (u x) := (g.contDiffOn_chartCoefficients b).contDiffAt ((isOpen_extChartAt_target b).mem_nhds (htarget x hx)) have hฮ“ (x : LoopPlane) (hx : x โˆˆ O) : ContDiffAt โ„ โˆž ฮ“ (u x) := contDiffAt_christoffelBilinear (hB x hx) (g.isInvertible_chartCoefficients b (htarget x hx)) have hcompat (x : LoopPlane) (hx : x โˆˆ O) : IsMetricCompatibleAt B ฮ“ (u x) := isMetricCompatibleAt_chartCoefficients g b (htarget x hx) have hฯ„ : ContDiffOn โ„ โˆž ฯ„ O := by apply ContDiffOn.sum intro i _ x hx have hup := hu.contDiffAt (hO.mem_nhds hx) exact (contDiffAt_covDerivAlong (hฮ“ x hx) hup ((hup.fderiv_right (m := โˆž) (by simp)).clm_apply contDiffAt_const) (e i)).contDiffWithinAt have hpair (w : EuclideanSpace โ„ (Fin n)) : EqOn (fun x => B (u x) w (ฯ„ x)) (fun _ => 0) O := by apply M60.eqOn_zero_of_integral_contDiff_smul_eq_zero (ฮผ := (volume : Measure LoopPlane)) hO ยท intro x hx exact ((((hB x hx).comp x (hu.contDiffAt (hO.mem_nhds hx))).clm_apply contDiffAt_const).clm_apply (hฯ„.contDiffAt (hO.mem_nhds hx))).continuousAt.continuousWithinAt ยท intro ฯˆ hฯˆ hฯˆc hฯˆO let V : LoopPlane โ†’ EuclideanSpace โ„ (Fin n) := fun x => ฯˆ x โ€ข w have hV : ContDiff โ„ โˆž V := hฯˆ.smul contDiff_const have hVc : HasCompactSupport V := hฯˆc.smul_right have hVO : tsupport V โІ O := (tsupport_smul_subset_left ฯˆ (fun _ => w)).trans hฯˆO have hi := M60.covDerivAlong_trace_integration_by_parts (ฮผ := volume) e hO hu hV.contDiffOn hB hฮ“ hcompat hVc hVO have ht := htest b V hV hVc hVO change (โˆซ x, โˆ‘ i : Fin 2, B (u x) (covDerivAlong ฮ“ u V (e i) x) (fderiv โ„ u x (e i))) = 0 at ht have hz' : (โˆซ x, B (u x) (V x) (ฯ„ x)) = 0 := by have hi' := hi.2.2 change _ = -(โˆซ x, B (u x) (V x) (ฯ„ x)) at hi' linarith [hi'] simpa only [V, map_smul, smul_apply, smul_eq_mul] using hz' have hzero : ฯ„ z = 0 := by apply (g.isInvertible_chartCoefficients b (htarget z hz)).injective ext w simp only [map_zero, zero_apply] change B (u z) (ฯ„ z) w = 0 have hs : B (u z) (ฯ„ z) w = B (u z) w (ฯ„ z) := g.symm _ _ _ rw [hs] exact hpair w hz simpa only [ฯ„, Fin.sum_univ_two] using hzero end PoincareMT