import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.ProductChartMetric import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RoundProductRicci /-! # The actual sphere-line metric and its time equation in fixed coordinates The frozen product identification is fixed in time. Its genuine pullback metric therefore satisfies the actual Ricci-flow equation in the full Euclidean cylinder chart, including the one-sided terminal time derivative. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Bundle Topology namespace PoincareMT.M35 local notation "V" => EuclideanSpace โ„ (Fin 3) local notation "E2" => EuclideanSpace โ„ (Fin 2) local notation "Ip" => ModelWithCorners.prod (๐“ก 2) ๐“˜(โ„, โ„) variable {M : Type*} [TopologicalSpace M] [ChartedSpace V M] [IsManifold (๐“ก 3) โˆž M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] {K : AncientKappaSolution 3 M} /-- The actual product identification composed with the full cylinder chart is smooth at every Euclidean point. -/ theorem sphereLineChart_contMDiff (N : M27SphereLineFlowCertificate K) (q : UnitTwoSphere) : ContMDiff (๐“ก 3) (๐“ก 3) โˆž (N.identification โˆ˜ cylinderChart q) := N.identification.contMDiff.comp (cylinderChart_contMDiff q) /-- The same fixed chart has an actual invertible differential everywhere. -/ theorem sphereLineChart_invertible (N : M27SphereLineFlowCertificate K) (q : UnitTwoSphere) (x : V) : (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x).IsInvertible := by have hN := N.identification.isLocalDiffeomorph have hNi : (mfderiv Ip (๐“ก 3) N.identification (cylinderChart q x)).IsInvertible := โŸจhN.mfderivToContinuousLinearEquiv (by simp) _, rflโŸฉ rw [mfderiv_comp x (N.identification.contMDiff.mdifferentiable (by simp) _) ((cylinderChart_contMDiff q).mdifferentiable (by simp) x)] exact hNi.comp (cylinderChart_mfderiv_invertible q x) /-- The actual sphere-line pullback metric in the full fixed cylinder chart. -/ noncomputable def sphereLineChartMetric (N : M27SphereLineFlowCertificate K) (t : โ„) (q : UnitTwoSphere) : RiemannianMetric 3 V := RiemannianMetric.ofEuclideanCoefficients ((K.flow.metric t).pullbackCoefficients (N.identification โˆ˜ cylinderChart q)) (contDiff_iff_contDiffAt.mpr fun x => (K.flow.metric t).contDiffAt_pullbackCoefficients (sphereLineChart_contMDiff N q x)) (fun x u v => (K.flow.metric t).symm (N.identification (cylinderChart q x)) (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x u) (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x v)) (fun x v hv => (K.flow.metric t).pos (N.identification (cylinderChart q x)) (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x v) (fun hz => hv ((sphereLineChart_invertible N q x).injective (hz.trans (map_zero (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x)).symm)))) /-- Its actual native Levi-Civita connection. -/ noncomputable def sphereLineChartConnection (N : M27SphereLineFlowCertificate K) (t : โ„) (q : UnitTwoSphere) : LeviCivitaData (sphereLineChartMetric N t q) := (sphereLineChartMetric N t q).euclideanLeviCivitaData /-- The frozen metric transport gives the exact horizontal-plus-line form. -/ theorem sphereLineChartMetric_product (N : M27SphereLineFlowCertificate K) (t : โ„) (ht : t โ‰ค 0) (q : UnitTwoSphere) (x u v : V) : (sphereLineChartMetric N t q).inner x u v = (m27SphereChartMetric N.sphere t q).inner (cylinderCoordinateEquiv x).1 (cylinderCoordinateEquiv u).1 (cylinderCoordinateEquiv v).1 + (cylinderCoordinateEquiv u).2 * (cylinderCoordinateEquiv v).2 := by change (K.flow.metric t).inner (N.identification (cylinderChart q x)) (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x u) (mfderiv (๐“ก 3) (๐“ก 3) (N.identification โˆ˜ cylinderChart q) x v) = _ rw [mfderiv_comp_apply x (N.identification.contMDiff.mdifferentiable (by simp) _) ((cylinderChart_contMDiff q).mdifferentiable (by simp) x), mfderiv_comp_apply x (N.identification.contMDiff.mdifferentiable (by simp) _) ((cylinderChart_contMDiff q).mdifferentiable (by simp) x), N.metric_transport t ht] rw [M27RoundSphereFamily.productInner, mfderiv_cylinderChart, mfderiv_cylinderChart] rfl /-- The genuine pullback metric inherits the actual one-sided Ricci-flow time equation from the supplied ancient flow. -/ theorem sphereLineChartMetric_hasDerivWithinAt (N : M27SphereLineFlowCertificate K) (t : โ„) (ht : t โ‰ค 0) (q : UnitTwoSphere) (x u v : V) : HasDerivWithinAt (fun s => (sphereLineChartMetric N s q).inner x u v) (-2 * (sphereLineChartConnection N t q).ricci x u v) (Iic 0) t := by let f := N.identification โˆ˜ cylinderChart q have hmetric : โˆ€แถ  y in ๐“ x, โˆ€ a b : V, (sphereLineChartMetric N t q).inner y a b = (K.flow.metric t).inner (f y) (mfderiv (๐“ก 3) (๐“ก 3) f y a) (mfderiv (๐“ก 3) (๐“ก 3) f y b) := Eventually.of_forall fun _ _ _ => rfl have hricci := (sphereLineChartConnection N t q).ricci_eq_pullback_euclidean (K.flow.connection t) (sphereLineChart_contMDiff N q x) (Eventually.of_forall (sphereLineChart_invertible N q)) hmetric u v rw [hricci] exact K.flow.equation t ht (f x) (mfderiv (๐“ก 3) (๐“ก 3) f x u) (mfderiv (๐“ก 3) (๐“ก 3) f x v) end PoincareMT.M35