import PoincareLib.Geometry.RicciFlow.Product.Circle.Frame import Mathlib.Geometry.Manifold.VectorField.Pullback /-! # Commutation of the actual circle-product coordinate fields A fixed local inverse of the genuine quotient supplies the circle arc coordinate. The product fields are pullbacks of constant coordinate fields. Source: MT2007 Section 19.3, pp. 445-446; see `references/ricci-flow/mapher/curve-evolution/derivations/2026-09-20-circle-product-frame.md`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Bundle Manifold Set Topology Filter open scoped Manifold ContDiff Bundle noncomputable section namespace PoincareMT.M62.CircleProductCharts variable {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {circumference : ℝ} {C : CircleGeometry circumference} set_option maxHeartbeats 800000 in -- The dependent quotient differential and product tangent coordinates are normalized together. /-- Actual local product coordinate fields commute on the base-chart source; MT2007 Section 19.3, pp. 445-446. -/ theorem productChartField_bracket (P : CircleProductCharts C n M) (p : M) (v w : EuclideanSpace ℝ (Fin n)) (r s : ℝ) (q : P.Point) (hq : q.1 ∈ (chartAt (EuclideanSpace ℝ (Fin n)) p).source) : VectorField.mlieBracket (𝓑 (n + 1)) (P.productChartField p v r) (P.productChartField p w s) q = 0 := by let := P.chartedSpace let : ChartedSpace (EuclideanSpace ℝ (Fin 1)) (AddCircle circumference) := C.chartedSpace let : IsManifold (𝓑 1) ∞ (AddCircle circumference) := C.isManifold let E := EuclideanSpace ℝ (Fin n) have hfst : ContMDiff (𝓑 (n + 1)) (𝓑 n) ∞ (Prod.fst : P.Point β†’ M) := contMDiff_fst.comp P.to_product_smooth have hsnd : ContMDiff (𝓑 (n + 1)) (𝓑 1) ∞ (Prod.snd : P.Point β†’ C.Point) := contMDiff_snd.comp P.to_product_smooth obtain ⟨sβ‚€, hsβ‚€βŸ© := QuotientAddGroup.mk_surjective q.2 let hlocal := C.quotient_local_diffeomorph sβ‚€ let Οƒ := hlocal.localInverse have hqΟƒ : q.2 ∈ Οƒ.source := by rw [← hsβ‚€] exact hlocal.localInverse_mem_source have hΟƒ (y : C.Point) (hy : y ∈ Οƒ.source) : ContMDiffAt (𝓑 1) π“˜(ℝ, ℝ) ∞ Οƒ y := (hlocal.contmdiffOn_localInverse y hy).contMDiffAt (Οƒ.open_source.mem_nhds hy) have hΟƒframe (y : C.Point) (hy : y ∈ Οƒ.source) : mfderiv (𝓑 1) π“˜(ℝ, ℝ) Οƒ y (C.frame y) = 1 := by have heq : (fun u : ℝ => Οƒ (u : AddCircle circumference)) =αΆ [𝓝 (Οƒ y)] id := by filter_upwards [Οƒ.open_target.mem_nhds (Οƒ.map_source hy)] with u hu exact hlocal.localInverse_left_inv hu have hΟƒ' : MDifferentiableAt (𝓑 1) π“˜(ℝ, ℝ) Οƒ ((Οƒ y : ℝ) : AddCircle circumference) := by rw [hlocal.localInverse_right_inv hy] exact (hΟƒ y hy).mdifferentiableAt (by simp) have hcomp := mfderiv_comp_apply (f := fun u : ℝ => (u : AddCircle circumference)) (g := Οƒ) (Οƒ y) hΟƒ' (C.quotient_smooth.mdifferentiableAt (by simp)) 1 have hv : mfderiv (𝓑 1) π“˜(ℝ, ℝ) Οƒ ((Οƒ y : ℝ) : AddCircle circumference) (mfderiv π“˜(ℝ, ℝ) (𝓑 1) (fun u : ℝ => (u : AddCircle circumference)) (Οƒ y) 1) = 1 := by rw [← hcomp] change (mfderiv π“˜(ℝ, ℝ) π“˜(ℝ, ℝ) (fun u : ℝ => Οƒ (u : AddCircle circumference)) (Οƒ y)) 1 = 1 rw [heq.mfderiv_eq, mfderiv_id] rfl rw [← C.frame_quotient, hlocal.localInverse_right_inv hy] at hv exact hv let ψ : P.Point β†’ E Γ— ℝ := fun z => ((chartAt E p) z.1, Οƒ z.2) have hψ (z : P.Point) (hz : z.1 ∈ (chartAt E p).source) (hΟƒz : z.2 ∈ Οƒ.source) : ContMDiffAt (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ∞ ψ z := ((contMDiffOn_chart.contMDiffAt ((chartAt E p).open_source.mem_nhds hz)).comp z (hfst z)).prodMk_space ((hΟƒ z.2 hΟƒz).comp z (hsnd z)) have heq (u : E) (a : ℝ) (z : P.Point) (hz : z.1 ∈ (chartAt E p).source) (hΟƒz : z.2 ∈ Οƒ.source) : P.productChartField p u a z = VectorField.mpullback (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ψ (fun _ => (u, a)) z := by let L := (mdifferentiable_chart (I := 𝓑 n) p).mfderiv hz let K := (Οƒ.isLocalDiffeomorphAt (𝓑 1) π“˜(ℝ, ℝ) ∞ hΟƒz).mfderivToContinuousLinearEquiv (by simp) let D := (P.split z).trans (L.prodCongr K) have hD : mfderiv (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ψ z = D.toContinuousLinearMap := by ext V apply Prod.ext Β· have hc : MDifferentiableAt (𝓑 n) (𝓑 n) (chartAt E p) z.1 := ((contMDiffOn_chart (I := 𝓑 n) (n := ∞)).contMDiffAt ((chartAt E p).open_source.mem_nhds hz)).mdifferentiableAt (by simp) have h := mfderiv_comp_apply (f := ψ) (g := (Prod.fst : E Γ— ℝ β†’ E)) z differentiableAt_fst.mdifferentiableAt ((hψ z hz hΟƒz).mdifferentiableAt (by simp)) V have hp := mfderiv_comp_apply (f := (Prod.fst : P.Point β†’ M)) (g := chartAt E p) z hc (hfst.mdifferentiableAt (by simp)) V have hfirst : (mfderiv (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ψ z V).1 = mfderiv (𝓑 (n + 1)) (𝓑 n) (fun z : P.Point => (chartAt E p) z.1) z V := by simpa +instances only [mfderiv_eq_fderiv, fderiv_fst, ContinuousLinearMap.coe_fst', Function.comp_def, ψ] using! h.symm rw [hfirst] change _ = mfderiv (𝓑 n) (𝓑 n) (chartAt E p) z.1 (P.split z V).1 rw [P.split_space] exact hp Β· have h := mfderiv_comp_apply (f := ψ) (g := (Prod.snd : E Γ— ℝ β†’ ℝ)) z differentiableAt_snd.mdifferentiableAt ((hψ z hz hΟƒz).mdifferentiableAt (by simp)) V have hp := mfderiv_comp_apply (f := (Prod.snd : P.Point β†’ C.Point)) (g := Οƒ) z ((hΟƒ z.2 hΟƒz).mdifferentiableAt (by simp)) (hsnd.mdifferentiableAt (by simp)) V have hsecond : (mfderiv (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ψ z V).2 = mfderiv (𝓑 (n + 1)) π“˜(ℝ, ℝ) (fun z : P.Point => Οƒ z.2) z V := by simpa +instances only [mfderiv_eq_fderiv, fderiv_snd, ContinuousLinearMap.coe_snd', Function.comp_def, ψ] using! h.symm rw [hsecond] change _ = mfderiv (𝓑 1) π“˜(ℝ, ℝ) Οƒ z.2 (P.split z V).2 rw [P.split_circle] exact hp change P.productChartField p u a z = (mfderiv (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ψ z).inverse _ rw [hD, ContinuousLinearMap.inverse_equiv] apply D.injective erw [D.apply_symm_apply] change (L (P.split z (P.productChartField p u a z)).1, K (P.split z (P.productChartField p u a z)).2) = (u, a) rw [P.productChartField_split] apply Prod.ext Β· have hi : (mfderiv (𝓑 n) (𝓑 n) (chartAt E p) z.1).IsInvertible := ⟨L, rfl⟩ exact hi.self_apply_inverse u Β· change mfderiv (𝓑 1) π“˜(ℝ, ℝ) Οƒ z.2 (a β€’ C.frame z.2) = a rw [map_smul, hΟƒframe z.2 hΟƒz] exact mul_one a have horder : minSmoothness ℝ 2 ≀ (∞ : β„•βˆžΟ‰) := by rw [minSmoothness_of_isRCLikeNormedField] exact ENat.natCast_le_of_coe_top_le_withTop le_rfl 2 let : IsManifold (𝓑 (n + 1)) (minSmoothness ℝ 2) P.Point := IsManifold.of_le (n := ∞) horder have hconst (u : E Γ— ℝ) : ContMDiff π“˜(ℝ, E Γ— ℝ) (π“˜(ℝ, E Γ— ℝ)).tangent ∞ (fun z : E Γ— ℝ => (⟨z, u⟩ : TangentBundle π“˜(ℝ, E Γ— ℝ) (E Γ— ℝ))) := contMDiff_vectorSpace_iff_contDiff.mpr contDiff_const have hb := VectorField.mpullback_mlieBracket ((hconst (v, r) (ψ q)).mdifferentiableAt (by simp)) ((hconst (w, s) (ψ q)).mdifferentiableAt (by simp)) (hψ q hq hqΟƒ) horder have hzero : VectorField.mlieBracket π“˜(ℝ, E Γ— ℝ) (fun _ : E Γ— ℝ => (v, r)) (fun _ : E Γ— ℝ => (w, s)) = 0 := by change VectorField.mlieBracketWithin π“˜(ℝ, E Γ— ℝ) (fun _ : E Γ— ℝ => (v, r)) (fun _ : E Γ— ℝ => (w, s)) univ = 0 rw [VectorField.mlieBracketWithin_eq_lieBracketWithin] ext z <;> simp [VectorField.lieBracketWithin] have hbase : βˆ€αΆ  z : P.Point in 𝓝 q, z.1 ∈ (chartAt E p).source := hfst.continuous.continuousAt ((chartAt E p).open_source.mem_nhds hq) have hcircle : βˆ€αΆ  z : P.Point in 𝓝 q, z.2 ∈ Οƒ.source := hsnd.continuous.continuousAt (Οƒ.open_source.mem_nhds hqΟƒ) have hnear (u : E) (a : ℝ) : P.productChartField p u a =αΆ [𝓝 q] VectorField.mpullback (𝓑 (n + 1)) π“˜(ℝ, E Γ— ℝ) ψ (fun _ => (u, a)) := by filter_upwards [hbase, hcircle] with z hz hΟƒz exact heq u a z hz hΟƒz rw [(hnear v r).mlieBracket_vectorField_eq (hnear w s), ← hb, hzero, VectorField.mpullback_zero] rfl end PoincareMT.M62.CircleProductCharts