import PoincareLib.Geometry.RicciFlow.Pullback import PoincareLib.Geometry.Riemannian.Connection.Construction import PoincareLib.Geometry.Manifold.OpenEmbedding import PoincareLib.Geometry.Manifold.ConnectedComponent import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants import PoincareLib.Geometry.Riemannian.Metric.ConnectedComponent /-! # Ricci flows restricted to open submanifolds The inclusion pulls the metric back, and the constructed Levi-Civita data provide the source connection required by the fixed-domain flow pullback. -/ set_option autoImplicit false open Set TopologicalSpace open scoped Manifold ContDiff namespace PoincareMT.RicciFlow variable {n : ā„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ā„ (Fin n)) M] [IsManifold (š“” n) āˆž M] {J : Set ā„} /-- Restrict a Ricci flow to an open spatial domain, with no extra connection data or time-domain hypothesis. -/ noncomputable def restrictToOpen (F : RicciFlow n M J) (U : Opens M) : RicciFlow n U J := F.pullbackWithConnection Subtype.val (Poincare.isLocalDiffeomorph_opensSubtypeVal (š“” n) U) (fun t => ((F.metric t).pullbackOfLocalDiffeomorph Subtype.val (Poincare.isLocalDiffeomorph_opensSubtypeVal (š“” n) U)).leviCivitaData) @[simp] theorem restrictToOpen_inner (F : RicciFlow n M J) (U : Opens M) (t : ā„) (x : U) (v w : TangentSpace (š“” n) x) : ((F.restrictToOpen U).metric t).inner x v w = (F.metric t).inner x (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x v) (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x w) := rfl /-- Restrict a Ricci flow to the connected component containing `p`. -/ noncomputable def restrictComponent (F : RicciFlow n M J) (p : M) : RicciFlow n (Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) J := F.restrictToOpen (Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) @[simp] theorem restrictComponent_inner (F : RicciFlow n M J) (p : M) (t : ā„) (x : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) (v w : TangentSpace (š“” n) x) : ((F.restrictComponent p).metric t).inner x v w = (F.metric t).inner x (mfderiv (š“” n) (š“” n) Subtype.val x v) (mfderiv (š“” n) (š“” n) Subtype.val x w) := rfl theorem restrictComponent_edist (F : RicciFlow n M J) (p : M) (t : ā„) (x y : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) : ((F.restrictComponent p).metric t).edist x y = (F.metric t).edist x y := RiemannianMetric.edist_subtype_val isClosed_connectedComponent (F.metric t) ((F.restrictComponent p).metric t) (fun _ _ _ => rfl) x y theorem restrictComponent_metricComplete [T3Space M] (F : RicciFlow n M J) (p : M) (t : ā„) (ht : MetricComplete (F.metric t)) : MetricComplete ((F.restrictComponent p).metric t) := RiemannianMetric.metricComplete_of_subtype_val isClosed_connectedComponent (F.metric t) ((F.restrictComponent p).metric t) (fun _ _ _ => rfl) ht theorem restrictComponent_volumeMeasure_ball [T3Space M] [MeasurableSpace M] [BorelSpace M] (F : RicciFlow n M J) (p : M) (t : ā„) (x : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) (r : ā„) : ((F.restrictComponent p).metric t).volumeMeasure (((F.restrictComponent p).metric t).ball x r) = (F.metric t).volumeMeasure ((F.metric t).ball x r) := RiemannianMetric.volumeMeasure_ball_subtype_val isClosed_connectedComponent (F.metric t) ((F.restrictComponent p).metric t) (fun _ _ _ => rfl) x r theorem restrictComponent_curvatureTensor (F : RicciFlow n M J) (p : M) (t : ā„) (x : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) (v w z a : TangentSpace (š“” n) x) : ((F.restrictComponent p).connection t).curvatureTensor x v w z a = (F.connection t).curvatureTensor x (mfderiv (š“” n) (š“” n) Subtype.val x v) (mfderiv (š“” n) (š“” n) Subtype.val x w) (mfderiv (š“” n) (š“” n) Subtype.val x z) (mfderiv (š“” n) (š“” n) Subtype.val x a) := by apply ((F.restrictComponent p).connection t).curvatureTensor_eq_of_local_isometry (F.connection t) isOpen_univ contMDiff_subtype_val.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x) theorem restrictComponent_scalarCurvature (F : RicciFlow n M J) (p : M) (t : ā„) (x : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) : ((F.restrictComponent p).connection t).scalarCurvature x = (F.connection t).scalarCurvature x := by apply ((F.restrictComponent p).connection t).scalarCurvature_eq_of_local_isometry (F.connection t) isOpen_univ contMDiff_subtype_val.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x) theorem restrictComponent_curvatureTensorNorm (F : RicciFlow n M J) (p : M) (t : ā„) (x : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) : ((F.restrictComponent p).connection t).curvatureTensorNorm x = (F.connection t).curvatureTensorNorm x := by apply ((F.restrictComponent p).connection t).curvatureTensorNorm_eq_of_local_isometry (F.connection t) isOpen_univ contMDiff_subtype_val.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x) theorem restrictComponent_nonnegativeCurvatureOperator_iff (F : RicciFlow n M J) (p : M) (t : ā„) (x : Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p) : ((F.restrictComponent p).connection t).NonnegativeCurvatureOperator x ↔ (F.connection t).NonnegativeCurvatureOperator x := by apply ((F.restrictComponent p).connection t).nonnegativeCurvatureOperator_iff_of_local_isometry (F.connection t) isOpen_univ contMDiff_subtype_val.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x) /-- A Ricci flow restricts to the component of any point, preserving the exact intrinsic distance, completeness, ball volumes, and curvature invariants. -/ theorem exists_restrictComponent {n : ā„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ā„ (Fin n)) M] [IsManifold (š“” n) āˆž M] [T3Space M] [MeasurableSpace M] [BorelSpace M] {J : Set ā„} (F : RicciFlow n M J) (p : M) : let U := Poincare.connectedComponentOpens (EuclideanSpace ā„ (Fin n)) p ∃ G : RicciFlow n U J, (āˆ€ t (x : U) (v w : TangentSpace (š“” n) x), (G.metric t).inner x v w = (F.metric t).inner x (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x v) (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x w)) ∧ (āˆ€ t (x y : U), (G.metric t).edist x y = (F.metric t).edist x y) ∧ (āˆ€ t, MetricComplete (F.metric t) → MetricComplete (G.metric t)) ∧ (āˆ€ t (x : U) (r : ā„), (G.metric t).volumeMeasure ((G.metric t).ball x r) = (F.metric t).volumeMeasure ((F.metric t).ball x r)) ∧ (āˆ€ t (x : U) (v w z a : TangentSpace (š“” n) x), (G.connection t).curvatureTensor x v w z a = (F.connection t).curvatureTensor x (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x v) (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x w) (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x z) (mfderiv (š“” n) (š“” n) (Subtype.val : U → M) x a)) ∧ (āˆ€ t (x : U), (G.connection t).scalarCurvature x = (F.connection t).scalarCurvature x) ∧ (āˆ€ t (x : U), (G.connection t).curvatureTensorNorm x = (F.connection t).curvatureTensorNorm x) ∧ (āˆ€ t (x : U), (G.connection t).NonnegativeCurvatureOperator x ↔ (F.connection t).NonnegativeCurvatureOperator x) := by exact ⟨F.restrictComponent p, F.restrictComponent_inner p, F.restrictComponent_edist p, F.restrictComponent_metricComplete p, F.restrictComponent_volumeMeasure_ball p, F.restrictComponent_curvatureTensor p, F.restrictComponent_scalarCurvature p, F.restrictComponent_curvatureTensorNorm p, F.restrictComponent_nonnegativeCurvatureOperator_iff p⟩ end PoincareMT.RicciFlow