import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Minimizer.Compactness.Target import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.Harmonic.CoordinateMetric /-! # The target metric read from finite observations A local linear chart reader transports the actual inverse-chart metric to the observation space. The resulting form is positive semidefinite on all vectors and agrees exactly with the intrinsic Gram matrix on derivatives of observed target maps. Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. 447-449. -/ set_option autoImplicit false noncomputable section open Set Filter open scoped Topology Manifold ContDiff namespace PoincareMT variable {n m : โ„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local notation "E" => EuclideanSpace โ„ (Fin m) /-- A genuine local linear chart reader gives an ambient semidefinite metric with the exact observed Gram identity. Proof expansion for Morgan-Tian (2007), Lemma 19.15, pp. 447-449. -/ theorem m64ChartReadable_local_metric (g : RiemannianMetric n M) (e : M โ†’ E) (he : ContMDiff (๐“ก n) (๐“ก m) 1 e) (hread : M60.SUChartReadable (n := n) e) (p : M) : โˆƒ (U : Set M) (B : M โ†’ E โ†’L[โ„] E โ†’L[โ„] โ„), IsOpen U โˆง p โˆˆ U โˆง ContinuousOn B U โˆง (โˆ€ q v, 0 โ‰ค B q v v) โˆง (โˆ€ q v w, B q v w = B q w v) โˆง โˆ€ (f : LoopPlane โ†’ M), ContMDiff (๐“ก 2) (๐“ก n) 1 f โ†’ โˆ€ z, f z โˆˆ U โ†’ โˆ€ i j : Fin 2, B (f z) (fderiv โ„ (e โˆ˜ f) z (EuclideanSpace.basisFun (Fin 2) โ„ i)) (fderiv โ„ (e โˆ˜ f) z (EuclideanSpace.basisFun (Fin 2) โ„ j)) = m60AreaGram g f z i j := by obtain โŸจb, hb, L, hLโŸฉ := hread p let c := chartAt (EuclideanSpace โ„ (Fin n)) b have hb' : p โˆˆ c.source := by simpa only [extChartAt_source] using hb have hL' : (fun q => L (e q)) =แถ [๐“ p] c := by simpa only [extChartAt_coe, modelWithCornersSelf_coe, Function.id_comp] using hL have hsource : IsOpen c.source := c.open_source obtain โŸจU, hUsub, hUopen, hpUโŸฉ := mem_nhds_iff.mp (inter_mem (hsource.mem_nhds hb') hL') let B : M โ†’ E โ†’L[โ„] E โ†’L[โ„] โ„ := fun q => (m60SUChartMetric g c (c q)).bilinearComp L L have hc : c.MDifferentiable (๐“ก n) (๐“ก n) := mdifferentiable_chart b have hci : ContMDiffOn (๐“ก n) (๐“ก n) 1 c.symm c.target := contMDiffOn_chart_symm have hmetric : ContinuousOn (fun q => m60SUChartMetric g c (c q)) U := (m60SUChartMetric_continuousOn g c hci).comp (c.continuousOn.mono (fun q hq => (hUsub hq).1)) (fun q hq => c.map_source (hUsub hq).1) refine โŸจU, B, hUopen, hpU, ?_, ?_, ?_, ?_โŸฉ ยท apply continuousOn_clm_apply.mpr intro v apply continuousOn_clm_apply.mpr intro w exact (hmetric.clm_apply continuousOn_const).clm_apply continuousOn_const ยท intro q v exact (g.toRiemannianMetric.toCore (c.symm (c q))).re_inner_nonneg _ ยท intro q v w exact g.symm _ _ _ ยท intro f hf z hz i j have hreader : (c โˆ˜ f) =แถ [๐“ z] (L โˆ˜ (e โˆ˜ f)) := by filter_upwards [hf.continuous.continuousAt (hUopen.mem_nhds hz)] with y hy exact (hUsub hy).2.symm have hd : DifferentiableAt โ„ (e โˆ˜ f) z := (contMDiff_iff_contDiff.mp (he.comp hf)).differentiable (by simp) z have hdf : fderiv โ„ (c โˆ˜ f) z = L.comp (fderiv โ„ (e โˆ˜ f) z) := by rw [hreader.fderiv_eq, fderiv_comp z L.differentiableAt hd, L.fderiv] rw [m60AreaGram_eq_SUChartMetric g c hc hf.continuous.continuousAt (hUsub hz).1, hdf] rfl end PoincareMT