import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.C2.GaugeWitnesses import PoincareLib.Geometry.CurveShortening.Ramp.CurveEstimates.Relabeling.Geometry /-! # Transporting the actual C2 curve through fixed labels Positive C2 labels preserve the literal C2 solution fields and the interior C1 curvature field. Included-time curvature uses the genuine C2 spatial slice, not a higher-jet endpoint hypothesis. MT2007 Claim 19.1, p. 437, and Lemma 19.6, pp. 441-442; `2026-09-22-fixed-label-c2-transport.md`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.M63 variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {a b : ℝ} /-- A positive C2 degree-one fixed change of labels preserves every field of the actual C2 shrinking curve, including both closed tangent fields. MT2007 Claim 19.1, p. 437; fixed-label C2 transport, statement 1. -/ theorem c2ShrinkingCurve_fixedLabel_comp (F : RicciFlow n M (Icc a b)) {c : ℝ β†’ ℝ β†’ M} {J : Set ℝ} (hc : M63C2ShrinkingCurveOn F c J) {psi : ℝ β†’ ℝ} (hpsi : ContDiff ℝ 2 psi) (hpos : βˆ€ x, 0 < deriv psi x) (hshift : βˆ€ x, psi (x + curvePeriod) = psi x + curvePeriod) : M63C2ShrinkingCurveOn F (fun x t => c (psi x) t) J := by let d := fun x t => c (psi x) t let B : ℝ Γ— ℝ β†’ ℝ Γ— ℝ := fun z => (psi z.1, z.2) have hB : ContDiff ℝ 1 B := ((hpsi.of_le (by norm_num)).comp contDiff_fst).prodMk contDiff_snd have hmap (K : Set ℝ) : MapsTo B (univ Γ—Λ’ K) (univ Γ—Λ’ K) := fun _ hz => ⟨mem_univ _, hz.2⟩ have hbase : ContinuousOn (fun z : ℝ Γ— ℝ => d z.1 z.2) (univ Γ—Λ’ J) := hc.continuous.comp (s := univ Γ—Λ’ J) (f := B) hB.continuous.continuousOn (hmap J) have hvel (t : ℝ) (ht : t ∈ J) (x : ℝ) : curveVelocity (n := n) (fun y => d y t) x = deriv psi x β€’ curveVelocity (n := n) (fun y => c y t) (psi x) := curveVelocity_comp ((hc.spatial_regular t ht).mdifferentiable (by norm_num) (psi x)) ((hpsi.differentiable (by norm_num) x).hasDerivAt) have hcurv (t : ℝ) (ht : t ∈ J) (x : ℝ) : m62CurvatureVector F d t x = m62CurvatureVector F c t (psi x) := curvatureVector_comp F c ((hc.spatial_regular t ht).mdifferentiable (by norm_num)) (hpsi.differentiable (by norm_num)) hpos ((unitTangent_contMDiff_of_c2 F c (hc.spatial_regular t ht) (hc.immersed t ht) (psi x)).mdifferentiableAt (by norm_num)) have hX : ContinuousOn (fun z : ℝ Γ— ℝ => (⟨d z.1 z.2, curveVelocity (n := n) (fun y => c y z.2) (psi z.1)⟩ : TangentBundle (𝓑 n) M)) (univ Γ—Λ’ J) := hc.velocity_continuous.comp (s := univ Γ—Λ’ J) (f := B) hB.continuous.continuousOn (hmap J) have hscalar : Continuous (fun z : ℝ Γ— ℝ => deriv psi z.1) := (hpsi.deriv' (n := 1)).continuous.comp continuous_fst have hscaled : ContinuousOn (fun z : ℝ Γ— ℝ => (⟨d z.1 z.2, deriv psi z.1 β€’ curveVelocity (n := n) (fun y => c y z.2) (psi z.1)⟩ : TangentBundle (𝓑 n) M)) (univ Γ—Λ’ J) := by intro z0 hz0 let E := EuclideanSpace ℝ (Fin n) let e := trivializationAt E (TangentSpace (𝓑 n)) (d z0.1 z0.2) apply (FiberBundle.continuousWithinAt_totalSpace E _).mpr refine ⟨hbase z0 hz0, ?_⟩ have hw : ContinuousWithinAt (fun z : ℝ Γ— ℝ => (e ⟨d z.1 z.2, curveVelocity (n := n) (fun y => c y z.2) (psi z.1)⟩).2) (univ Γ—Λ’ J) z0 := ((FiberBundle.continuousWithinAt_totalSpace E _).mp (hX z0 hz0)).2 have hcoord := hscalar.continuousAt.continuousWithinAt.smul hw apply hcoord.congr_of_eventuallyEq_of_mem _ hz0 have hnear : βˆ€αΆ  z in 𝓝[univ Γ—Λ’ J] z0, d z.1 z.2 ∈ e.baseSet := (hbase z0 hz0) (e.open_baseSet.mem_nhds (FiberBundle.mem_baseSet_trivializationAt' (d z0.1 z0.2))) filter_upwards [hnear] with z hz change (e ⟨d z.1 z.2, deriv psi z.1 β€’ curveVelocity (n := n) (fun y => c y z.2) (psi z.1)⟩).2 = deriv psi z.1 β€’ (e ⟨d z.1 z.2, curveVelocity (n := n) (fun y => c y z.2) (psi z.1)⟩).2 simpa only [e.continuousLinearMapAt_apply_of_mem ℝ hz] using (e.continuousLinearMapAt ℝ (d z.1 z.2)).map_smul (deriv psi z.1) (curveVelocity (n := n) (fun y => c y z.2) (psi z.1)) have hH : ContinuousOn (fun z : ℝ Γ— ℝ => (⟨d z.1 z.2, m62CurvatureVector F c z.2 (psi z.1)⟩ : TangentBundle (𝓑 n) M)) (univ Γ—Λ’ J) := hc.curvature_continuous.comp (s := univ Γ—Λ’ J) (f := B) hB.continuous.continuousOn (hmap J) refine { domain_subset := hc.domain_subset periodic := fun t ht x => ?_ spatial_regular := fun t ht => (hc.spatial_regular t ht).comp hpsi.contMDiff joint_c1 := hc.joint_c1.comp (s := univ Γ—Λ’ interior J) (f := B) hB.contMDiff.contMDiffOn (hmap (interior J)) immersed := fun t ht x => ?_ continuous := hbase velocity_continuous := hscaled.congr (fun z hz => ?_) curvature_continuous := hH.congr (fun z hz => ?_) equation := fun t ht x => ?_ } Β· change c (psi (x + curvePeriod)) t = c (psi x) t rw [hshift x] exact hc.periodic t ht (psi x) Β· rw [hvel t ht x] exact smul_ne_zero (hpos x).ne' (hc.immersed t ht (psi x)) Β· change (⟨d z.1 z.2, curveVelocity (n := n) (fun y => d y z.2) z.1⟩ : TangentBundle (𝓑 n) M) = _ rw [hvel z.2 hz.2 z.1] Β· change (⟨d z.1 z.2, m62CurvatureVector F d z.2 z.1⟩ : TangentBundle (𝓑 n) M) = _ rw [hcurv z.2 hz.2 z.1] Β· rw [hcurv t (interior_subset ht) x] exact hc.equation t ht (psi x) /-- The actual C1 interior curvature field composes with fixed positive C2 labels without a period or endpoint higher-jet premise. MT2007 Claim 19.1, p. 437; fixed-label C2 transport, statement 2. -/ theorem c2ShrinkingCurve_fixedLabel_curvature_contMDiffOn (F : RicciFlow n M (Icc a b)) {c : ℝ β†’ ℝ β†’ M} {J : Set ℝ} (hc : M63C2ShrinkingCurveOn F c J) {psi : ℝ β†’ ℝ} (hpsi : ContDiff ℝ 2 psi) (hpos : βˆ€ x, 0 < deriv psi x) (hH : ContMDiffOn π“˜(ℝ, ℝ Γ— ℝ) ((𝓑 n).prod (𝓑 n)) 1 (fun z : ℝ Γ— ℝ => (⟨c z.1 z.2, m62CurvatureVector F c z.2 z.1⟩ : TangentBundle (𝓑 n) M)) (univ Γ—Λ’ interior J)) : let d := fun x t => c (psi x) t ContMDiffOn π“˜(ℝ, ℝ Γ— ℝ) ((𝓑 n).prod (𝓑 n)) 1 (fun z : ℝ Γ— ℝ => (⟨d z.1 z.2, m62CurvatureVector F d z.2 z.1⟩ : TangentBundle (𝓑 n) M)) (univ Γ—Λ’ interior J) := by let B : ℝ Γ— ℝ β†’ ℝ Γ— ℝ := fun z => (psi z.1, z.2) have hB : ContDiff ℝ 1 B := ((hpsi.of_le (by norm_num)).comp contDiff_fst).prodMk contDiff_snd have hcomp := hH.comp (s := univ Γ—Λ’ interior J) (f := B) hB.contMDiff.contMDiffOn (fun _ hz => ⟨mem_univ _, hz.2⟩) apply hcomp.congr intro z hz have ht : z.2 ∈ J := interior_subset hz.2 have hcurv := curvatureVector_comp F c ((hc.spatial_regular z.2 ht).mdifferentiable (by norm_num)) (hpsi.differentiable (by norm_num)) hpos ((unitTangent_contMDiff_of_c2 F c (hc.spatial_regular z.2 ht) (hc.immersed z.2 ht) (psi z.1)).mdifferentiableAt (by norm_num)) change (⟨c (psi z.1) z.2, m62CurvatureVector F (fun x t => c (psi x) t) z.2 z.1⟩ : TangentBundle (𝓑 n) M) = (⟨c (psi z.1) z.2, m62CurvatureVector F c z.2 (psi z.1)⟩ : TangentBundle (𝓑 n) M) rw [hcurv] end PoincareMT.M63