import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Rigidity.Coarea import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compact.Rigidity.RegularLevels import PoincareLib.Topology.Maps.ProperRestriction /-! # The potential pushes surface volume to a constant density The gradient energy and scalar curvature profiles come directly from the soliton conservation laws. No separate regular-level or density hypothesis is needed between two distinct attained potential values. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set MeasureTheory open scoped Manifold ContDiff Topology namespace PoincareMT.LeviCivitaData variable {M : Type*} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] [T3Space M] [PreconnectedSpace M] [CompactSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin 2)) M] [IsManifold (๐“ก 2) โˆž M] {g : RiemannianMetric 2 M} /-- Every compact nonnegatively curved shrinking surface has constant volume density in the potential variable between a critical value and any larger attained value. -/ theorem exists_constant_slab_density_of_surface_soliton (D : LeviCivitaData g) {f : M โ†’ โ„} {lambda : โ„} (hlambda : 0 < lambda) (hf : ContMDiff (๐“ก 2) ๐“˜(โ„, โ„) 2 f) (hsol : โˆ€ x, โˆ€ v w : TangentSpace (๐“ก 2) x, D.ricci x v w + D.hessian f x v w = lambda * g.inner x v w) (hRnonneg : โˆ€ x, 0 โ‰ค D.scalarCurvature x) {p z : M} (hp : D.gradient f p = 0) (hpz : f p < f z) : โˆƒ c : โ„, 0 โ‰ค c โˆง โˆ€ s t : โ„, f p < s โ†’ t < f z โ†’ s โ‰ค t โ†’ โˆ€ H : โ„ โ†’ โ„, Continuous H โ†’ (โˆซ x in f โปยน' Icc s t, H (f x) โˆ‚g.volumeMeasure) = c * โˆซ u in Icc s t, H u := by have hfs := D.contMDiff_of_C2_surface_soliton hf hsol let q : โ„ โ†’ โ„ := fun t => 2 * lambda * (t - f p) - D.scalarCurvature p * (Real.exp (t - f p) - 1) let r : โ„ โ†’ โ„ := fun t => D.scalarCurvature p * Real.exp (t - f p) have hQ (x : M) : D.levelQ f x = q (f x) := D.gradient_normSq_eq_at_critical_point hf hsol hp x have hR (x : M) : D.scalarCurvature x = r (f x) := D.scalar_eq_exp_potential_difference_of_surface_soliton hf hsol p x have hreg (x : M) (hx : f x โˆˆ Ioo (f p) (f z)) : mfderiv (๐“ก 2) ๐“˜(โ„, โ„) f x โ‰  0 := by intro hh exact D.gradient_ne_zero_at_intermediate_value hlambda hf hsol hx.1 hx.2 (hRnonneg x) ((g.gradient_eq_zero_iff_mfderiv_eq_zero f x).mpr hh) have hq (t : โ„) (ht : t โˆˆ Ioo (f p) (f z)) : 0 < q t := by obtain โŸจx, hxโŸฉ := intermediate_value_univ p z hf.continuous (Ioo_subset_Icc_self ht) rw [โ† hx, โ† hQ] exact Real.sqrt_pos.mp ((g.tangentNorm_gradient_pos_iff f x).mpr (hreg x (by rwa [hx]))) have hqd (t : โ„) : HasDerivAt q (2 * lambda - r t) t := by have hu := (hasDerivAt_id t).sub_const (f p) convert (hu.const_mul (2 * lambda)).sub ((hu.exp.sub_const 1).const_mul (D.scalarCurvature p)) using 1 <;> first | rfl | simp [r] have hproper : IsProperMap ((Ioo (f p) (f z)).restrictPreimage f) := Poincare.isProperMap_real_restrictPreimage_of_isCompact hf.continuous _ isCompact_univ (subset_univ _) obtain โŸจc, hcโŸฉ := D.exists_const_regularLevelArea_div_sqrt_of_surface_soliton hfs hsol hproper hreg (fun x _ => hQ x) (fun x _ => hR x) hq (fun t _ => hqd t) have hm : (f p + f z) / 2 โˆˆ Ioo (f p) (f z) := by constructor <;> linarith refine โŸจc, ?_, ?_โŸฉ ยท rw [โ† hc _ hm] exact div_nonneg (g.regularLevelArea_nonneg hfs _) (Real.sqrt_nonneg _) ยท intro s t hps htz hst H hH have hsub : Icc s t โІ Ioo (f p) (f z) := by intro u hu constructor <;> linarith [hu.1, hu.2] exact D.integral_comp_potential_slab_of_levelArea_ratio hfs (isClosed_Icc.preimage hf.continuous).isCompact (fun x hx => hreg x (hsub hx)) (fun x _ => hQ x) (fun u hu => hc u (hsub hu)) hH end PoincareMT.LeviCivitaData