import PoincareLib.Geometry.RicciFlow.Blowup.Construction.SourceNames import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Geometry import PoincareLib.Geometry.RicciFlow.Rescaling.Construction /-! # The actual terminal metric of a normalized cylinder Morgan--Tian Definition 3.40, p. 61, and Corollary 11.3, p. 269. The terminal identity holds on an open set, so it identifies the spatial differential as well as the point. Consequently the normalized pullback is the scaled terminal metric. Its ambient balls are exactly the frozen normalized base balls, for every real radius. -/ set_option autoImplicit false open Set Filter open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.M30 private theorem inner_mfderiv_of_slice_identity (F : GeneralizedRicciFlowData.{u}) {s t : ℝ} (ht : t = s) (f : (F.slice s).carrier β†’ (F.slice t).carrier) (x : (F.slice s).carrier) (hf : βˆ€αΆ  y in 𝓝 x, (⟨t, f y⟩ : F.point) = (⟨s, y⟩ : F.point)) (v w : TangentSpace (𝓑 3) x) : (F.metric t).inner (f x) (mfderiv (𝓑 3) (𝓑 3) f x v) (mfderiv (𝓑 3) (𝓑 3) f x w) = (F.metric s).inner x v w := by subst t have heq : f =αΆ [𝓝 x] id := by filter_upwards [hf] with y hy exact eq_of_heq (Sigma.mk.inj_iff.mp hy).2 rw [heq.mfderiv_eq, mfderiv_id] change (F.metric s).inner (f x) v w = (F.metric s).inner x v w exact congrArg (fun y => (F.metric s).inner y v w) heq.eq_of_nhds /-- A cylinder equal to the actual terminal slice on an open set has exactly its scaled terminal inner product (Definition 3.40 and Corollary 11.3, pp. 61 and 269). The point identity is used on a neighborhood of each point. -/ theorem Cylinder.pullbackInner_zero_of_identity {F : GeneralizedRicciFlowData.{u}} {origin scale : ℝ} {I : Set ℝ} {U : Set (F.slice origin).carrier} (hU : IsOpen U) (e : GeneralizedFlowCylinder F (F.slice origin) origin scale I U) (hβ‚€ : (0 : ℝ) ∈ I) (hzero : βˆ€ x ∈ U, e.pointMap 0 hβ‚€ x = (⟨origin, x⟩ : F.point)) (x : (F.slice origin).carrier) (hx : x ∈ U) (v w : TangentSpace (𝓑 3) x) : e.pullbackInner 0 hβ‚€ x v w = scale * (F.metric origin).inner x v w := by unfold GeneralizedFlowCylinder.pullbackInner congr 1 apply inner_mfderiv_of_slice_identity F (by simp) (e.forward 0 hβ‚€) x ?_ v w filter_upwards [hU.mem_nhds hx] with y hy exact hzero y hy /-- Positive parabolic metric scaling gives the exact normalized base balls of Definition 3.40 and Corollary 11.3, pp. 61 and 269, including empty balls at nonpositive radii. -/ theorem scaled_terminal_ball_eq_baseBall (S : GeneralizedBlowupSequence.{u}) (k : β„•) (R : ℝ) : RiemannianMetric.ball (M13.scaleSmoothMetric ((S.flow k).metric (S.base k).1) (S.scale k) (S.base_scalar_pos k)) (S.base k).2 R = S.baseBall k R := by have h := M13.homothety_ball_image ((S.flow k).metric (S.base k).1) (M13.scaleSmoothMetric ((S.flow k).metric (S.base k).1) (S.scale k) (S.base_scalar_pos k)) (Diffeomorph.refl (𝓑 3) ((S.flow k).slice (S.base k).1).carrier ∞) (S.scale k) (S.base_scalar_pos k) (M13.identity_metricHomothety ((S.flow k).metric (S.base k).1) (S.scale k) (S.base_scalar_pos k)) (S.base k).2 (R / Real.sqrt (S.scale k)) have hsqrt : Real.sqrt (S.scale k) β‰  0 := (Real.sqrt_pos.mpr (S.base_scalar_pos k)).ne' simpa only [GeneralizedBlowupSequence.baseBall, Diffeomorph.coe_refl, id_eq, image_id, mul_div_cancelβ‚€ _ hsqrt] using h.symm end PoincareMT.M30