import PoincareLib.Geometry.RicciFlow.Positivity.Scalar.MovingBarrier import PoincareLib.Analysis.Parabolic.Maximum.CompactSlab /-! Adapted from Mapher06/Poincare-MorganTian, `PoincareMT/Proofs/M04/LocalScalarBarrier.lean`, revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. See the curvature import record under `references/ricci-flow/mapher/curvature/`. -/ /-! # Scalar barriers on a closed time slab The scalar operator is linear on smooth germs. The actual metric coefficients construct a decay constant for the shifted expanding profile. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle open Set Topology Filter universe u namespace PoincareMT.RicciFlowAnalysis variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] set_option maxHeartbeats 1000000 in -- Expanding the Hessian difference and its metric trace needs extra elaboration. set_option backward.isDefEq.respectTransparency false in theorem laplacian_sub_of_contMDiffOn {g : RiemannianMetric n M} (D : LeviCivitaData g) {U : Set M} (hU : IsOpen U) {f q : M β†’ ℝ} (hf : ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ f U) (hq : ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ q U) {x : M} (hx : x ∈ U) : D.laplacian (fun y ↦ f y - q y) x = D.laplacian f x - D.laplacian q x := by have hfd {y : M} (hy : y ∈ U) : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) f y := (hf.contMDiffAt (hU.mem_nhds hy)).mdifferentiableAt (by simp) have hqd {y : M} (hy : y ∈ U) : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) q y := (hq.contMDiffAt (hU.mem_nhds hy)).mdifferentiableAt (by simp) have hH (a b : TangentSpace (𝓑 n) x) : D.hessian (fun y ↦ f y - q y) x a b = D.hessian f x a b - D.hessian q x a b := by let X := FiberBundle.extend (EuclideanSpace ℝ (Fin n)) a let Y := FiberBundle.extend (EuclideanSpace ℝ (Fin n)) b let df := fun y ↦ mvfderiv (𝓑 n) f y (Y y) let dq := fun y ↦ mvfderiv (𝓑 n) q y (Y y) have hdf : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) df x := (contMDiffAt_directional_derivative (hf.contMDiffAt (hU.mem_nhds hx)) (FiberBundle.contMDiffAt_extend (k := ∞) (𝓑 n) (EuclideanSpace ℝ (Fin n)) b)).mdifferentiableAt (by simp) have hdq : MDifferentiableAt (𝓑 n) π“˜(ℝ, ℝ) dq x := (contMDiffAt_directional_derivative (hq.contMDiffAt (hU.mem_nhds hx)) (FiberBundle.contMDiffAt_extend (k := ∞) (𝓑 n) (EuclideanSpace ℝ (Fin n)) b)).mdifferentiableAt (by simp) have heq : (fun y ↦ mvfderiv (𝓑 n) (fun z ↦ f z - q z) y (Y y)) =αΆ [𝓝 x] (fun y ↦ df y - dq y) := by filter_upwards [hU.mem_nhds hx] with y hy erw [mvfderiv_sub (hfd hy) (hqd hy)] rfl have he : mvfderiv (𝓑 n) (fun y ↦ mvfderiv (𝓑 n) (fun z ↦ f z - q z) y (Y y)) x = mvfderiv (𝓑 n) (fun y ↦ df y - dq y) x := heq.mfderiv_eq change mvfderiv (𝓑 n) (fun y ↦ mvfderiv (𝓑 n) (fun z ↦ f z - q z) y (Y y)) x (X x) - mvfderiv (𝓑 n) (fun z ↦ f z - q z) x (D.connection Y x (X x)) = (mvfderiv (𝓑 n) df x (X x) - mvfderiv (𝓑 n) f x (D.connection Y x (X x))) - (mvfderiv (𝓑 n) dq x (X x) - mvfderiv (𝓑 n) q x (D.connection Y x (X x))) rw [he] erw [mvfderiv_sub hdf hdq, mvfderiv_sub (hfd hx) (hqd hx)] simp only [sub_apply] ring simp only [LeviCivitaData.laplacian, hH, Finset.sum_sub_distrib] set_option maxHeartbeats 1000000 in -- The closed-time barrier estimates and spacetime regularity need extra elaboration. set_option backward.isDefEq.respectTransparency false in theorem exists_moving_scalar_barrier_decay_Icc [T2Space M] {J : Set ℝ} (F : RicciFlow n M J) {a b : ℝ} (hJ : Icc a b βŠ† J) {U : Set M} (hU : IsOpen U) {q : M β†’ ℝ} (hq : ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ q U) {C : Set M} (hC : IsCompact C) (hCU : C βŠ† U) {speed : ℝ} (hcritical : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, q x + speed * (t - a) = 0 β†’ mfderiv (𝓑 n) π“˜(ℝ, ℝ) q x β‰  0) : βˆƒ A : ℝ, 0 < A ∧ βˆ€ epsilon : ℝ, 0 ≀ epsilon β†’ βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, epsilon * Real.exp (-A * (t - a)) * (-A * expNegInvGlue (q x + speed * (t - a)) + speed * deriv expNegInvGlue (q x + speed * (t - a))) ≀ (F.connection t).laplacian (fun y ↦ epsilon * Real.exp (-A * (t - a)) * expNegInvGlue (q y + speed * (t - a))) x := by have hK : IsCompact (Icc a b Γ—Λ’ C) := isCompact_Icc.prod hC have hqP : ContMDiffOn (π“˜(ℝ, ℝ).prod (𝓑 n)) π“˜(ℝ, ℝ) ∞ (fun p : ℝ Γ— M ↦ q p.2) (Icc a b Γ—Λ’ U) := hq.comp contMDiffOn_snd (fun _ hp ↦ hp.2) have hQ : ContinuousOn (fun p : ℝ Γ— M ↦ q p.2 + speed * (p.1 - a)) (Icc a b Γ—Λ’ C) := (hqP.continuousOn.mono (prod_mono Subset.rfl hCU)).add (continuous_const.mul (continuous_fst.sub continuous_const)).continuousOn have hL : ContinuousOn (fun p : ℝ Γ— M ↦ (F.connection p.1).laplacian q p.2) (Icc a b Γ—Λ’ C) := (continuousOn_flow_laplacian F hU hq).mono (prod_mono hJ hCU) have hG : ContinuousOn (fun p : ℝ Γ— M ↦ scalarGradientSq (F.metric p.1) q p.2) (Icc a b Γ—Λ’ C) := (continuousOn_flow_scalarGradientSq F hU hq).mono (prod_mono hJ hCU) have hGzero : βˆ€ p ∈ Icc a b Γ—Λ’ C, q p.2 + speed * (p.1 - a) = 0 β†’ 0 < scalarGradientSq (F.metric p.1) q p.2 := by intro p hp hz exact (scalarGradientSq_pos_iff (F.metric p.1) q p.2).2 (hcritical p.1 hp.1 p.2 hp.2 hz) obtain ⟨A, hA, hbar⟩ := exists_exponential_barrier_decay (X := ℝ Γ— M) (q := fun p : ℝ Γ— M ↦ q p.2 + speed * (p.1 - a)) (L := fun p : ℝ Γ— M ↦ (F.connection p.1).laplacian q p.2) (G := fun p : ℝ Γ— M ↦ scalarGradientSq (F.metric p.1) q p.2) hK hQ hL hG hGzero speed refine ⟨A, hA, ?_⟩ intro epsilon hepsilon t ht x hx have hc : 0 ≀ epsilon * Real.exp (-A * (t - a)) := mul_nonneg hepsilon (Real.exp_pos _).le have hineq := hbar (t, x) ⟨ht, hx⟩ have hmul := mul_le_mul_of_nonneg_left hineq hc rw [laplacian_moving_scalar_barrier (F.connection t) hU hq A speed epsilon (t - a) (hCU hx)] nlinarith [hmul] set_option maxHeartbeats 1000000 in -- The compact-domain cutoff and moving-metric derivative bounds need extra elaboration. set_option backward.isDefEq.respectTransparency false in theorem ricciFlow_compactDomain_moving_barrier [T2Space M] {J : Set ℝ} {a b : ℝ} (hab : a < b) (F : RicciFlow n M J) (hJ : Icc a b βŠ† J) {U C : Set M} (hU : IsOpen U) (hC : IsCompact C) (hCU : C βŠ† U) {q : M β†’ ℝ} (hq : ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ q U) {speed : ℝ} (hcritical : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, q x + speed * (t - a) = 0 β†’ mfderiv (𝓑 n) π“˜(ℝ, ℝ) q x β‰  0) (f v : ℝ β†’ M β†’ ℝ) (hf : ContinuousOn (Function.uncurry f) (Icc a b Γ—Λ’ C)) (hderiv : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, HasDerivWithinAt (fun s ↦ f s x) (v t x) (Icc a b) t) (hsmooth : βˆ€ t ∈ Icc a b, ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ (f t) U) (hnonneg : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, 0 ≀ f t x) (hevol : βˆ€ t ∈ Ioc a b, βˆ€ x ∈ interior C, (F.connection t).laplacian (f t) x ≀ v t x) (hboundary : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C \ interior C, q x + speed * (t - a) ≀ 0) : βˆƒ A : ℝ, 0 < A ∧ βˆ€ epsilon : ℝ, 0 ≀ epsilon β†’ (βˆ€ x ∈ C, epsilon * expNegInvGlue (q x) ≀ f a x) β†’ βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, epsilon * Real.exp (-A * (t - a)) * expNegInvGlue (q x + speed * (t - a)) ≀ f t x := by obtain ⟨A, hA, hbar⟩ := exists_moving_scalar_barrier_decay_Icc F hJ hU hq hC hCU hcritical refine ⟨A, hA, ?_⟩ intro epsilon hepsilon hinit let B : ℝ β†’ M β†’ ℝ := fun t x ↦ epsilon * Real.exp (-A * (t - a)) * expNegInvGlue (q x + speed * (t - a)) let Bd : ℝ β†’ M β†’ ℝ := fun t x ↦ epsilon * Real.exp (-A * (t - a)) * (-A * expNegInvGlue (q x + speed * (t - a)) + speed * deriv expNegInvGlue (q x + speed * (t - a))) have hqC : ContinuousOn (fun p : ℝ Γ— M ↦ q p.2) (Icc a b Γ—Λ’ C) := hq.continuousOn.comp continuous_snd.continuousOn (fun _ hp ↦ hCU hp.2) have hBC : ContinuousOn (Function.uncurry B) (Icc a b Γ—Λ’ C) := (continuousOn_const.mul ((continuous_const.mul (continuous_fst.sub continuous_const)).rexp.continuousOn)).mul ((expNegInvGlue.contDiff (n := (⊀ : β„•βˆž))).continuous.comp_continuousOn (hqC.add (continuous_const.mul (continuous_fst.sub continuous_const)).continuousOn)) have hBs (t : ℝ) : ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ (B t) U := contMDiffOn_const.mul (expNegInvGlue.contDiff.contMDiff.comp_contMDiffOn (hq.add contMDiffOn_const)) have hBd (t : ℝ) (x : M) : HasDerivAt (fun s ↦ B s x) (Bd t x) t := by have h := (hasDerivAt_moving_scalar_barrier q A speed epsilon (t - a) x).comp t ((hasDerivAt_id t).sub_const a) simpa only [Function.comp_def, id_eq, mul_one] using h have hwc : ContinuousOn (fun p : ℝ Γ— M ↦ f p.1 p.2 - B p.1 p.2) (Icc a b Γ—Λ’ C) := hf.sub hBC have hwd : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C, HasDerivWithinAt (fun s ↦ f s x - B s x) (v t x - Bd t x) (Icc a b) t := by intro t ht x hx exact (hderiv t ht x hx).sub (hBd t x).hasDerivWithinAt have hwi : βˆ€ x ∈ C, 0 ≀ f a x - B a x := by intro x hx simpa only [B, sub_self, mul_zero, Real.exp_zero, mul_one, add_zero] using sub_nonneg.mpr (hinit x hx) have hws : βˆ€ t ∈ Icc a b, ContMDiffOn (𝓑 n) π“˜(ℝ, ℝ) ∞ (fun x ↦ f t x - B t x) U := by intro t ht exact (hsmooth t ht).sub (hBs t) have hwb : βˆ€ t ∈ Icc a b, βˆ€ x ∈ C \ interior C, 0 ≀ f t x - B t x := by intro t ht x hx have hz := expNegInvGlue.zero_of_nonpos (hboundary t ht x hx) simpa only [B, hz, mul_zero, sub_zero] using hnonneg t ht x hx.1 have hwe : βˆ€ t ∈ Ioc a b, βˆ€ x ∈ interior C, (F.connection t).laplacian (fun y ↦ f t y - B t y) x - 0 * (f t x - B t x) ≀ v t x - Bd t x := by intro t ht x hx have ht' : t ∈ Icc a b := ⟨ht.1.le, ht.2⟩ have hx' : x ∈ C := interior_subset hx rw [laplacian_sub_of_contMDiffOn (F.connection t) hU (hsmooth t ht') (hBs t) (hCU hx'), zero_mul, sub_zero] have hb : Bd t x ≀ (F.connection t).laplacian (B t) x := hbar epsilon hepsilon t ht' x hx' linarith [hevol t ht x hx] have hw := ricciFlow_compactDomain_supersolution_nonnegative_Icc (K := 0) hab F hJ hU hC hCU (fun t x ↦ f t x - B t x) (fun t x ↦ v t x - Bd t x) hwc hwd hwi hws hwb hwe intro t ht x hx exact sub_nonneg.mp (hw t ht x hx) end PoincareMT.RicciFlowAnalysis