import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Predecessors.Necks.Spheres.RoundCylinderReflectionJets import PoincareLib.Topology.Manifold.NeckCap.Theory import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Convergence.CylinderCoefficients /-! # Actual metric pullbacks under neck reversal The literal cylinder reflection gives the two-slot coefficient identity needed to preserve every metric jet in Morgan--Tian Definition 2.18, p. 31. The chain rule retains actual pointwise differentiability. See proof-work/tasks/M25/derivations/2026-09-22-actual-neck-reversal-inventory.md. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff universe u namespace PoincareMT /-- The actual sphere-cylinder diffeomorphism in Definition 2.18, p. 31, with the same literal line reflection in both directions. -/ noncomputable def roundCylinderAxialReflection : Diffeomorph ((𝓑 2).prod π“˜(ℝ, ℝ)) ((𝓑 2).prod π“˜(ℝ, ℝ)) RoundCylinderSpace RoundCylinderSpace ∞ where toFun := fun z => (z.1, -z.2) invFun := fun z => (z.1, -z.2) left_inv := by intro z; simp right_inv := by intro z; simp contMDiff_toFun := contMDiff_fst.prodMk (contDiff_neg.contMDiff.comp contMDiff_snd) contMDiff_invFun := contMDiff_fst.prodMk (contDiff_neg.contMDiff.comp contMDiff_snd) variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] -- The chain rule uses tangent-space aliases with their model vector spaces. set_option backward.isDefEq.respectTransparency false in /-- Both actual metric arguments acquire their basis signs under reversal; Definitions 2.16 and 2.18, pp. 30-31. -/ theorem roundCylinderTensorCoefficient_smul_pullback_axialReflection (g : RiemannianMetric 3 M) (a : ℝ) (f : RoundCylinderSpace β†’ M) (q : UnitTwoSphere) (p : RoundCylinderCoordinates) (hf : MDifferentiableAt ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) f ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm p.1, -p.2)) (i j : Fin 3) : roundCylinderTensorCoefficient (fun z v w => a * roundCylinderPullback g (fun y => f (roundCylinderAxialReflection y)) z v w) (chartAt (EuclideanSpace ℝ (Fin 2)) q) p i j = roundCylinderAxialSign i * roundCylinderAxialSign j * roundCylinderTensorCoefficient (fun z v w => a * roundCylinderPullback g f z v w) (chartAt (EuclideanSpace ℝ (Fin 2)) q) (roundCylinderCoordinateReflection p) i j := by let c := chartAt (EuclideanSpace ℝ (Fin 2)) q let ψ : RoundCylinderCoordinates β†’ RoundCylinderSpace := fun y => (c.symm y.1, y.2) let F : RoundCylinderCoordinates β†’ M := f ∘ ψ let J := roundCylinderCoordinateReflection have hρ : MDifferentiableAt ((𝓑 2).prod π“˜(ℝ, ℝ)) ((𝓑 2).prod π“˜(ℝ, ℝ)) roundCylinderAxialReflection (ψ p) := roundCylinderAxialReflection.contMDiff.mdifferentiable (by simp) _ have hfr : MDifferentiableAt ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) (fun z => f (roundCylinderAxialReflection z)) (ψ p) := hf.comp (ψ p) hρ have hF : MDifferentiableAt π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) F (J p) := hf.comp (J p) ((cylinderChart_symm_smooth q).mdifferentiable (by simp) _) change a * roundCylinderTensorCoefficient (roundCylinderPullback g (fun z => f (roundCylinderAxialReflection z))) c p i j = roundCylinderAxialSign i * roundCylinderAxialSign j * (a * roundCylinderTensorCoefficient (roundCylinderPullback g f) c (J p) i j) rw [roundCylinderTensorCoefficient_pullback_eq g q _ p hfr i j, roundCylinderTensorCoefficient_pullback_eq g q f (J p) hf i j] change a * g.inner (F (J p)) (mfderiv π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) (F ∘ J) p (roundCylinderCoordinateBasis i)) (mfderiv π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) (F ∘ J) p (roundCylinderCoordinateBasis j)) = roundCylinderAxialSign i * roundCylinderAxialSign j * (a * g.inner (F (J p)) (mfderiv π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) F (J p) (roundCylinderCoordinateBasis i)) (mfderiv π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) F (J p) (roundCylinderCoordinateBasis j))) have hD (v : RoundCylinderCoordinates) : mfderiv π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) (F ∘ J) p v = mfderiv π“˜(ℝ, RoundCylinderCoordinates) (𝓑 3) F (J p) (J v) := by rw [mfderiv_comp_apply p hF J.mdifferentiableAt, J.mfderiv_eq] rfl rw [hD, hD] simp only [J, roundCylinderCoordinateReflection_basis, map_smul, smul_apply, smul_eq_mul] ring /-- The literal normalized comparison, including its full retained order and strict witness, survives the reversal of Definition 2.18, p. 31. -/ theorem NeckMetricJetComparison.axialReflection {g : RiemannianMetric 3 M} {epsilon scale : ℝ} {f : RoundCylinderSpace β†’ M} (h : NeckMetricJetComparison g epsilon scale f) (hf : ContMDiffOn ((𝓑 2).prod π“˜(ℝ, ℝ)) (𝓑 3) ∞ f (univ Γ—Λ’ Ioo (-epsilon⁻¹) epsilon⁻¹)) : NeckMetricJetComparison g epsilon scale (fun z => f (roundCylinderAxialReflection z)) := by refine ⟨h.close.axialReflection ?_⟩ intro q p hp i j have hmem : ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm p.1, -p.2) ∈ (univ Γ—Λ’ Ioo (-epsilon⁻¹) epsilon⁻¹ : Set RoundCylinderSpace) := by refine ⟨mem_univ _, ?_⟩ constructor <;> linarith [hp.2.1, hp.2.2] exact roundCylinderTensorCoefficient_smul_pullback_axialReflection g (scale⁻¹ ^ 2) f q p ((hf.contMDiffAt ((isOpen_univ.prod isOpen_Ioo).mem_nhds hmem)).mdifferentiableAt (by simp)) i j end PoincareMT