import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Ancient.Products import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Geometry.CylinderCharts import PoincareLib.Geometry.Riemannian.Coordinates.Coefficients import PoincareLib.Geometry.Riemannian.Curvature.Pullback /-! # The actual M27 product metric in one cylinder chart The inverse sphere chart and the frozen quotient cover define genuine Euclidean pullback metrics. Native curvature naturality retains the actual positive sectional curvature of M27's sphere family. Its literal product metric transport gives the exact horizontal-plus-line coefficient identity. -/ 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) π“˜(ℝ, ℝ) private noncomputable def chartMetric {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] (g : RiemannianMetric n M) (f : EuclideanSpace ℝ (Fin n) β†’ M) (hf : ContMDiff (𝓑 n) (𝓑 n) ∞ f) (hi : βˆ€ x, (mfderiv (𝓑 n) (𝓑 n) f x).IsInvertible) : RiemannianMetric n (EuclideanSpace ℝ (Fin n)) := RiemannianMetric.ofEuclideanCoefficients (g.pullbackCoefficients f) (contDiff_iff_contDiffAt.mpr fun x => g.contDiffAt_pullbackCoefficients (hf x)) (fun x u v => g.symm (f x) (mfderiv (𝓑 n) (𝓑 n) f x u) (mfderiv (𝓑 n) (𝓑 n) f x v)) (fun x v hv => g.pos (f x) (mfderiv (𝓑 n) (𝓑 n) f x v) (fun hz => hv ((hi x).injective (hz.trans (map_zero (mfderiv (𝓑 n) (𝓑 n) f x)).symm)))) /-- The actual inverse sphere chart is smooth on its whole Euclidean target. -/ theorem m27_sphereChart_contMDiff (q : UnitTwoSphere) : ContMDiff (𝓑 2) (𝓑 2) ∞ (chartAt E2 q).symm := by intro x have hx : x ∈ (chartAt E2 q).target := by rw [sphere_chart_target]; trivial exact (contMDiffOn_chart_symm (I := 𝓑 2) (n := ∞) x hx).contMDiffAt ((chartAt E2 q).open_target.mem_nhds hx) /-- The actual inverse sphere differential is invertible everywhere. -/ theorem m27_sphereChart_invertible (q : UnitTwoSphere) (x : E2) : (mfderiv (𝓑 2) (𝓑 2) (chartAt E2 q).symm x).IsInvertible := by have hx : x ∈ (extChartAt (𝓑 2) q).target := by simp [sphere_chart_target] have h := isInvertible_mfderivWithin_extChartAt_symm hx simp only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at h exact h /-- The actual M27 round factor, pulled back by its ordinary inverse chart. -/ noncomputable def m27SphereChartMetric (F : M27RoundSphereFamily) (t : ℝ) (q : UnitTwoSphere) : RiemannianMetric 2 E2 := chartMetric (F.metric t) (chartAt E2 q).symm (m27_sphereChart_contMDiff q) (m27_sphereChart_invertible q) /-- The native connection of that actual chart metric. -/ noncomputable def m27SphereChartConnection (F : M27RoundSphereFamily) (t : ℝ) (q : UnitTwoSphere) : LeviCivitaData (m27SphereChartMetric F t q) := (m27SphereChartMetric F t q).euclideanLeviCivitaData /-- Native curvature naturality preserves the actual positive round curvature in the factor chart, without choosing a round parametrization. -/ theorem m27SphereChartMetric_round (F : M27RoundSphereFamily) (t : ℝ) (ht : t ≀ 0) (q : UnitTwoSphere) : ConstantPositiveSectionalCurvature (m27SphereChartMetric F t q) (m27SphereChartConnection F t q) := by obtain ⟨c, hc, hround⟩ := F.round t ht refine ⟨c, hc, ?_⟩ intro x u v hu hv huv let f := (chartAt E2 q).symm let A := mfderiv (𝓑 2) (𝓑 2) f x have hm : βˆ€αΆ  y in 𝓝 x, βˆ€ a b : E2, (m27SphereChartMetric F t q).inner y a b = (F.metric t).inner (f y) (mfderiv (𝓑 2) (𝓑 2) f y a) (mfderiv (𝓑 2) (𝓑 2) f y b) := Eventually.of_forall fun _ _ _ => rfl have hu' : (F.metric t).inner (f x) (A u) (A u) = 1 := hu have hv' : (F.metric t).inner (f x) (A v) (A v) = 1 := hv have huv' : (F.metric t).inner (f x) (A u) (A v) = 0 := huv have hr := hround (f x) (A u) (A v) hu' hv' huv' have hR := (m27SphereChartConnection F t q).curvatureTensor_eq_pullback_euclidean (F.connection t) (m27_sphereChart_contMDiff q x) (Eventually.of_forall (m27_sphereChart_invertible q)) hm u v u v unfold LeviCivitaData.sectionalCurvature at hr ⊒ rw [hu', hv', huv'] at hr rw [hu, hv, huv, hR] simpa only [one_mul, zero_pow (by norm_num : (2 : β„•) β‰  0), sub_zero, div_one] using hr 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 cover composed with the full cylinder chart is smooth. -/ theorem twistedProductChart_contMDiff (N : M27TwistedSphereLineFlowCertificate K) (q : UnitTwoSphere) : ContMDiff (𝓑 3) (𝓑 3) ∞ (N.cover ∘ cylinderChart q) := N.cover_local_diffeomorph.contMDiff.comp (cylinderChart_contMDiff q) /-- Its actual Euclidean differential is invertible everywhere. -/ theorem twistedProductChart_invertible (N : M27TwistedSphereLineFlowCertificate K) (q : UnitTwoSphere) (x : V) : (mfderiv (𝓑 3) (𝓑 3) (N.cover ∘ cylinderChart q) x).IsInvertible := by have hc : (mfderiv Ip (𝓑 3) N.cover (cylinderChart q x)).IsInvertible := ⟨N.cover_local_diffeomorph.mfderivToContinuousLinearEquiv (by simp) _, rfl⟩ rw [mfderiv_comp x (N.cover_local_diffeomorph.mdifferentiable (by simp) _) ((cylinderChart_contMDiff q).mdifferentiable (by simp) x)] exact hc.comp (cylinderChart_mfderiv_invertible q x) /-- The frozen quotient's actual metric, pulled back to the full chart. -/ noncomputable def twistedProductChartMetric (N : M27TwistedSphereLineFlowCertificate K) (t : ℝ) (q : UnitTwoSphere) : RiemannianMetric 3 V := chartMetric (K.flow.metric t) (N.cover ∘ cylinderChart q) (twistedProductChart_contMDiff N q) (twistedProductChart_invertible N q) /-- The native connection of the actual quotient chart metric. -/ noncomputable def twistedProductChartConnection (N : M27TwistedSphereLineFlowCertificate K) (t : ℝ) (q : UnitTwoSphere) : LeviCivitaData (twistedProductChartMetric N t q) := (twistedProductChartMetric N t q).euclideanLeviCivitaData /-- The frozen metric transport gives the literal factor-plus-line identity for genuine metrics and their actual chart differentials. -/ theorem twistedProductChartMetric_product (N : M27TwistedSphereLineFlowCertificate K) (t : ℝ) (ht : t ≀ 0) (q : UnitTwoSphere) (x u v : V) : (twistedProductChartMetric 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.cover (cylinderChart q x)) (mfderiv (𝓑 3) (𝓑 3) (N.cover ∘ cylinderChart q) x u) (mfderiv (𝓑 3) (𝓑 3) (N.cover ∘ cylinderChart q) x v) = _ rw [mfderiv_comp_apply x (N.cover_local_diffeomorph.mdifferentiable (by simp) _) ((cylinderChart_contMDiff q).mdifferentiable (by simp) x), mfderiv_comp_apply x (N.cover_local_diffeomorph.mdifferentiable (by simp) _) ((cylinderChart_contMDiff q).mdifferentiable (by simp) x), N.metric_transport t ht] rw [M27RoundSphereFamily.productInner, mfderiv_cylinderChart, mfderiv_cylinderChart] rfl end PoincareMT.M35