import PoincareLib.Geometry.RicciFlow.Product.Circle.Factor.Metric import PoincareLib.Geometry.Riemannian.Normalization.Scaling.Distance import PoincareLib.Geometry.RicciFlow.Curvature.Calculus.Fields.KoszulPairing import PoincareLib.Geometry.RicciFlow.Curvature.Calculus.Tensors.RiemannRegularity import PoincareLib.Geometry.RicciFlow.Curvature.Calculus.Identities.CurvatureAlgebra import PoincareLib.Geometry.CurveShortening.Evolution.CovariantTheory /-! # Flatness and circumference of the supplied quotient circle The quotient differential gives a smooth unit frame. Rank one turns metric compatibility into parallelness and curvature antisymmetry into flatness. Source: MT2007 Section 19.3, pp. 445-446; see `references/ricci-flow/mapher/curve-evolution/derivations/2026-09-20-circle-metric-identities.md`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Bundle Manifold Set Topology open scoped Manifold ContDiff Bundle BigOperators namespace PoincareMT.M62 set_option maxHeartbeats 800000 in -- Bundle-valued quotient descent and the rank-one tensor representation are elaborated together. /-- Every supplied arc-length quotient circle has the actual flat-circle identities used in MT2007 Section 19.3, pp. 445-446. -/ theorem circle_identities {p : โ„} (C : CircleGeometry p) : CircleIdentities C := by let : ChartedSpace (EuclideanSpace โ„ (Fin 1)) (AddCircle p) := C.chartedSpace let : IsManifold (๐“ก 1) โˆž (AddCircle p) := C.isManifold have hframe : ContMDiff (๐“ก 1) ((๐“ก 1).prod ๐“˜(โ„, EuclideanSpace โ„ (Fin 1))) โˆž (fun q : C.Point => (โŸจq, C.frame qโŸฉ : TangentBundle (๐“ก 1) C.Point)) := by intro q obtain โŸจs, rflโŸฉ := QuotientAddGroup.mk_surjective q have hlocal := C.quotient_local_diffeomorph s have hconst : ContMDiff ๐“˜(โ„, โ„) ((๐“˜(โ„, โ„)).prod ๐“˜(โ„, โ„)) โˆž (fun r : โ„ => (โŸจr, (1 : โ„)โŸฉ : TangentBundle ๐“˜(โ„, โ„) โ„)) := contMDiff_vectorSpace_iff_contDiff.mpr contDiff_const have hlift := hconst.contMDiffAt.comp (s : C.Point) hlocal.localInverse_contMDiffAt have h := (C.quotient_smooth.contMDiff_tangentMap (m := โˆž) (by simp)).contMDiffAt.comp (s : C.Point) hlift apply h.congr_of_eventuallyEq filter_upwards [hlocal.localInverse_open_source.mem_nhds hlocal.localInverse_mem_source] with q hq change (โŸจq, C.frame qโŸฉ : TangentBundle (๐“ก 1) C.Point) = โŸจ((hlocal.localInverse q : โ„) : AddCircle p), mfderiv ๐“˜(โ„, โ„) (๐“ก 1) (fun r : โ„ => (r : AddCircle p)) (hlocal.localInverse q) 1โŸฉ rw [โ† C.frame_quotient (hlocal.localInverse q), hlocal.localInverse_right_inv hq] have hunit (q : C.Point) : C.metricOnPoints.inner q (C.frame q) (C.frame q) = 1 := by obtain โŸจs, rflโŸฉ := QuotientAddGroup.mk_surjective q rw [C.frame_quotient, C.metric_quotient] norm_num have hnonzero (q : C.Point) : C.frame q โ‰  0 := by intro hq have h := hunit q simp only [hq, map_zero] at h norm_num at h have hspan (q : C.Point) (V : TangentSpace (๐“ก 1) q) : โˆƒ r : โ„, r โ€ข C.frame q = V := exists_smul_eq_of_finrank_eq_one (by simp [TangentSpace]) (hnonzero q) V refine { frame_smooth := hframe frame_unit := hunit frame_parallel := ?_ curvature_zero := ?_ circumference_eq := ?_ } ยท intro q V have hpair := RicciFlowAnalysis.metric_derivative_pairing C.connectionOnPoints (fun _ => V) ((hframe q).mdifferentiableAt (by simp)) ((hframe q).mdifferentiableAt (by simp)) have heq : (fun y => C.metricOnPoints.inner y (C.frame y) (C.frame y)) = fun _ => (1 : โ„) := funext hunit rw [heq, mvfderiv_const] at hpair rw [C.metricOnPoints.symm q (C.frame q)] at hpair obtain โŸจr, hrโŸฉ := hspan q (C.connectionOnPoints.connection C.frame q V) rw [โ† hr] at hpair simp only [map_smul, smul_apply, smul_eq_mul, hunit, mul_one] at hpair change 0 = r + r at hpair have hr0 : r = 0 := by linarith rw [โ† hr, hr0, zero_smul] ยท intro q V W Z T obtain โŸจA, hAโŸฉ := (RicciFlowAnalysis.isSmoothCovariantTensor_riemannEvaluation C.connectionOnPoints).1 q have hzero : A (fun _ => C.frame q) = 0 := by have hs := RicciFlowAnalysis.curvatureTensor_swap_first C.connectionOnPoints q (C.frame q) (C.frame q) (C.frame q) (C.frame q) have he : C.connectionOnPoints.curvatureTensor q (C.frame q) (C.frame q) (C.frame q) (C.frame q) = A (fun _ => C.frame q) := hA (fun _ => C.frame q) rw [he] at hs linarith choose r hr using fun i : Fin 4 => hspan q (![V, W, Z, T] i) have heq : ![V, W, Z, T] = fun i => r i โ€ข C.frame q := funext fun i => (hr i).symm change C.connectionOnPoints.riemannEvaluation q ![V, W, Z, T] = 0 rw [hA, heq, A.map_smul_univ, hzero, smul_zero] ยท unfold RiemannianMetric.pathELength simp only [pathELength_eq_lintegral_mfderiv_Icc, normalization_tangentEnorm_eq] have hnorm (s : โ„) : C.metricOnPoints.tangentNorm (C.quotient s) (mfderiv ๐“˜(โ„, โ„) (๐“ก 1) C.quotient s 1) = 1 := by change Real.sqrt (C.metric.inner (s : AddCircle p) (mfderiv ๐“˜(โ„, โ„) (๐“ก 1) (fun r : โ„ => (r : AddCircle p)) s 1) (mfderiv ๐“˜(โ„, โ„) (๐“ก 1) (fun r : โ„ => (r : AddCircle p)) s 1)) = 1 rw [C.metric_quotient] norm_num simp_rw [hnorm] simp [Real.volume_Icc] end PoincareMT.M62