import PoincareLib.Geometry.CurveShortening.Comparison.Compatibility.SourceNames import PoincareLib.Geometry.RicciFlow.CurveShortening.Connection.Torsion /-! # C1 parameter coefficients in the actual chart pullback The M09 chart-field and M62 pullback arguments require only C1 parameter coefficients for this first derivative. This finite-order form applies to the spatial velocity of a C2 gauge curve. MT2007 p. 437 and Lemma 19.6, pp. 441-442; correction pp. 2-3. See `2026-09-21-coordinate-gauge-equation.md`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.M63 open Proofs.M09 variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] local notation "E" => EuclideanSpace ℝ (Fin n) /-- C1 coefficient maps give C1 actual chart fields on their product domain. This is the finite-order M09 tangent-map construction needed for the C2 gauge, MT2007 p. 437; contract review block 8. -/ theorem chartVectorField_param_contMDiff_one (p : M) (v : ℝ β†’ E) (U : Set ℝ) (hv : ContDiffOn ℝ 1 v U) : ContMDiffOn ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) 1 (fun z : ℝ Γ— M => Bundle.TotalSpace.mk' E z.2 (chartVectorField p (v z.1) z.2)) (U Γ—Λ’ (chartAt E p).source) := by have hp : ContMDiffOn ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) 1 (fun z : ℝ Γ— M => ((chartAt E p) z.2, v z.1)) (U Γ—Λ’ (chartAt E p).source) := (contMDiffOn_chart.comp contMDiff_snd.contMDiffOn (fun z hz => hz.2)).prodMk (hv.contMDiffOn.comp contMDiff_fst.contMDiffOn (fun z hz => hz.1)) have htv : ContMDiffOn ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) 1 (fun z : ℝ Γ— M => (⟨(chartAt E p) z.2, v z.1⟩ : TangentBundle (𝓑 n) E)) (U Γ—Λ’ (chartAt E p).source) := by have hmodel : ContMDiff ((𝓑 n).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) 1 (fun q : E Γ— E => (⟨q.1, q.2⟩ : TangentBundle (𝓑 n) E)) := by convert! (contMDiff_tangentBundleModelSpaceHomeomorph_symm (I := 𝓑 n) (n := 1)) using 1 rw [chartedSpaceSelf_prod] rfl exact hmodel.comp_contMDiffOn hp have hc : ContMDiffOn (𝓑 n) (𝓑 n) 2 (chartAt E p).symm (chartAt E p).target := contMDiffOn_chart_symm have ht := hc.contMDiffOn_tangentMapWithin (m := 1) (by norm_num) (chartAt E p).open_target.uniqueMDiffOn have h := ht.comp htv (fun z hz => (chartAt E p).map_source hz.2) apply h.congr intro z hz change Bundle.TotalSpace.mk' E z.2 (chartVectorField p (v z.1) z.2) = Bundle.TotalSpace.mk' E ((chartAt E p).symm ((chartAt E p) z.2)) (mfderivWithin (𝓑 n) (𝓑 n) (chartAt E p).symm (chartAt E p).target ((chartAt E p) z.2) (v z.1)) rw [mfderivWithin_of_isOpen (chartAt E p).open_target ((chartAt E p).map_source hz.2)] have heq := chartVectorField_at_inverse p (v z.1) ((chartAt E p) z.2) ((chartAt E p).map_source hz.2) rw [(chartAt E p).left_inv hz.2] at heq ⊒ exact congrArg (Bundle.TotalSpace.mk' E z.2) heq /-- The actual chart-field pullback formula only needs C1 parameter coefficients and an actual curve derivative. MT2007 Lemma 19.6, pp. 441-442; the selected-connection calculus in correction pp. 2-3. -/ theorem pullback_chart_field_of_contDiff_one {g : RiemannianMetric n M} (D : LeviCivitaData g) (p : M) {gamma : ℝ β†’ M} {x : ℝ} (hgamma : MDifferentiableAt π“˜(ℝ, ℝ) (𝓑 n) gamma x) (hsource : gamma x ∈ (chartAt E p).source) {U : Set ℝ} (hU : IsOpen U) (hx : x ∈ U) (v : ℝ β†’ E) (hv : ContDiffOn ℝ 1 v U) : rampHorizontalCovariantDerivative D gamma (fun r => chartVectorField p (v r) (gamma r)) x = chartVectorField p (deriv v x) (gamma x) + D.connection (chartVectorField p (v x)) (gamma x) (curveVelocity gamma x) := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 n) : M β†’ Type _) := ⟨g.toRiemannianMetric⟩ let W := fun r q => chartVectorField p (v r) q have hW : MDifferentiableAt ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) (fun z : ℝ Γ— M => (⟨z.2, W z.1 z.2⟩ : TangentBundle (𝓑 n) M)) (x, gamma x) := ((chartVectorField_param_contMDiff_one p v U hv).contMDiffAt (prod_mem_nhds (hU.mem_nhds hx) ((chartAt E p).open_source.mem_nhds hsource))).mdifferentiableAt (by simp) let L := (mfderiv (𝓑 n) (𝓑 n) (chartAt E p) (gamma x)).inverse have htime : HasDerivAt (fun r => W r (gamma x)) (chartVectorField p (deriv v x) (gamma x)) x := L.hasFDerivAt.comp_hasDerivAt x (((hv x hx).contDiffAt (hU.mem_nhds hx)).differentiableAt (by simp)).hasDerivAt have heq := (M62.hasDerivAt_fixedPointTimeDerivative W (gamma x) x hW).unique htime rw [M62.pullback_parametric_field D hgamma W hW, heq] end PoincareMT.M63