import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.SourceNames import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Spacetime.StrongNecks.Geometry.StrongNeckHalfFlow import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.IntrinsicGeometry.IntrinsicOpenMetric /-! # Original strong-neck flows in the global normalization Rescale the once-chosen neck half flow by `Q * S.scale ^ 2` and restrict it to a closed backward interval contained in its quarter window. The terminal metric is the original slice metric scaled by Q, restricted to the same open neck. Definition 9.78 and Claims 10.10-10.11, Morgan--Tian pp. 232 and 254-255; M28 derivation 74. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.M28 private def strongNeckHalfInterval : SpacetimeInterval where domain := Icc (-(1 / 2 : ℝ)) 0 ordConnected := ordConnected_Icc nontrivial := ⟨-(1 / 2 : ℝ), by norm_num, 0, by norm_num, by norm_num⟩ variable {F : GeneralizedRicciFlowData.{u}} {t epsilon : ℝ} (S : GeneralizedStrongNeck F t epsilon) (H : RescaledRawCylinderData (C := F.slice t) (U := strongNeckOpen S) (J := strongNeckBackwardInterval) (strongNeckCylinder S) (GeneralizedStrongNeck.physical_interval_subset S)) (Q : ℝ) (hQ : 0 < Q) include hQ /-- A positive global normalization gives a positive secondary factor (Definition 9.78, p. 232; derivation 74). -/ theorem GeneralizedStrongNeck.global_scale_pos : 0 < Q * S.scale ^ 2 := mul_pos hQ (sq_pos_of_pos S.scale_pos) /-- Select the M13 rescaling of the supplied half flow once, keeping the original open neck carrier (Claims 10.10-10.11, pp. 254-255). -/ def GeneralizedStrongNeck.global_rescaling : OrdinaryParabolicRescaling (I := strongNeckHalfInterval) (GeneralizedStrongNeck.rescaled_half_flow S H) (Q * S.scale ^ 2) (GeneralizedStrongNeck.global_scale_pos S Q hQ) 0 := Classical.choice (M13.ordinaryParabolicRescaling strongNeckHalfInterval (GeneralizedStrongNeck.rescaled_half_flow S H) (Q * S.scale ^ 2) (GeneralizedStrongNeck.global_scale_pos S Q hQ) 0) /-- The common closed global window lies in the original normalized quarter window, with both endpoints included (derivation 74). -/ theorem GeneralizedStrongNeck.global_time_mem_quarter {tau s : ℝ} (hwindow : tau ≤ Q * S.scale ^ 2 / 4) (hs : s ∈ Icc (-tau) 0) : s / (Q * S.scale ^ 2) ∈ Icc (-(1 / 4 : ℝ)) 0 := by have ha := GeneralizedStrongNeck.global_scale_pos S Q hQ constructor · apply (le_div_iff₀ ha).2 linarith [hs.1] · exact div_nonpos_of_nonpos_of_nonneg hs.2 ha.le /-- A genuine Ricci flow on the common closed backward window, produced from the supplied original neck (Claims 10.10-10.11, pp. 254-255). -/ def GeneralizedStrongNeck.global_flow (tau : ℝ) (htau : 0 < tau) (hwindow : tau ≤ Q * S.scale ^ 2 / 4) : RicciFlow 3 (strongNeckOpen S) (Icc (-tau) 0) := by let R := GeneralizedStrongNeck.global_rescaling S H Q hQ have hsub : Icc (-tau) 0 ⊆ (parabolicInterval (Q * S.scale ^ 2) (GeneralizedStrongNeck.global_scale_pos S Q hQ) 0 strongNeckHalfInterval).domain := by intro s hs apply (mem_parabolicInterval_iff _ _ _ _ _).2 have hquarter := GeneralizedStrongNeck.global_time_mem_quarter S Q hQ hwindow hs change (0 + s / (Q * S.scale ^ 2)) ∈ Icc (-(1 / 2 : ℝ)) 0 exact ⟨by linarith [hquarter.1], by simpa using hquarter.2⟩ exact Poincare.Geometry.RicciFlow.Harnack.restrictFlow R.flow hsub ordConnected_Icc ⟨-tau, ⟨le_rfl, neg_nonpos.mpr htau.le⟩, 0, ⟨neg_nonpos.mpr htau.le, le_rfl⟩, ne_of_lt (neg_lt_zero.mpr htau)⟩ /-- All total metric representatives retain the exact M13 scaling formula; only the declared interval carries the Ricci equation (derivation 74). -/ theorem GeneralizedStrongNeck.global_flow_metric (tau : ℝ) (htau : 0 < tau) (hwindow : tau ≤ Q * S.scale ^ 2 / 4) (s : ℝ) (x : strongNeckOpen S) (v w : TangentSpace (𝓡 3) x) : ((GeneralizedStrongNeck.global_flow S H Q hQ tau htau hwindow).metric s).inner x v w = (Q * S.scale ^ 2) * ((GeneralizedStrongNeck.rescaled_half_flow S H).metric (s / (Q * S.scale ^ 2))).inner x v w := by change ((GeneralizedStrongNeck.global_rescaling S H Q hQ).flow.metric s).inner x v w = _ simpa only [parabolicTimeInv, zero_add] using (GeneralizedStrongNeck.global_rescaling S H Q hQ).metric_eq s x v w /-- Interval restriction keeps the same selected connection at every real time, for curvature transport through M13 (derivation 74). -/ @[simp] theorem GeneralizedStrongNeck.global_flow_connection (tau : ℝ) (htau : 0 < tau) (hwindow : tau ≤ Q * S.scale ^ 2 / 4) (s : ℝ) : (GeneralizedStrongNeck.global_flow S H Q hQ tau htau hwindow).connection s = (GeneralizedStrongNeck.global_rescaling S H Q hQ).flow.connection s := rfl /-- The terminal bilinear metric is the global Q scaling of the original slice, pulled back by the actual open inclusion (derivation 74). -/ theorem GeneralizedStrongNeck.global_flow_metric_at_zero (tau : ℝ) (htau : 0 < tau) (hwindow : tau ≤ Q * S.scale ^ 2 / 4) (x : strongNeckOpen S) (v w : TangentSpace (𝓡 3) x) : ((GeneralizedStrongNeck.global_flow S H Q hQ tau htau hwindow).metric 0).inner x v w = Q * (F.metric t).inner x.val (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : strongNeckOpen S → (F.slice t).carrier) x v) (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : strongNeckOpen S → (F.slice t).carrier) x w) := by rw [GeneralizedStrongNeck.global_flow_metric, zero_div, GeneralizedStrongNeck.rescaled_half_flow_metric, GeneralizedStrongNeck.rescaled_metric_at_zero] field_simp [S.scale_pos.ne'] /-- Equality of the actual terminal metrics, without any assertion about ambient versus intrinsic distances (Claims 10.10-10.11; derivation 74). -/ theorem GeneralizedStrongNeck.global_flow_metric_eq_restriction (tau : ℝ) (htau : 0 < tau) (hwindow : tau ≤ Q * S.scale ^ 2 / 4) : (GeneralizedStrongNeck.global_flow S H Q hQ tau htau hwindow).metric 0 = intrinsicOpenMetric (M13.scaleSmoothMetric (F.metric t) Q hQ) (strongNeckOpen S) := by have hinner : ∀ (x : strongNeckOpen S) (v w : TangentSpace (𝓡 3) x), ((GeneralizedStrongNeck.global_flow S H Q hQ tau htau hwindow).metric 0).inner x v w = (intrinsicOpenMetric (M13.scaleSmoothMetric (F.metric t) Q hQ) (strongNeckOpen S)).inner x v w := by intro x v w rw [intrinsicOpenMetric_inner, M13.scaleSmoothMetric_inner] exact GeneralizedStrongNeck.global_flow_metric_at_zero S H Q hQ tau htau hwindow x v w cases h₁ : (GeneralizedStrongNeck.global_flow S H Q hQ tau htau hwindow).metric 0 cases h₂ : intrinsicOpenMetric (M13.scaleSmoothMetric (F.metric t) Q hQ) (strongNeckOpen S) rw [h₁, h₂] at hinner simp only [Bundle.ContMDiffRiemannianMetric.mk.injEq] funext x exact ContinuousLinearMap.ext (fun v => ContinuousLinearMap.ext (hinner x v)) /-- The physical affine clock is exactly the original time plus sigma/Q; no normalized-time pinching assertion is used (derivation 74). -/ theorem GeneralizedStrongNeck.global_physical_time (s : ℝ) : t + (s / (Q * S.scale ^ 2)) / (S.scale⁻¹ ^ 2) = t + s / Q := by field_simp [hQ.ne', S.scale_pos.ne'] /-- Every time in the new closed window is a genuine original-flow time supplied by the original neck cylinder (Definition 9.78, p. 232). -/ theorem GeneralizedStrongNeck.global_physical_time_mem {tau s : ℝ} (hwindow : tau ≤ Q * S.scale ^ 2 / 4) (hs : s ∈ Icc (-tau) 0) : t + s / Q ∈ F.interval := by have hquarter := GeneralizedStrongNeck.global_time_mem_quarter S Q hQ hwindow hs have hsource : s / (Q * S.scale ^ 2) ∈ Ioc (-1 : ℝ) 0 := ⟨by linarith [hquarter.1], hquarter.2⟩ rw [← GeneralizedStrongNeck.global_physical_time S Q hQ s] exact S.backward_time_mem hsource end PoincareMT.M28