import PoincareLib.Geometry.RicciFlow.Product.Circle.Factor.Identities import PoincareLib.Geometry.RicciFlow.Product.Circle.Charts import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Variation.Fields.ChartVectorField import Mathlib.Geometry.Manifold.ContMDiffMFDeriv /-! # Local fields on the actual circle product Base coordinate fields and the circle's arc-length frame give smooth local fields spanning each genuine product tangent space. 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} /-- The actual base-chart direction together with a constant arc direction; MT2007 Section 19.3, pp. 445-446. -/ def productChartField (P : CircleProductCharts C n M) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) (q : P.Point) : TangentSpace (๐“ก (n + 1)) q := (P.split q).symm (PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p v q.1, r โ€ข C.frame q.2) /-- The local field has exactly its specified factor components; MT2007 Section 19.3, pp. 445-446. -/ theorem productChartField_split (P : CircleProductCharts C n M) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) (q : P.Point) : P.split q (P.productChartField p v r q) = (PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p v q.1, r โ€ข C.frame q.2) := (P.split q).apply_symm_apply _ /-- Product coordinate fields are smooth on the actual base-chart source; MT2007 Section 19.3, pp. 445-446. -/ theorem productChartField_contMDiffOn (P : CircleProductCharts C n M) (p : M) (v : EuclideanSpace โ„ (Fin n)) (r : โ„) : ContMDiffOn (๐“ก (n + 1)) (๐“ก (n + 1)).tangent โˆž (fun q : P.Point => (โŸจq, P.productChartField p v r qโŸฉ : TangentBundle (๐“ก (n + 1)) P.Point)) {q : P.Point | q.1 โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) p).source} := by let := P.chartedSpace 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 have hsplit (z : P.Point) (V : TangentSpace ((๐“ก n).prod (๐“ก 1)) z) : P.split z (mfderiv (M' := P.Point) ((๐“ก n).prod (๐“ก 1)) (๐“ก (n + 1)) (id : M ร— C.Point โ†’ P.Point) z V) = (V.1, V.2) := by apply Prod.ext ยท rw [P.split_space] have h := mfderiv_comp_apply (f := (id : M ร— C.Point โ†’ P.Point)) (g := (Prod.fst : P.Point โ†’ M)) z (hfst.mdifferentiableAt (by simp)) (P.from_product_smooth.mdifferentiableAt (by simp)) V simpa +instances only [Function.comp_def, id_eq, mfderiv_fst, ContinuousLinearMap.coe_fst'] using! h.symm ยท rw [P.split_circle] have h := mfderiv_comp_apply (f := (id : M ร— C.Point โ†’ P.Point)) (g := (Prod.snd : P.Point โ†’ C.Point)) z (hsnd.mdifferentiableAt (by simp)) (P.from_product_smooth.mdifferentiableAt (by simp)) V simpa +instances only [Function.comp_def, id_eq, mfderiv_snd, ContinuousLinearMap.coe_snd'] using! h.symm intro q hq let X := PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField p v have hX : ContMDiffAt (๐“ก n) (๐“ก n).tangent โˆž (T% X) q.1 := (PoincareMT.ReducedLengthMinimum.Variation.Geometry.chartVectorField_smooth p v).contMDiffAt ((chartAt (EuclideanSpace โ„ (Fin n)) p).open_source.mem_nhds hq) have hcircle : ContMDiffAt (๐“ก 1) (๐“ก 1).tangent โˆž (fun z : C.Point => (โŸจz, r โ€ข C.frame zโŸฉ : TangentBundle (๐“ก 1) C.Point)) q.2 := ((circle_identities C).frame_smooth q.2).const_smul_section (a := r) have hprod : ContMDiffAt ((๐“ก n).prod (๐“ก 1)) ((๐“ก n).prod (๐“ก 1)).tangent โˆž (fun z : M ร— C.Point => (โŸจz, (X z.1, r โ€ข C.frame z.2)โŸฉ : TangentBundle ((๐“ก n).prod (๐“ก 1)) (M ร— C.Point))) q := contMDiff_equivTangentBundleProd_symm.contMDiffAt.comp q ((hX.comp q contMDiffAt_fst).prodMk (hcircle.comp q contMDiffAt_snd)) have h := ((P.from_product_smooth.contMDiff_tangentMap (m := โˆž) (by simp)).contMDiffAt.comp q hprod).comp q (P.to_product_smooth q) apply ContMDiffAt.contMDiffWithinAt apply h.congr_of_eventuallyEq filter_upwards [] with z dsimp only [Function.comp_apply, id_eq, tangentMap] rw [TotalSpace.mk_inj] apply (P.split z).injective erw [hsplit] exact P.productChartField_split p v r z /-- Every tangent vector is realized by a local product coordinate field; MT2007 Section 19.3, pp. 445-446. -/ theorem productChartField_exists (P : CircleProductCharts C n M) (p : M) (q : P.Point) (hq : q.1 โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) p).source) (V : TangentSpace (๐“ก (n + 1)) q) : โˆƒ (v : EuclideanSpace โ„ (Fin n)) (r : โ„), P.productChartField p v r q = V := by let L := (mdifferentiable_chart (I := ๐“ก n) p).mfderiv hq have hnonzero : C.frame q.2 โ‰  0 := by intro he have hu := (circle_identities C).frame_unit q.2 simp only [he, map_zero] at hu norm_num at hu obtain โŸจr, hrโŸฉ := exists_smul_eq_of_finrank_eq_one (by simp [TangentSpace] : Module.finrank โ„ (TangentSpace (๐“ก 1) q.2) = 1) hnonzero (P.split q V).2 refine โŸจL (P.split q V).1, r, ?_โŸฉ apply (P.split q).injective rw [P.productChartField_split, hr] apply Prod.ext ยท have hi : (mfderiv (๐“ก n) (๐“ก n) (chartAt (EuclideanSpace โ„ (Fin n)) p) q.1).IsInvertible := โŸจL, rflโŸฉ exact hi.inverse_apply_self (P.split q V).1 ยท rfl end PoincareMT.M62.CircleProductCharts