import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialUnitField /-! # The actual radial shape coefficient has a retained differential The first-order equation for the radial shape coefficient is lambda' = -(K_rad + lambda^2) in intrinsic radial arclength. Together with the actual unit-field equation, it bounds one additional field jet on retained compact sets using the actual curvature bound. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Bundle namespace PoincareMT.M35.Uniqueness /-- The actual radial shape coefficient satisfies its intrinsic Riccati equation, with the retained mixed sectional curvature quotient. -/ theorem radial_shape_hasDerivAt (g : RiemannianMetric 3 StandardCapSpace) {r : โ„} (hr : 0 < r) : HasDerivAt (fun s => axisWarpingSlope g s / axisWarpingRadius g s) (-axisRadialSpeed g r * (radialMixedCurvatureFactor g r / axisRadialCoefficient g r + (axisWarpingSlope g r / axisWarpingRadius g r) ^ 2)) r := by have h := (axisWarpingSlope_hasDerivAt g hr).div (axisWarpingRadius_hasDerivAt g hr) (axisWarpingRadius_pos g hr).ne' convert! h using 1 unfold axisWarpingSecond field_simp [(axisWarpingRadius_pos g hr).ne', (axisRadialCoefficient_pos g r).ne'] ring /-- The metric covector of the actual radial unit field is exactly the intrinsic speed times the differential of the original Euclidean radius. -/ theorem radialUnitField_inner (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) {x : StandardCapSpace} (hx : x โ‰  0) (w : StandardCapSpace) : g.inner x (radialUnitField g x) w = axisRadialSpeed g โ€–xโ€– / โ€–xโ€– * inner โ„ x w := by simp only [radialUnitField, map_smul, smul_apply, smul_eq_mul] rw [rotational_inner_position g hrotation hx] unfold axisRadialSpeed field_simp [norm_ne_zero_iff.mpr hx, (Real.sqrt_pos.mpr (axisRadialCoefficient_pos g โ€–xโ€–)).ne'] rw [Real.sq_sqrt (axisRadialCoefficient_pos g โ€–xโ€–).le] private theorem radius_hasFDerivAt {x : StandardCapSpace} (hx : x โ‰  0) : HasFDerivAt (fun y : StandardCapSpace => โ€–yโ€–) (โ€–xโ€–โปยน โ€ข innerSL โ„ x) x := by have hn : โ€–xโ€– โ‰  0 := norm_ne_zero_iff.mpr hx have h := (hasStrictFDerivAt_norm_sq x).hasFDerivAt.sqrt (pow_ne_zero 2 hn) simp only [Real.sqrt_sq_eq_abs, abs_norm] at h convert! h using 1 ext w simp [smul_eq_mul] ring /-- The actual shape coefficient varies only in the oriented radial direction, with differential controlled by actual radial curvature. -/ theorem radial_shape_hasFDerivAt (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) {x : StandardCapSpace} (hx : x โ‰  0) : HasFDerivAt (fun y => axisWarpingSlope g โ€–yโ€– / axisWarpingRadius g โ€–yโ€–) (-(radialMixedCurvatureFactor g โ€–xโ€– / axisRadialCoefficient g โ€–xโ€– + (axisWarpingSlope g โ€–xโ€– / axisWarpingRadius g โ€–xโ€–) ^ 2) โ€ข g.euclideanCoefficients x (radialUnitField g x)) x := by have h := (radial_shape_hasDerivAt g (norm_pos_iff.mpr hx)).comp_hasFDerivAt x (radius_hasFDerivAt hx) convert! h using 1 ext w simp only [smul_apply, smul_eq_mul, innerSL_apply_apply] change -(radialMixedCurvatureFactor g โ€–xโ€– / axisRadialCoefficient g โ€–xโ€– + (axisWarpingSlope g โ€–xโ€– / axisWarpingRadius g โ€–xโ€–) ^ 2) * g.inner x (radialUnitField g x) w = _ rw [radialUnitField_inner g hrotation hx] ring end PoincareMT.M35.Uniqueness