import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicSpatialCoordinate /-! # The differential of the actual inverse intrinsic coordinate Morgan-Tian Section 12.6, pp. 307-311. The actual inverse radial scale is smooth even at zero. Its differential has the genuine inverse radial speed in the radial direction, retaining the exact angular scale. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency 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 smooth angular scale of the genuine inverse coordinate. -/ noncomputable def intrinsicInverseScale (s : โ„) : โ„ := axisDivision (radialArclengthOrderIso g hrotation hcomplete).symm s theorem intrinsicInverseScale_contDiff : ContDiff โ„ โˆž (intrinsicInverseScale g hrotation hcomplete) := axisDivision_contDiff (radialArclengthOrderIso_symm_contDiff g hrotation hcomplete) theorem intrinsicInverseScale_even : Function.Even (intrinsicInverseScale g hrotation hcomplete) := axisDivision_even_of_odd (radialArclengthOrderIso_symm_contDiff g hrotation hcomplete) (radialArclengthOrderIso_symm_odd g hrotation hcomplete) theorem mul_intrinsicInverseScale (s : โ„) : s * intrinsicInverseScale g hrotation hcomplete s = (radialArclengthOrderIso g hrotation hcomplete).symm s := by rw [intrinsicInverseScale, mul_axisDivision (radialArclengthOrderIso_symm_contDiff g hrotation hcomplete), radialArclengthOrderIso_symm_zero, sub_zero] theorem intrinsicInverseScale_zero : intrinsicInverseScale g hrotation hcomplete 0 = (Real.sqrt (axisRadialCoefficient g 0))โปยน := by rw [intrinsicInverseScale, axisDivision_zero, (radialArclengthOrderIso_symm_hasDerivAt g hrotation hcomplete 0).deriv, radialArclengthOrderIso_symm_zero] theorem intrinsicInverseScale_pos {s : โ„} (hs : 0 < s) : 0 < intrinsicInverseScale g hrotation hcomplete s := by have h := radialArclengthOrderIso_symm_pos g hrotation hcomplete hs rw [โ† mul_intrinsicInverseScale g hrotation hcomplete] at h exact (mul_pos_iff_of_pos_left hs).mp h /-- The radial eigenvalue of the actual coordinate differential. -/ theorem intrinsicInverseScale_radial_derivative (s : โ„) : intrinsicInverseScale g hrotation hcomplete s + s ^ 2 * axisDivision (deriv (intrinsicInverseScale g hrotation hcomplete)) s = (Real.sqrt (axisRadialCoefficient g ((radialArclengthOrderIso g hrotation hcomplete).symm s)))โปยน := by let k := intrinsicInverseScale g hrotation hcomplete have hk : ContDiff โ„ โˆž k := intrinsicInverseScale_contDiff g hrotation hcomplete have he : Function.Even k := intrinsicInverseScale_even g hrotation hcomplete have heq : (fun r => r * k r) = ((radialArclengthOrderIso g hrotation hcomplete).symm : โ„ โ†’ โ„) := funext (mul_intrinsicInverseScale g hrotation hcomplete) have hd : HasDerivAt (fun r => r * k r) (k s + s * deriv k s) s := by have hh := (hasDerivAt_id s).mul (hk.differentiable (by simp) s).hasDerivAt change HasDerivAt (fun r => r * k r) (1 * k s + s * deriv k s) s at hh simpa only [one_mul] using hh rw [heq] at hd have hu := hd.unique (radialArclengthOrderIso_symm_hasDerivAt g hrotation hcomplete s) have hs := mul_axisDivision_deriv hk he s change k s + s ^ 2 * axisDivision (deriv k) s = _ calc _ = k s + s * deriv k s := by rw [โ† hs]; ring _ = _ := hu /-- The literal differential of the actual spatial inverse, valid at zero as well. -/ theorem intrinsicSpatialInverse_fderiv (x v : StandardCapSpace) : fderiv โ„ (intrinsicSpatialInverse g hrotation hcomplete) x v = intrinsicInverseScale g hrotation hcomplete โ€–xโ€– โ€ข v + (axisDivision (deriv (intrinsicInverseScale g hrotation hcomplete)) โ€–xโ€– * inner โ„ x v) โ€ข x := by let k := intrinsicInverseScale g hrotation hcomplete have hd := (hasFDerivAt_even_norm (intrinsicInverseScale_contDiff g hrotation hcomplete) (intrinsicInverseScale_even g hrotation hcomplete) x).smul (hasFDerivAt_id x) change HasFDerivAt (fun y => k โ€–yโ€– โ€ข y) _ x at hd change fderiv โ„ (fun y => k โ€–yโ€– โ€ข y) x v = _ rw [hd.fderiv] rfl theorem intrinsicSpatialInverse_fderiv_zero (v : StandardCapSpace) : fderiv โ„ (intrinsicSpatialInverse g hrotation hcomplete) 0 v = (Real.sqrt (axisRadialCoefficient g 0))โปยน โ€ข v := by rw [intrinsicSpatialInverse_fderiv, norm_zero, intrinsicInverseScale_zero] simp only [inner_zero_left, mul_zero, zero_smul, add_zero] end PoincareMT.M35.Uniqueness