import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Imports import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.RawFlow.IntrinsicSpatialMetric import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.RoundCylinder /-! # The actual metric on a literal intrinsic radial annulus Morgan-Tian Theorem 12.32, pp. 326-327. The annulus coordinate has constant axial speed. The checked intrinsic metric and the tangent orthogonality of the sphere inclusion therefore give its exact angular and axial coefficients. These are the coefficients that must satisfy the final radial neck comparison. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Bundle namespace PoincareMT.M35 private theorem sphere_derivative_orthogonal (q : UnitTwoSphere) (v : TangentSpace (𝓑 2) q) : inner ℝ q.val (mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) q v) = 0 := by let : Fact (Module.finrank ℝ StandardCapSpace = 2 + 1) := ⟨finrank_euclideanSpace_fin⟩ have hmem : mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) q v ∈ (mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) q).range := ⟨v, rfl⟩ rw [range_mvfderiv_subtypeVal] at hmem exact Submodule.mem_orthogonal_singleton_iff_inner_right.mp hmem /-- Theorem 12.32, pp. 326-327: the actual affine annulus differential. -/ theorem radial_annulus_coordinate_mfderiv (a b : ℝ) (z : StandardCylinderSpace) (v : RoundCylinderTangent z) : mfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) (fun y : StandardCylinderSpace => (a + b * y.2) β€’ y.1.val) z v = (a + b * z.2) β€’ mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) z.1 v.1 + (b * v.2) β€’ z.1.val := by change EuclideanSpace ℝ (Fin 2) Γ— ℝ at v let : Fact (Module.finrank ℝ StandardCapSpace = 2 + 1) := ⟨finrank_euclideanSpace_fin⟩ let f : StandardCylinderSpace β†’ ℝ := fun y => a + b * y.2 let q : StandardCylinderSpace β†’ StandardCapSpace := fun y => y.1.val have hf : HasMFDerivAt ((𝓑 2).prod π“˜(ℝ, ℝ)) π“˜(ℝ, ℝ) f z (b β€’ ContinuousLinearMap.snd ℝ (EuclideanSpace ℝ (Fin 2)) ℝ) := by simpa only [zero_add] using! (hasMFDerivAt_const (I := (𝓑 2).prod π“˜(ℝ, ℝ)) a z).add ((hasMFDerivAt_snd (I := 𝓑 2) (I' := π“˜(ℝ, ℝ)) z).const_smul b) have hq : MDifferentiableAt ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) q z := ((contMDiff_coe_sphere (m := ∞) (n := 2) (E := StandardCapSpace)).comp contMDiff_fst).mdifferentiable (by simp) z have hfd : mvfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) f z v = b * v.2 := by change mfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) π“˜(ℝ, ℝ) f z v = _ rw [hf.mfderiv] rfl have hqd : mvfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) q z v = mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) z.1 v.1 := by have h := mfderiv_comp_apply z ((contMDiff_coe_sphere (m := ∞) (n := 2) (E := StandardCapSpace)).mdifferentiable (by simp) z.1) (mdifferentiableAt_fst (I := 𝓑 2) (I' := π“˜(ℝ, ℝ))) v change @Eq StandardCapSpace _ _ at h rw [mfderiv_fst] at h exact h change mvfderiv ((𝓑 2).prod π“˜(ℝ, ℝ)) (f β€’ q) z v = _ rw [mvfderiv_smul hf.mdifferentiableAt hq] simp only [add_apply, smul_apply, ContinuousLinearMap.smulRight_apply, hfd, hqd, f, q] namespace Uniqueness 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) /-- Theorem 12.32, pp. 326-327: the literal actual warped annulus tensor. -/ theorem intrinsic_radial_annulus_pullback (a b : ℝ) (z : StandardCylinderSpace) (hz : 0 < a + b * z.2) (v w : RoundCylinderTangent z) : roundCylinderPullback (intrinsicSpatialMetric g hrotation hcomplete) (fun y : StandardCylinderSpace => (a + b * y.2) β€’ y.1.val) z v w = intrinsicWarpingRadius g hrotation hcomplete (a + b * z.2) ^ 2 * inner ℝ (mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) z.1 v.1) (mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) z.1 w.1) + b ^ 2 * v.2 * w.2 := by let r := a + b * z.2 have hnorm : β€–r β€’ z.1.valβ€– = r := by rw [norm_smul, Real.norm_eq_abs, abs_of_pos hz, norm_eq_of_mem_sphere, mul_one] have hne : r β€’ z.1.val β‰  0 := norm_ne_zero_iff.mp (hnorm.trans_ne hz.ne') have hv := sphere_derivative_orthogonal z.1 v.1 have hv' : inner ℝ (mvfderiv (𝓑 2) (fun p : UnitTwoSphere => p.val) z.1 v.1) z.1.val = 0 := (real_inner_comm _ _).trans hv have hw := sphere_derivative_orthogonal z.1 w.1 have hunit : inner ℝ z.1.val z.1.val = 1 := by rw [real_inner_self_eq_norm_sq, norm_eq_of_mem_sphere, one_pow] rw [roundCylinderPullback, radial_annulus_coordinate_mfderiv, radial_annulus_coordinate_mfderiv, intrinsicSpatialMetric_inner g hrotation hcomplete hne] rw [hnorm, ← mul_intrinsicWarpingQuotient g hrotation hcomplete r] simp only [inner_add_left, inner_add_right, real_inner_smul_left, real_inner_smul_right, hv, hv', hw, hunit, mul_zero, add_zero, zero_add] field_simp [show r β‰  0 from hz.ne'] dsimp only [r] ring end Uniqueness end PoincareMT.M35