import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.Round.Metric import Mathlib.Geometry.Manifold.Algebra.Structures /-! # The smooth factor of a weakly conformal sphere Morgan-Tian Claim 18.12, printed pp. 426-427. A pointwise unit tangent direction defines the unique conformal scale. A quotient on smooth local tangent fields proves smoothness without a global sphere frame. Its zero set is exactly the actual differential-zero set. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Topology Bundle universe u namespace PoincareMT variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] /-- The squared length of the first centered round unit tangent image. For weakly conformal maps this is the intrinsic conformal factor. Source: MT Claim 18.12, pp. 426-427. -/ noncomputable def m60SphereConformalFactor (g : RiemannianMetric n M) (f : UnitTwoSphere β†’ M) (p : UnitTwoSphere) : ℝ := g.inner (f p) (mfderiv (𝓑 2) (𝓑 n) f p (EuclideanSpace.basisFun (Fin 2) ℝ 0)) (mfderiv (𝓑 2) (𝓑 n) f p (EuclideanSpace.basisFun (Fin 2) ℝ 0)) /-- The displayed conformal factor is nonnegative for every total map. Source: MT Claim 18.12, pp. 426-427. -/ theorem m60SphereConformalFactor_nonneg (g : RiemannianMetric n M) (f : UnitTwoSphere β†’ M) (p : UnitTwoSphere) : 0 ≀ m60SphereConformalFactor g f p := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ exact real_inner_self_nonneg (x := mfderiv (𝓑 2) (𝓑 n) f p (EuclideanSpace.basisFun (Fin 2) ℝ 0)) /-- Weak conformality identifies the pointwise definition with its unique intrinsic scale. Source: MT Claim 18.12, pp. 426-427. -/ theorem m60SphereConformalFactor_spec (g : RiemannianMetric n M) (f : UnitTwoSphere β†’ M) (hc : M60WeaklyConformal g f) (p : UnitTwoSphere) (v w : TangentSpace (𝓑 2) p) : g.inner (f p) (mfderiv (𝓑 2) (𝓑 n) f p v) (mfderiv (𝓑 2) (𝓑 n) f p w) = m60SphereConformalFactor g f p * m60RoundSphereInner p v w := by obtain ⟨s, -, hs⟩ := hc p have he : m60RoundSphereInner p (EuclideanSpace.basisFun (Fin 2) ℝ 0) (EuclideanSpace.basisFun (Fin 2) ℝ 0) = 1 := by rw [m60RoundSphereInner_eq_inner] change inner ℝ (EuclideanSpace.basisFun (Fin 2) ℝ 0) (EuclideanSpace.basisFun (Fin 2) ℝ 0) = 1 simp only [real_inner_self_eq_norm_sq, OrthonormalBasis.norm_eq_one, one_pow] have hscale : m60SphereConformalFactor g f p = s := by unfold m60SphereConformalFactor rw [hs, he, mul_one] rw [hscale] exact hs v w /-- The conformal factor vanishes exactly on the actual branch set. Source: MT Claim 18.12, pp. 426-427. -/ theorem m60SphereConformalFactor_eq_zero_iff (g : RiemannianMetric n M) (f : UnitTwoSphere β†’ M) (hc : M60WeaklyConformal g f) (p : UnitTwoSphere) : m60SphereConformalFactor g f p = 0 ↔ p ∈ m60SphereBranchSet (n := n) f := by constructor Β· intro h change mfderiv (𝓑 2) (𝓑 n) f p = 0 ext v change mfderiv (𝓑 2) (𝓑 n) f p v = 0 by_contra hv have hp := g.pos (f p) _ hv rw [m60SphereConformalFactor_spec g f hc, h, zero_mul] at hp exact lt_irrefl 0 hp Β· intro h change mfderiv (𝓑 2) (𝓑 n) f p = 0 at h simp [m60SphereConformalFactor, h] /-- A smooth weakly conformal sphere has a smooth factor even at its branches. Source: MT Claim 18.12, pp. 426-427, local quotient derivation. -/ theorem m60SphereConformalFactor_contMDiff (g : RiemannianMetric n M) (f : UnitTwoSphere β†’ M) (hf : ContMDiff (𝓑 2) (𝓑 n) ∞ f) (hc : M60WeaklyConformal g f) : ContMDiff (𝓑 2) π“˜(ℝ, ℝ) ∞ (m60SphereConformalFactor g f) := by intro p let v : TangentSpace (𝓑 2) p := EuclideanSpace.basisFun (Fin 2) ℝ 0 let V := FiberBundle.extend LoopPlane v have hV : ContMDiffAt (𝓑 2) ((𝓑 2).prod (𝓑 2)) ∞ (fun q => (⟨q, V q⟩ : TangentBundle (𝓑 2) UnitTwoSphere)) p := FiberBundle.contMDiffAt_extend (𝓑 2) LoopPlane v let A : UnitTwoSphere β†’ ℝ := fun q => M60.metricPullbackForm (n := 2) g f q (V q) (V q) let B : UnitTwoSphere β†’ ℝ := fun q => m60RoundSphereMetric.inner q (V q) (V q) have hA : ContMDiffAt (𝓑 2) π“˜(ℝ, ℝ) ∞ A p := by have h := (M60.metricPullbackForm_contMDiffAt g (hf p)).clm_bundle_applyβ‚‚ (F₃ := ℝ) (E₃ := Bundle.Trivial UnitTwoSphere ℝ) hV hV simpa using (Bundle.contMDiffAt_totalSpace.mp h).2 have hB : ContMDiffAt (𝓑 2) π“˜(ℝ, ℝ) ∞ B p := by have h := (m60RoundSphereMetric.contMDiff p).clm_bundle_applyβ‚‚ (F₃ := ℝ) (E₃ := Bundle.Trivial UnitTwoSphere ℝ) hV hV simpa using (Bundle.contMDiffAt_totalSpace.mp h).2 have hBp : B p = 1 := by dsimp only [B, V] rw [FiberBundle.extend_apply_self, m60RoundSphereMetric_inner, m60RoundSphereInner_eq_inner] change inner ℝ (EuclideanSpace.basisFun (Fin 2) ℝ 0) (EuclideanSpace.basisFun (Fin 2) ℝ 0) = 1 simp only [real_inner_self_eq_norm_sq, OrthonormalBasis.norm_eq_one, one_pow] have hne : B p β‰  0 := by rw [hBp]; norm_num apply (hA.divβ‚€ hB hne).congr_of_eventuallyEq filter_upwards [hB.continuousAt.eventually_ne hne] with q hq change m60SphereConformalFactor g f q = A q / B q dsimp only [A, B] rw [M60.metricPullbackForm_apply, m60SphereConformalFactor_spec g f hc, m60RoundSphereMetric_inner] exact (mul_div_cancel_rightβ‚€ _ hq).symm end PoincareMT