import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Comparison.ComparisonChart import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Comparison.Jets.ComparisonSmoothJets import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Neck.CenteredNeckMetric /-! # Actual pullbacks in the standard-cap comparison The same dilated map used for image containment carries the metric comparison. Its differential contributes one dilation factor in each metric slot. The normalization is exactly the frozen inverse-scale square. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false -- Bilinear coefficient operations retain two continuous-linear slots. set_option maxSynthPendingDepth 12 open scoped Manifold ContDiff Topology universe u namespace PoincareMT.MetricSurgery local notation "Eā‚ƒ" => EuclideanSpace ā„ (Fin 3) section General variable {M : Type u} [TopologicalSpace M] [ChartedSpace Eā‚ƒ M] [IsManifold (š“” 3) āˆž M] theorem pullbackCoefficients_comp (g : RiemannianMetric 3 M) {f : Eā‚ƒ → M} {k : Eā‚ƒ → Eā‚ƒ} {p : Eā‚ƒ} (hf : ContMDiffAt (š“” 3) (š“” 3) āˆž f (k p)) (hk : ContDiffAt ā„ āˆž k p) : g.pullbackCoefficients (f ∘ k) p = ContinuousLinearMap.bilinearComp (g.pullbackCoefficients f (k p)) (fderiv ā„ k p) (fderiv ā„ k p) := by have hcomp := mfderiv_comp p (hf.mdifferentiableAt (by simp)) (hk.contMDiffAt.mdifferentiableAt (by simp)) rw [mfderiv_eq_fderiv] at hcomp apply ContinuousLinearMap.ext intro v apply ContinuousLinearMap.ext intro w change g.inner (f (k p)) (mfderiv (š“” 3) (š“” 3) (f ∘ k) p v) (mfderiv (š“” 3) (š“” 3) (f ∘ k) p w) = _ rw [hcomp] rfl theorem pullbackCoefficients_dilation (g : RiemannianMetric 3 M) {f : Eā‚ƒ → M} (a : ā„) (p : Eā‚ƒ) (hf : ContMDiffAt (š“” 3) (š“” 3) āˆž f (a • p)) : g.pullbackCoefficients (fun x => f (a • x)) p = a ^ 2 • g.pullbackCoefficients f (a • p) := by have hd : ContMDiffAt (š“” 3) (š“” 3) āˆž (fun x : Eā‚ƒ => a • x) p := (contDiff_id.const_smul a).contMDiff.contMDiffAt have hder : mfderiv (š“” 3) (š“” 3) (fun x : Eā‚ƒ => a • x) p = a • ContinuousLinearMap.id ā„ Eā‚ƒ := by rw [mfderiv_eq_fderiv] exact ((hasFDerivAt_id p).const_smul a).fderiv have hcomp : mfderiv (š“” 3) (š“” 3) (fun x => f (a • x)) p = (mfderiv (š“” 3) (š“” 3) f (a • p)).comp (a • ContinuousLinearMap.id ā„ Eā‚ƒ) := by rw [← hder] exact mfderiv_comp p (hf.mdifferentiableAt (by simp)) (hd.mdifferentiableAt (by simp)) apply ContinuousLinearMap.ext intro v apply ContinuousLinearMap.ext intro w change g.inner (f (a • p)) (mfderiv (š“” 3) (š“” 3) (fun x => f (a • x)) p v) (mfderiv (š“” 3) (š“” 3) (fun x => f (a • x)) p w) = _ rw [hcomp] change g.inner (f (a • p)) (mfderiv (š“” 3) (š“” 3) f (a • p) (a • v)) (mfderiv (š“” 3) (š“” 3) f (a • p) (a • w)) = a ^ 2 * g.inner (f (a • p)) (mfderiv (š“” 3) (š“” 3) f (a • p) v) (mfderiv (š“” 3) (š“” 3) f (a • p) w) simp only [map_smul, smul_apply, smul_eq_mul] ring theorem pullbackCoefficients_rescaled (g : RiemannianMetric 3 M) (lambda : ā„) (hlambda : 0 < lambda) (f : Eā‚ƒ → M) (p : Eā‚ƒ) : (rescaledMetric g lambda hlambda).pullbackCoefficients f p = lambda • g.pullbackCoefficients f p := by apply ContinuousLinearMap.ext intro v apply ContinuousLinearMap.ext intro w exact rescaledMetric_inner g lambda hlambda (f p) (mfderiv (š“” 3) (š“” 3) f p v) (mfderiv (š“” 3) (š“” 3) f p w) end General theorem dilatedSurgeryBallChart_pullbackCoefficients (gā‚€ : StandardInitialMetric) {L a R : ā„} [Nonempty (SurgeryBall.{u} gā‚€ L)] (ha : 0 < a) (hR : 0 < R) (hfit : a * radialEuclideanRadius gā‚€ R ≤ radialEuclideanRadius gā‚€ L) (h : RiemannianMetric 3 (SurgeryBall.{u} gā‚€ L)) {p : StandardCapSpace} (hp : p ∈ gā‚€.metric.ball 0 R) : h.pullbackCoefficients (dilatedSurgeryBallChart gā‚€ L a) p = a ^ 2 • h.pullbackCoefficients (surgeryBallChart gā‚€ L) (a • p) := by apply pullbackCoefficients_dilation have hmem := dilation_mem_surgeryBall gā‚€ ha hR hfit hp exact (surgeryBallChart_contMDiffOn gā‚€ L _ hmem).contMDiffAt (Metric.isOpen_ball.mem_nhds hmem) theorem dilatedSurgeryBallChart_error (gā‚€ : StandardInitialMetric) {L a R : ā„} [Nonempty (SurgeryBall.{u} gā‚€ L)] (ha : 0 < a) (hR : 0 < R) (hfit : a * radialEuclideanRadius gā‚€ R ≤ radialEuclideanRadius gā‚€ L) (h : RiemannianMetric 3 (SurgeryBall.{u} gā‚€ L)) (lambda : ā„) {p : StandardCapSpace} (hp : p ∈ gā‚€.metric.ball 0 R) : lambda • h.pullbackCoefficients (dilatedSurgeryBallChart gā‚€ L a) p - gā‚€.metric.euclideanCoefficients p = a ^ 2 • (lambda • h.pullbackCoefficients (surgeryBallChart gā‚€ L) (a • p) - gā‚€.metric.euclideanCoefficients (a • p)) + standardDilationError gā‚€ a p := by rw [dilatedSurgeryBallChart_pullbackCoefficients gā‚€ ha hR hfit h hp] unfold standardDilationError module end PoincareMT.MetricSurgery