import PoincareLib.Geometry.RicciFlow.MetricFamily.Descent import PoincareLib.Geometry.Riemannian.Metric.Induced.RegularLevel /-! # Smooth metric families on fixed factors A fixed smooth immersion pulls back a jointly smooth metric family, including its closed time endpoints. Applied to the inclusion of a fixed regular level, this constructs the actual metric family needed for an ancient product factor. The Ricci equation still requires the curvature restriction theorem. Reference: Kleiner--Lott, Proposition 41.13, p. 2678, and Appendix A, Theorem A.7 (corrected 2013). -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter Topology Bundle open scoped Manifold ContDiff namespace PoincareMT.RiemannianMetric private theorem pullbackForm_family_contMDiffWithinAt {m n : β„•} {M N : Type*} [TopologicalSpace M] [TopologicalSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin m)) M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] [IsManifold (𝓑 m) ∞ M] [IsManifold (𝓑 n) ∞ N] {g : ℝ β†’ RiemannianMetric n N} {J : Set ℝ} (hg : IsSmoothFamilyOn g J) {f : M β†’ N} {xβ‚€ : M} (hf : ContMDiffAt (𝓑 m) (𝓑 n) ∞ f xβ‚€) {t : ℝ} (ht : t ∈ J) : ContMDiffWithinAt (π“˜(ℝ, ℝ).prod (𝓑 m)) ((𝓑 m).prod π“˜(ℝ, EuclideanSpace ℝ (Fin m) β†’L[ℝ] EuclideanSpace ℝ (Fin m) β†’L[ℝ] ℝ)) ∞ (fun p : ℝ Γ— M => (⟨p.2, Induced.pullbackForm (g p.1) f p.2⟩ : Bundle.TotalSpace (EuclideanSpace ℝ (Fin m) β†’L[ℝ] EuclideanSpace ℝ (Fin m) β†’L[ℝ] ℝ) (fun x => TangentSpace (𝓑 m) x β†’L[ℝ] TangentSpace (𝓑 m) x β†’L[ℝ] ℝ))) (J Γ—Λ’ univ) (t, xβ‚€) := by rw [contMDiffWithinAt_hom_bundle] refine ⟨contMDiffWithinAt_snd, ?_⟩ let E := EuclideanSpace ℝ (Fin m) let E' := EuclideanSpace ℝ (Fin n) set sT := trivializationAt E (TangentSpace (𝓑 m) : M β†’ Type _) xβ‚€ with hsT set tT := trivializationAt E' (TangentSpace (𝓑 n) : N β†’ Type _) (f xβ‚€) with htT have hxβ‚€ : xβ‚€ ∈ sT.baseSet := mem_baseSet_trivializationAt E (TangentSpace (𝓑 m)) xβ‚€ have hfxβ‚€ : f xβ‚€ ∈ tT.baseSet := mem_baseSet_trivializationAt E' (TangentSpace (𝓑 n)) (f xβ‚€) set D : M β†’ E β†’L[ℝ] E' := inTangentCoordinates (𝓑 m) (𝓑 n) id f (fun x => mfderiv (𝓑 m) (𝓑 n) f x) xβ‚€ with hD have hDsmooth : ContMDiffAt (𝓑 m) π“˜(ℝ, E β†’L[ℝ] E') ∞ D xβ‚€ := hf.mfderiv_const (by simp) have hDprod : ContMDiffWithinAt (π“˜(ℝ, ℝ).prod (𝓑 m)) π“˜(ℝ, E β†’L[ℝ] E') ∞ (fun p : ℝ Γ— M => D p.2) (J Γ—Λ’ univ) (t, xβ‚€) := (hDsmooth.comp (t, xβ‚€) contMDiffAt_snd).contMDiffWithinAt set B : ℝ Γ— N β†’ E' β†’L[ℝ] E' β†’L[ℝ] ℝ := fun p => ContinuousLinearMap.inCoordinates E' (TangentSpace (𝓑 n)) (E' β†’L[ℝ] ℝ) (fun y => TangentSpace (𝓑 n) y β†’L[ℝ] ℝ) (f xβ‚€) p.2 (f xβ‚€) p.2 ((g p.1).inner p.2) with hB have hBsmooth : ContMDiffWithinAt (π“˜(ℝ, ℝ).prod (𝓑 n)) π“˜(ℝ, E' β†’L[ℝ] E' β†’L[ℝ] ℝ) ∞ B (J Γ—Λ’ univ) (t, f xβ‚€) := ((contMDiffWithinAt_hom_bundle _).mp (hg (t, f xβ‚€) ⟨ht, mem_univ _⟩)).2 have hBprod : ContMDiffWithinAt (π“˜(ℝ, ℝ).prod (𝓑 m)) π“˜(ℝ, E' β†’L[ℝ] E' β†’L[ℝ] ℝ) ∞ (fun p : ℝ Γ— M => B (p.1, f p.2)) (J Γ—Λ’ univ) (t, xβ‚€) := by have hmap : ContMDiffAt (π“˜(ℝ, ℝ).prod (𝓑 m)) (π“˜(ℝ, ℝ).prod (𝓑 n)) ∞ (fun p : ℝ Γ— M => (p.1, f p.2)) (t, xβ‚€) := contMDiffAt_fst.prodMk (hf.comp (t, xβ‚€) contMDiffAt_snd) have hmaps : MapsTo (fun p : ℝ Γ— M => (p.1, f p.2)) (J Γ—Λ’ univ) (J Γ—Λ’ univ) := fun _ hp => ⟨hp.1, mem_univ _⟩ exact hBsmooth.comp (t, xβ‚€) hmap.contMDiffWithinAt hmaps have hcomp : ContMDiffWithinAt (π“˜(ℝ, ℝ).prod (𝓑 m)) π“˜(ℝ, E β†’L[ℝ] E β†’L[ℝ] ℝ) ∞ (fun p : ℝ Γ— M => ((D p.2).precomp ℝ).comp ((B (p.1, f p.2)).comp (D p.2))) (J Γ—Λ’ univ) (t, xβ‚€) := (ContMDiffWithinAt.clm_precomp (F₃ := ℝ) hDprod).clm_comp (hBprod.clm_comp hDprod) refine hcomp.congr_of_eventuallyEq_of_mem ?_ ⟨ht, mem_univ _⟩ have hUs : {p : ℝ Γ— M | p.2 ∈ sT.baseSet} ∈ 𝓝 (t, xβ‚€) := continuousAt_snd (sT.open_baseSet.mem_nhds hxβ‚€) have hUt : {p : ℝ Γ— M | f p.2 ∈ tT.baseSet} ∈ 𝓝 (t, xβ‚€) := (hf.continuousAt.comp continuousAt_snd) (tT.open_baseSet.mem_nhds hfxβ‚€) filter_upwards [mem_nhdsWithin_of_mem_nhds hUs, mem_nhdsWithin_of_mem_nhds hUt] with p hx hfx refine ContinuousLinearMap.ext fun a => ContinuousLinearMap.ext fun b => ?_ have hRHS : (((D p.2).precomp ℝ).comp ((B (p.1, f p.2)).comp (D p.2))) a b = B (p.1, f p.2) (D p.2 a) (D p.2 b) := rfl have hkey : βˆ€ u : E, tT.symm (f p.2) (D p.2 u) = mfderiv (𝓑 m) (𝓑 n) f p.2 (sT.symm p.2 u) := by intro u have hDu : D p.2 u = tT.continuousLinearEquivAt ℝ (f p.2) hfx (mfderiv (𝓑 m) (𝓑 n) f p.2 ((sT.continuousLinearEquivAt ℝ p.2 hx).symm u)) := by rw [hD] simp only [inTangentCoordinates, id_eq] rw [ContinuousLinearMap.inCoordinates_eq hx hfx] rfl have hcoeT : (tT.symm (f p.2) : E' β†’ TangentSpace (𝓑 n) (f p.2)) = ⇑(tT.continuousLinearEquivAt ℝ (f p.2) hfx).symm := by rw [Trivialization.symm_continuousLinearEquivAt_eq tT hfx] funext y exact (tT.symmL_apply hfx y).symm have hcoeS : (sT.symm p.2 : E β†’ TangentSpace (𝓑 m) p.2) = ⇑(sT.continuousLinearEquivAt ℝ p.2 hx).symm := by rw [Trivialization.symm_continuousLinearEquivAt_eq sT hx] funext y exact (sT.symmL_apply hx y).symm rw [hDu, hcoeT, ContinuousLinearEquiv.symm_apply_apply, hcoeS] rw [hRHS, hB] have htrivN : trivializationAt ℝ (Bundle.Trivial N ℝ) (f xβ‚€) = Bundle.Trivial.trivialization N ℝ := Bundle.Trivial.eq_trivialization N ℝ _ have htrivM : trivializationAt ℝ (Bundle.Trivial M ℝ) xβ‚€ = Bundle.Trivial.trivialization M ℝ := Bundle.Trivial.eq_trivialization M ℝ _ rw [inCoordinates_apply_eqβ‚‚ (E₃ := Bundle.Trivial N ℝ) hfx hfx (by simp)] rw [inCoordinates_apply_eqβ‚‚ (E₃ := Bundle.Trivial M ℝ) hx hx (by simp)] simp only [htrivN, htrivM, Bundle.Trivial.linearMapAt_trivialization, LinearMap.id_coe, id_eq, Induced.pullbackForm, Induced.pullbackFormOf, ← htT, ← hsT, hkey] rfl /-- A fixed immersion preserves joint smoothness of the actual metric family, even when the source and target dimensions differ. -/ theorem IsSmoothFamilyOn.pullbackImmersion {m n : β„•} {M N : Type*} [TopologicalSpace M] [TopologicalSpace N] [ChartedSpace (EuclideanSpace ℝ (Fin m)) M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] [IsManifold (𝓑 m) ∞ M] [IsManifold (𝓑 n) ∞ N] {g : ℝ β†’ RiemannianMetric n N} {J : Set ℝ} (hg : IsSmoothFamilyOn g J) (f : M β†’ N) (hf : ContMDiff (𝓑 m) (𝓑 n) ∞ f) (himm : βˆ€ x, Function.Injective (mfderiv (𝓑 m) (𝓑 n) f x)) : IsSmoothFamilyOn (fun t => Induced.pullbackMetric (g t) f hf himm) J := by rintro ⟨t, x⟩ ⟨ht, _⟩ exact pullbackForm_family_contMDiffWithinAt hg (hf x) ht open Poincare.Geometry.Manifold.RegularLevel /-- Restricting a smooth family to one fixed regular level gives a smooth family on the constructed level-set manifold. -/ theorem IsSmoothFamilyOn.regularLevelMetric {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] [IsManifold (𝓑 (n + 1)) ∞ M] {g : ℝ β†’ RiemannianMetric (n + 1) M} {J : Set ℝ} (hg : IsSmoothFamilyOn g J) {f : M β†’ ℝ} (hf : ContMDiff (𝓑 (n + 1)) π“˜(ℝ, ℝ) ∞ f) (U : TopologicalSpace.Opens M) (hreg : βˆ€ x ∈ U, mfderiv (𝓑 (n + 1)) π“˜(ℝ, ℝ) f x β‰  0) (c : ℝ) : let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := ⟨finrank_euclideanSpace_fin⟩ let := openLevelSetChartedSpace hf U hreg n c let := isManifold_openLevelSet hf U hreg n c IsSmoothFamilyOn (fun t => regularLevelMetric hf U hreg c (g t)) J := by let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := ⟨finrank_euclideanSpace_fin⟩ let := openLevelSetChartedSpace hf U hreg n c let := isManifold_openLevelSet hf U hreg n c exact hg.pullbackImmersion (openLevelIncl f U c) (contMDiff_openLevelIncl hf U hreg n c) (injective_mfderiv_openLevelIncl hf U hreg n c) end PoincareMT.RiemannianMetric namespace PoincareMT.RicciFlow open Poincare.Geometry.Manifold.RegularLevel /-- The fixed level metric evolves by the actual ambient Ricci restriction. -/ theorem regularLevelMetric_equation {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] [IsManifold (𝓑 (n + 1)) ∞ M] {J : Set ℝ} (F : RicciFlow (n + 1) M J) {f : M β†’ ℝ} (hf : ContMDiff (𝓑 (n + 1)) π“˜(ℝ, ℝ) ∞ f) (U : TopologicalSpace.Opens M) (hreg : βˆ€ x ∈ U, mfderiv (𝓑 (n + 1)) π“˜(ℝ, ℝ) f x β‰  0) (c : ℝ) : let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := ⟨finrank_euclideanSpace_fin⟩ let := openLevelSetChartedSpace hf U hreg n c let := isManifold_openLevelSet hf U hreg n c βˆ€ t ∈ J, βˆ€ x : openLevelSet f U c, βˆ€ v w : TangentSpace (𝓑 n) x, HasDerivWithinAt (fun s => (RiemannianMetric.regularLevelMetric hf U hreg c (F.metric s)).inner x v w) (-2 * (F.connection t).ricci (openLevelIncl f U c x) (mfderiv (𝓑 n) (𝓑 (n + 1)) (openLevelIncl f U c) x v) (mfderiv (𝓑 n) (𝓑 (n + 1)) (openLevelIncl f U c) x w)) J t := by let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := ⟨finrank_euclideanSpace_fin⟩ let := openLevelSetChartedSpace hf U hreg n c let := isManifold_openLevelSet hf U hreg n c dsimp only intro t ht x v w exact F.equation t ht (openLevelIncl f U c x) _ _ end PoincareMT.RicciFlow