import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicWarping import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Mathlib.SmoothEvenRadial import Mathlib.Analysis.SpecialFunctions.Log.Deriv /-! # Actual intrinsic radial coefficients through the tip Morgan-Tian Section 12.6, pp. 307-314, with the corrected radial-gauge tip requirement. The genuine warping quotient f(s)/s has its actual unit value at zero. Its logarithm is smooth and even, and therefore extends smoothly to the R5 heat equation without a squared-radius factorization assumption on the raw metric. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle namespace PoincareMT.M35.Uniqueness open SmoothRadial variable (g : RiemannianMetric 3 StandardCapSpace) (hrotation : โˆ€ A : Matrix.specialOrthogonalGroup (Fin 3) โ„, โˆ€ x u v : StandardCapSpace, g.inner (standardRotation A x) (mfderiv (๐“ก 3) (๐“ก 3) (standardRotation A) x u) (mfderiv (๐“ก 3) (๐“ก 3) (standardRotation A) x v) = g.inner x u v) (hcomplete : MetricComplete g) /-- The actual orbit-radius quotient, extended by its unit tip slope. -/ noncomputable def intrinsicWarpingQuotient (s : โ„) : โ„ := axisDivision (intrinsicWarpingRadius g hrotation hcomplete) s theorem intrinsicWarpingQuotient_contDiff : ContDiff โ„ โˆž (intrinsicWarpingQuotient g hrotation hcomplete) := axisDivision_contDiff (intrinsicWarpingRadius_contDiff g hrotation hcomplete) theorem intrinsicWarpingQuotient_even : Function.Even (intrinsicWarpingQuotient g hrotation hcomplete) := axisDivision_even_of_odd (intrinsicWarpingRadius_contDiff g hrotation hcomplete) (intrinsicWarpingRadius_odd g hrotation hcomplete) theorem intrinsicWarpingQuotient_zero : intrinsicWarpingQuotient g hrotation hcomplete 0 = 1 := by rw [intrinsicWarpingQuotient, axisDivision_zero, (intrinsicWarpingRadius_hasDerivAt_zero g hrotation hcomplete).deriv] theorem mul_intrinsicWarpingQuotient (s : โ„) : s * intrinsicWarpingQuotient g hrotation hcomplete s = intrinsicWarpingRadius g hrotation hcomplete s := by rw [intrinsicWarpingQuotient, mul_axisDivision (intrinsicWarpingRadius_contDiff g hrotation hcomplete), intrinsicWarpingRadius_zero, sub_zero] /-- The genuine tip quotient is positive on the entire signed axis. -/ theorem intrinsicWarpingQuotient_pos (s : โ„) : 0 < intrinsicWarpingQuotient g hrotation hcomplete s := by have hp (r : โ„) (hr : 0 < r) : 0 < intrinsicWarpingQuotient g hrotation hcomplete r := by have h := intrinsicWarpingRadius_pos g hrotation hcomplete hr rw [โ† mul_intrinsicWarpingQuotient g hrotation hcomplete] at h exact (mul_pos_iff_of_pos_left hr).mp h rcases lt_trichotomy s 0 with hs | hs | hs ยท have h := hp (-s) (neg_pos.mpr hs) rwa [intrinsicWarpingQuotient_even g hrotation hcomplete s] at h ยท rw [hs, intrinsicWarpingQuotient_zero] norm_num ยท exact hp s hs /-- The logarithmic coefficient of the actual intrinsic warped metric. -/ noncomputable def intrinsicLogWarping (s : โ„) : โ„ := Real.log (intrinsicWarpingQuotient g hrotation hcomplete s) theorem intrinsicLogWarping_contDiff : ContDiff โ„ โˆž (intrinsicLogWarping g hrotation hcomplete) := (intrinsicWarpingQuotient_contDiff g hrotation hcomplete).log (fun s => (intrinsicWarpingQuotient_pos g hrotation hcomplete s).ne') theorem intrinsicLogWarping_even : Function.Even (intrinsicLogWarping g hrotation hcomplete) := by intro s exact congrArg Real.log (intrinsicWarpingQuotient_even g hrotation hcomplete s) theorem intrinsicLogWarping_zero : intrinsicLogWarping g hrotation hcomplete 0 = 0 := by simp only [intrinsicLogWarping, intrinsicWarpingQuotient_zero, Real.log_one] /-- The smooth coefficient reconstructs the original orbit radius exactly. -/ theorem intrinsicWarpingRadius_eq_exp (s : โ„) : intrinsicWarpingRadius g hrotation hcomplete s = s * Real.exp (intrinsicLogWarping g hrotation hcomplete s) := by rw [intrinsicLogWarping, Real.exp_log (intrinsicWarpingQuotient_pos g hrotation hcomplete s)] exact (mul_intrinsicWarpingQuotient g hrotation hcomplete s).symm /-- The actual logarithmic metric coefficient has a smooth Euclidean tip, in particular in the five-dimensional corrected heat equation. -/ theorem intrinsicLogWarping_contDiff_norm {E : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E] : ContDiff โ„ โˆž (fun x : E => intrinsicLogWarping g hrotation hcomplete โ€–xโ€–) := contDiff_even_norm (intrinsicLogWarping_contDiff g hrotation hcomplete) (intrinsicLogWarping_even g hrotation hcomplete) /-- The actual gradient quotient also extends smoothly through the tip. -/ theorem intrinsicLogWarping_gradient_coefficient_contDiff_norm {E : Type*} [NormedAddCommGroup E] [InnerProductSpace โ„ E] : ContDiff โ„ โˆž (fun x : E => axisDivision (deriv (intrinsicLogWarping g hrotation hcomplete)) โ€–xโ€–) := contDiff_even_norm (axisDivision_contDiff (contDiff_infty_iff_deriv.mp (intrinsicLogWarping_contDiff g hrotation hcomplete)).2) (axisDivision_deriv_even (intrinsicLogWarping_contDiff g hrotation hcomplete) (intrinsicLogWarping_even g hrotation hcomplete)) end PoincareMT.M35.Uniqueness