import PoincareLib.Geometry.RicciFlow.Soliton.Models.Involution.MetricSeparation import Mathlib.Analysis.Calculus.MeanValue /-! # Metrics on the factors of a shrinking-cylinder involution -/ set_option autoImplicit false set_option linter.style.haveILetI false set_option backward.isDefEq.respectTransparency false open scoped Manifold ContDiff Bundle ENNReal Topology universe u namespace PoincareMT.QuotientSphereLineCertificate variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) M] [IsManifold (๐“ก 3) โˆž M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} theorem factor_surface_metric (q : QuotientSphereLineCertificate G) : letI := q.cover_topology letI := q.cover_charted letI := q.cover_manifold letI := q.product.surface_topology letI := q.product.surface_charted letI := q.product.surface_manifold โˆ€ (f : q.product.surface โ†’ q.product.surface) (g : โ„ โ†’ โ„), (โˆ€ s z, q.involution (s, z) = (f s, g z)) โ†’ โˆ€ s : q.product.surface, โˆ€ v w : TangentSpace (๐“ก 2) s, (q.product.surface_metric (-1)).inner s v w = (q.product.surface_metric (-1)).inner (f s) (mfderiv (๐“ก 2) (๐“ก 2) f s v) (mfderiv (๐“ก 2) (๐“ก 2) f s w) := by letI := q.cover_topology letI := q.cover_charted letI := q.cover_manifold letI := q.product.surface_topology letI := q.product.surface_charted letI := q.product.surface_manifold letI := q.product.product_charted letI := q.product.product_manifold intro f g hfactor s v w let j : q.product.surface โ†’ q.product.surface ร— โ„ := fun a => (a, 0) have hj : ContMDiff (๐“ก 2) (๐“ก 3) โˆž j := q.product.product_smooth_from_canonical.comp (contMDiff_id.prodMk contMDiff_const) have hfst : ContMDiff (๐“ก 3) (๐“ก 2) โˆž (Prod.fst : q.product.surface ร— โ„ โ†’ q.product.surface) := q.product.product_smooth_to_canonical.fst have hsrc (v : TangentSpace (๐“ก 2) s) : q.product.tangent_surface_component (j s) (mfderiv (๐“ก 2) (๐“ก 3) j s v) = v := by rw [q.product.tangent_surface_component_eq] have h := mfderiv_comp s (hfst.mdifferentiable (by simp) _) (hj.mdifferentiable (by simp) s) change mfderiv (๐“ก 2) (๐“ก 2) id s = _ at h rw [mfderiv_id] at h exact congrArg (fun L => L v) h.symm have htgt (v : TangentSpace (๐“ก 2) s) : q.product.tangent_surface_component (q.involution (j s)) (mfderiv (๐“ก 3) (๐“ก 3) q.involution (j s) (mfderiv (๐“ก 2) (๐“ก 3) j s v)) = mfderiv (๐“ก 2) (๐“ก 2) f s v := by rw [q.product.tangent_surface_component_eq] have h := mfderiv_comp s (hfst.mdifferentiable (by simp) _) ((q.involution_smooth.comp hj).mdifferentiable (by simp) s) rw [mfderiv_comp s (q.involution_smooth.mdifferentiable (by simp) _) (hj.mdifferentiable (by simp) s)] at h have heq : Prod.fst โˆ˜ (q.involution โˆ˜ j) = f := by funext a exact congrArg Prod.fst (hfactor a 0) rw [heq] at h exact congrArg (fun L => L v) h.symm have h := (q.involution_preserves_tangent_forms (j s) (mfderiv (๐“ก 2) (๐“ก 3) j s v) (mfderiv (๐“ก 2) (๐“ก 3) j s w)).1 rw [hsrc, hsrc, htgt, htgt] at h have hp : (q.involution (j s)).1 = f s := congrArg Prod.fst (hfactor s 0) change (q.product.surface_metric (-1)).inner s v w = (q.product.surface_metric (-1)).inner (q.involution (j s)).1 (mfderiv (๐“ก 2) (๐“ก 2) f s v) (mfderiv (๐“ก 2) (๐“ก 2) f s w) at h rw [hp] at h exact h theorem factor_line_deriv_sq (q : QuotientSphereLineCertificate G) : letI := q.cover_topology letI := q.cover_charted letI := q.cover_manifold โˆ€ (f : q.product.surface โ†’ q.product.surface) (g : โ„ โ†’ โ„), (โˆ€ s z, q.involution (s, z) = (f s, g z)) โ†’ โˆ€ _s : q.product.surface, โˆ€ z : โ„, deriv g z ^ 2 = 1 := by letI := q.cover_topology letI := q.cover_charted letI := q.cover_manifold letI := q.product.surface_topology letI := q.product.surface_charted letI := q.product.surface_manifold letI := q.product.product_charted letI := q.product.product_manifold intro f g hfactor s z let j : โ„ โ†’ q.product.surface ร— โ„ := fun a => (s, a) have hj : ContMDiff ๐“˜(โ„, โ„) (๐“ก 3) โˆž j := q.product.product_smooth_from_canonical.comp (contMDiff_const.prodMk contMDiff_id) have hsnd : ContMDiff (๐“ก 3) ๐“˜(โ„, โ„) โˆž (Prod.snd : q.product.surface ร— โ„ โ†’ โ„) := q.product.product_smooth_to_canonical.snd have hsrc : q.product.tangent_line_component (j z) (mfderiv ๐“˜(โ„, โ„) (๐“ก 3) j z 1) = 1 := by rw [q.product.tangent_line_component_eq] have h := mfderiv_comp z (hsnd.mdifferentiable (by simp) _) (hj.mdifferentiable (by simp) z) change mfderiv ๐“˜(โ„, โ„) ๐“˜(โ„, โ„) id z = _ at h rw [mfderiv_id] at h exact congrArg (fun L => L 1) h.symm have htgt : q.product.tangent_line_component (q.involution (j z)) (mfderiv (๐“ก 3) (๐“ก 3) q.involution (j z) (mfderiv ๐“˜(โ„, โ„) (๐“ก 3) j z 1)) = deriv g z := by rw [q.product.tangent_line_component_eq] have h := mfderiv_comp z (hsnd.mdifferentiable (by simp) _) ((q.involution_smooth.comp hj).mdifferentiable (by simp) z) rw [mfderiv_comp z (q.involution_smooth.mdifferentiable (by simp) _) (hj.mdifferentiable (by simp) z)] at h have heq : Prod.snd โˆ˜ (q.involution โˆ˜ j) = g := by funext a exact congrArg Prod.snd (hfactor s a) rw [heq, mfderiv_eq_fderiv] at h exact congrArg (fun L => L 1) h.symm have h := (q.involution_preserves_tangent_forms (j z) (mfderiv ๐“˜(โ„, โ„) (๐“ก 3) j z 1) (mfderiv ๐“˜(โ„, โ„) (๐“ก 3) j z 1)).2 rw [hsrc, htgt] at h nlinarith theorem real_isometry_of_involutive_deriv_sq {g : โ„ โ†’ โ„} (hg : Differentiable โ„ g) (hi : Function.Involutive g) (hd : โˆ€ z, deriv g z ^ 2 = 1) : Isometry g := by have hl : LipschitzWith 1 g := lipschitzWith_of_nnnorm_deriv_le hg fun z => by change |deriv g z| โ‰ค (1 : โ„) rcases sq_eq_one_iff.mp (hd z) with h | h <;> simp [h] apply Isometry.of_dist_eq intro x y apply le_antisymm ยท simpa using hl.dist_le_mul x y ยท simpa only [hi x, hi y, NNReal.coe_one, one_mul] using hl.dist_le_mul (g x) (g y) end PoincareMT.QuotientSphereLineCertificate