import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Distance.Calabi /-! # Spacetime distance supports at finite pairs This is the disconnected-manifold form of the Calabi support construction. Finiteness is required only for the selected pair; all radial endpoint distances used in the proof are obtained from the finite path-length bounds. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false set_option maxHeartbeats 800000 open Set Filter MeasureTheory Bundle open scoped Manifold ContDiff Topology ENNReal universe u namespace PoincareMT.RicciFlow attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace variable {m : β„•} {M : Type u} [TopologicalSpace M] [T3Space M] [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓑 (m + 1)) ∞ M] {J : Set ℝ} private lemma finite_radial_parameter_open (w : EuclideanSpace ℝ (Fin (m + 1))) (R : ℝ) : IsOpen {s : ℝ | s β€’ w ∈ Metric.ball 0 R} := Metric.isOpen_ball.preimage (continuous_id.smul continuous_const) private lemma finite_radial_parameter_contains {w : EuclideanSpace ℝ (Fin (m + 1))} {R : ℝ} (hw : w ∈ Metric.ball 0 R) : Icc (0 : ℝ) 1 βŠ† {s : ℝ | s β€’ w ∈ Metric.ball 0 R} := by intro s hs rw [mem_ofPred_eq, Metric.mem_ball, dist_zero_right, norm_smul, Real.norm_of_nonneg hs.1] exact (mul_le_of_le_one_left (norm_nonneg w) hs.2).trans_lt (by simpa only [Metric.mem_ball, dist_zero_right] using hw) private lemma finite_hasDerivAt_radial_length (F : RicciFlow (m + 1) M J) {t : ℝ} (ht : t ∈ interior J) {e : EuclideanSpace ℝ (Fin (m + 1)) β†’ M} {R : ℝ} {w : EuclideanSpace ℝ (Fin (m + 1))} (hw : w ∈ Metric.ball 0 R) (hw0 : w β‰  0) (hgeo : (F.metric t).IsGeodesicOn (fun s : ℝ => e (s β€’ w)) {s : ℝ | s β€’ w ∈ Metric.ball 0 R}) (hspeed : βˆ€ s ∈ Icc (0 : ℝ) 1, (F.metric t).tangentNorm (e (s β€’ w)) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun u : ℝ => e (u β€’ w)) s 1) = β€–wβ€–) : HasDerivAt (fun s => ∫ u in (0 : ℝ)..1, (F.metric s).tangentNorm (e (u β€’ w)) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ w)) u 1)) (-(∫ u in (0 : ℝ)..1, (F.connection t).ricci (e (u β€’ w)) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ w)) u 1) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ w)) u 1) / β€–wβ€–)) t := by have h := F.hasDerivAt_integral_speed zero_le_one (finite_radial_parameter_open w R) (finite_radial_parameter_contains hw) (fun s hs => (Conjugate.Realization.contMDiffAt_of_isGeodesicOn hgeo hs).contMDiffWithinAt) ht (by intro s hs hzero have h := hspeed s hs rw [hzero, RiemannianMetric.tangentNorm, map_zero, Real.sqrt_zero] at h exact hw0 (norm_eq_zero.mp h.symm)) apply h.congr_deriv rw [← intervalIntegral.integral_neg] apply intervalIntegral.integral_congr intro s hs rw [uIcc_of_le zero_le_one] at hs dsimp only rw [hspeed s hs] exact neg_div _ _ /-- A Calabi upper support for evolving distance when the selected pair is finite. -/ theorem exists_distance_spacetime_upper_support_of_finite (F : RicciFlow (m + 1) M J) {t r Ξ› scale : ℝ} (ht : t ∈ interior J) (hm : 0 < m) (hcomplete : MetricComplete (F.metric t)) (hRic : βˆ€ y : M, βˆ€ v : TangentSpace (𝓑 (m + 1)) y, 0 ≀ (F.connection t).ricci y v v) (hΞ› : 0 ≀ Ξ›) (hscale : 0 < scale) (p x : M) (hx : x ∈ (F.metric t).ball p r) (hpx : p β‰  x) (hupper : βˆ€ y ∈ (F.metric t).ball p r, βˆ€ v : TangentSpace (𝓑 (m + 1)) y, (F.connection t).ricci y v v ≀ Ξ› * (F.metric t).inner y v v) : βˆƒ (U : Set M) (rho : ℝ β†’ M β†’ ℝ), IsOpen U ∧ x ∈ U ∧ ContMDiffOn (𝓑 (m + 1)) π“˜(ℝ, ℝ) ∞ (rho t) U ∧ rho t x = ((F.metric t).edist p x).toReal ∧ (βˆ€ s : ℝ, βˆ€ y ∈ U, ((F.metric s).edist p y).toReal ≀ rho s y) ∧ (F.metric t).inner x ((F.connection t).gradient (rho t) x) ((F.connection t).gradient (rho t) x) = 1 ∧ (F.connection t).laplacian (rho t) x ≀ 2 * (m : ℝ) / ((F.metric t).edist p x).toReal ∧ DifferentiableAt ℝ (fun s => rho s x) t ∧ -(4 * ((m + 1 : β„•) : ℝ) * scale + 8 * Ξ› / scale) ≀ deriv (fun s => rho s x) t := by have hfinite : (F.metric t).edist p x β‰  ⊀ := by exact ne_top_of_lt (show (F.metric t).edist p x < ENNReal.ofReal r from hx) obtain ⟨R, e, w, v, B, hgeo, hspeed, hw, hw0, hwp, hvB, hBU, heB, hvx, hzero, hBnorm, hsum, hsegments, hgrad, hlap⟩ := exists_calabi_radial_data_of_finite (F.metric t) (F.connection t) hm hcomplete hRic p x hx hpx hfinite have hxB : x ∈ B.target := by rw [← hvx, heB hvB]; exact B.map_source hvB have hinvx : B.symm x = v := by rw [← hvx, heB hvB, B.left_inv hvB] have hv0 : v β‰  0 := by simpa only [hinvx] using hzero x hxB have hv : v ∈ Metric.ball 0 R := hBU hvB let len : ℝ β†’ EuclideanSpace ℝ (Fin (m + 1)) β†’ ℝ := fun s z => ∫ u in (0 : ℝ)..1, (F.metric s).tangentNorm (e (u β€’ z)) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1) let rho : ℝ β†’ M β†’ ℝ := fun s y => len s w + len s (B.symm y) have hlen (z : EuclideanSpace ℝ (Fin (m + 1))) (hz : z ∈ Metric.ball 0 R) : len t z = β€–zβ€– := by calc len t z = ∫ _u in (0 : ℝ)..1, β€–zβ€– := by apply intervalIntegral.integral_congr intro u hu exact hspeed z hz u (by simpa only [uIcc_of_le zero_le_one] using hu) _ = β€–zβ€– := by simp have hsliceeq : EqOn (rho t) (fun y => β€–wβ€– + β€–B.symm yβ€–) B.target := by intro y hy dsimp only [rho] rw [hlen w hw, hlen (B.symm y) (hBU (B.map_target hy))] have hslicegerm : rho t =αΆ [𝓝 x] (fun y => β€–wβ€– + β€–B.symm yβ€–) := hsliceeq.eventuallyEq_of_mem (B.open_target.mem_nhds hxB) have htime (z : EuclideanSpace ℝ (Fin (m + 1))) (hz : z ∈ Metric.ball 0 R) (hz0 : z β‰  0) : HasDerivAt (fun s => len s z) (-(∫ u in (0 : ℝ)..1, (F.connection t).ricci (e (u β€’ z)) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1) / β€–zβ€–)) t := finite_hasDerivAt_radial_length F ht hz hz0 (hgeo z hz) (hspeed z hz) have htimeLower (z : EuclideanSpace ℝ (Fin (m + 1))) (hz : z ∈ Metric.ball 0 R) (hz0 : z β‰  0) (hzseg : z ∈ ({w, v} : Set _)) : -(2 * ((m + 1 : β„•) : ℝ) * scale + 4 * Ξ› / scale) ≀ deriv (fun s => len s z) t := by rw [(htime z hz hz0).deriv] apply neg_le_neg apply (F.connection t).integral_ricci_div_speed_le_of_minimizing (finite_radial_parameter_open z R) (finite_radial_parameter_contains hz) (hgeo z hz) zero_le_one (norm_pos_iff.mpr hz0) (hspeed z hz) (by simpa only [zero_smul, one_smul, one_mul] using (hsegments z hzseg).1) hΞ› hscale intro u hu have h := hupper (e (u β€’ z)) ((hsegments z hzseg).2 u hu) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1) have hsq : (F.metric t).inner (e (u β€’ z)) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1) (mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1) = β€–zβ€– ^ 2 := by have hh := congrArg (fun c : ℝ => c ^ 2) (hspeed z hz u hu) dsimp only [RiemannianMetric.tangentNorm] at hh rw [Real.sq_sqrt] at hh Β· exact hh Β· by_cases hzv : mfderiv π“˜(ℝ, ℝ) (𝓑 (m + 1)) (fun a : ℝ => e (a β€’ z)) u 1 = 0 Β· simp [hzv] Β· exact ((F.metric t).pos _ _ hzv).le rwa [hsq] at h have hrad : ContMDiffAt (𝓑 (m + 1)) π“˜(ℝ, ℝ) ∞ (fun y => β€–B.symm yβ€–) x := hBnorm.contMDiffAt (B.open_target.mem_nhds hxB) refine ⟨B.target, rho, B.open_target, hxB, (contMDiffOn_const.add hBnorm).congr hsliceeq, ?_, ?_, ?_, ?_, ?_, ?_⟩ Β· calc rho t x = β€–wβ€– + β€–B.symm xβ€– := hsliceeq hxB _ = β€–wβ€– + β€–vβ€– := by rw [hinvx] _ = _ := hsum Β· intro s y hy have hdist (z : EuclideanSpace ℝ (Fin (m + 1))) (hz : z ∈ Metric.ball 0 R) : ((F.metric s).edist (e 0) (e z)).toReal ≀ len s z := by have h := (F.metric s).toReal_edist_le_integral_speed zero_le_one (finite_radial_parameter_open z R) (finite_radial_parameter_contains hz) (fun u hu => (Conjugate.Realization.contMDiffAt_of_isGeodesicOn (hgeo z hz) hu).contMDiffWithinAt) simpa only [zero_smul, one_smul] using h have hfirst := hdist w hw have hsecond := hdist (B.symm y) (hBU (B.map_target hy)) have hΞ³w : ContMDiffOn π“˜(ℝ, ℝ) (𝓑 (m + 1)) 1 (fun u : ℝ => e (u β€’ w)) (Icc 0 1) := fun u hu => ((Conjugate.Realization.contMDiffAt_of_isGeodesicOn (hgeo w hw) (finite_radial_parameter_contains hw hu)).of_le (by norm_num)).contMDiffWithinAt have hΞ³y : ContMDiffOn π“˜(ℝ, ℝ) (𝓑 (m + 1)) 1 (fun u : ℝ => e (u β€’ (B.symm y))) (Icc 0 1) := fun u hu => ((Conjugate.Realization.contMDiffAt_of_isGeodesicOn (hgeo (B.symm y) (hBU (B.map_target hy))) (finite_radial_parameter_contains (hBU (B.map_target hy)) hu)).of_le (by norm_num)).contMDiffWithinAt have hfirstE := (F.metric s).edist_le_ofReal_integral_speed zero_le_one hΞ³w ((PoincareMT.RiemannianMetric.continuousOn_speed_of_contMDiffOn (F.metric s) (finite_radial_parameter_open w R) (fun u hu => (Conjugate.Realization.contMDiffAt_of_isGeodesicOn (hgeo w hw) hu).contMDiffWithinAt)).mono (finite_radial_parameter_contains hw)) have hsecondE := (F.metric s).edist_le_ofReal_integral_speed zero_le_one hΞ³y ((PoincareMT.RiemannianMetric.continuousOn_speed_of_contMDiffOn (F.metric s) (finite_radial_parameter_open (B.symm y) R) (fun u hu => (Conjugate.Realization.contMDiffAt_of_isGeodesicOn (hgeo (B.symm y) (hBU (B.map_target hy))) hu).contMDiffWithinAt)).mono (finite_radial_parameter_contains (hBU (B.map_target hy)))) rw [hwp] at hfirst rw [heB (B.map_target hy), B.right_inv hy] at hsecond simp only [zero_smul, one_smul] at hfirstE hsecondE rw [hwp] at hfirstE rw [heB (B.map_target hy), B.right_inv hy] at hsecondE have hfirst_fin : (F.metric s).edist (e 0) p β‰  ⊀ := ne_top_of_le_ne_top ENNReal.ofReal_ne_top (by exact hfirstE) have hsecond_fin : (F.metric s).edist (e 0) y β‰  ⊀ := ne_top_of_le_ne_top ENNReal.ofReal_ne_top hsecondE let : Bundle.RiemannianBundle (TangentSpace (𝓑 (m + 1)) : M β†’ Type _) := ⟨(F.metric s).toRiemannianMetric⟩ have htriangle := Manifold.riemannianEDist_triangle (I := 𝓑 (m + 1)) (x := p) (y := e 0) (z := y) change (F.metric s).edist p y ≀ (F.metric s).edist p (e 0) + (F.metric s).edist (e 0) y at htriangle have hcomm : (F.metric s).edist p (e 0) = (F.metric s).edist (e 0) p := Manifold.riemannianEDist_comm have hfirst' : ((F.metric s).edist p (e 0)).toReal ≀ len s w := by simpa only [hcomm] using hfirst have hfirst_fin' : (F.metric s).edist p (e 0) β‰  ⊀ := by simpa only [hcomm] using hfirst_fin have hsum_fin : (F.metric s).edist p (e 0) + (F.metric s).edist (e 0) y β‰  ⊀ := ENNReal.add_ne_top.mpr ⟨hfirst_fin', hsecond_fin⟩ have hreal := ENNReal.toReal_mono hsum_fin htriangle rw [ENNReal.toReal_add hfirst_fin' hsecond_fin] at hreal dsimp only [rho] exact hreal.trans (add_le_add hfirst' hsecond) Β· have hgerm : (F.connection t).gradient (rho t) x = (F.connection t).gradient (fun y => β€–wβ€– + β€–B.symm yβ€–) x := by unfold LeviCivitaData.gradient rw [Poincare.mvfderiv_eq_of_eventuallyEq hslicegerm] rw [hgerm, (F.connection t).gradient_const_add_at (hrad.mdifferentiableAt (by simp))] exact hgrad Β· rw [(F.connection t).laplacian_eq_of_eventuallyEq hslicegerm, (F.connection t).laplacian_const_add_at hrad] exact hlap Β· dsimp only [rho] rw [hinvx] exact (htime w hw hw0).differentiableAt.add (htime v hv hv0).differentiableAt Β· dsimp only [rho] rw [hinvx, deriv_fun_add (htime w hw hw0).differentiableAt (htime v hv hv0).differentiableAt] have hwlo := htimeLower w hw hw0 (by simp) have hvlo := htimeLower v hv hv0 (by simp) have htwice : -(4 * ((m + 1 : β„•) : ℝ) * scale + 8 * Ξ› / scale) = -(2 * ((m + 1 : β„•) : ℝ) * scale + 4 * Ξ› / scale) + -(2 * ((m + 1 : β„•) : ℝ) * scale + 4 * Ξ› / scale) := by ring rw [htwice] exact add_le_add hwlo hvlo end PoincareMT.RicciFlow