import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Exponential.FamilyPhase import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Coordinates.TangentChartPhase import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Coordinates.ChartVelocity import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Calculus.SmoothPartials /-! # Actual phases of a time-first smooth family The intrinsic phase is smooth by the tangent map. In any valid chart it equals the ordinary position-and-time-derivative phase of the chart family. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.ReducedLength variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local notation "Q" => EuclideanSpace โ„ (Fin n) noncomputable def parameterCurvePhase (H : โ„ ร— โ„ โ†’ M) (z : โ„ ร— โ„) : TangentBundle (๐“ก n) M := curvePhase (n := n) (fun s โ†ฆ H (s, z.2)) z.1 set_option backward.isDefEq.respectTransparency false in theorem parameterCurvePhase_contMDiffOn (H : โ„ ร— โ„ โ†’ M) (U : Set (โ„ ร— โ„)) (hU : IsOpen U) (hH : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) (๐“ก n) โˆž H U) : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) ((๐“ก n).prod (๐“ก n)) โˆž (parameterCurvePhase (n := n) H) U := by have hswap : ContDiff โ„ โˆž (Prod.swap : โ„ ร— โ„ โ†’ โ„ ร— โ„) := contDiff_snd.prodMk contDiff_fst have hHU : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) (๐“ก n) โˆž (H โˆ˜ Prod.swap) (Prod.swap โปยน' U) := hH.comp hswap.contMDiff.contMDiffOn (fun _ hz โ†ฆ hz) have hphase := familyPhase_contMDiffOn (H โˆ˜ Prod.swap) (Prod.swap โปยน' U) (hU.preimage hswap.continuous) hHU exact hphase.comp hswap.contMDiff.contMDiffOn (fun _ hz โ†ฆ hz) theorem tangentChartPhase_parameter_eq (H : โ„ ร— โ„ โ†’ M) (U : Set (โ„ ร— โ„)) (hU : IsOpen U) (hH : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) (๐“ก n) โˆž H U) (p : M) (z : โ„ ร— โ„) (hz : z โˆˆ U) (hp : H z โˆˆ (chartAt Q p).source) : tangentChartPhase p (parameterCurvePhase (n := n) H z) = timeDerivativePhase (fun w โ†ฆ (chartAt Q p) (H w)) z := by have hslice : MDifferentiableAt (๐“˜(โ„, โ„)) (๐“ก n) (fun s โ†ฆ H (s, z.2)) z.1 := ((hH.contMDiffAt (hU.mem_nhds hz)).comp z.1 (contDiff_id.prodMk contDiff_const).contMDiff.contMDiffAt).mdifferentiableAt (by simp) apply Prod.ext ยท rfl ยท exact (hasDerivAt_chart_curve p (fun s โ†ฆ H (s, z.2)) z.1 hp hslice).deriv.symm theorem tangentChartPhase_parameter_contDiffOn (H : โ„ ร— โ„ โ†’ M) (U : Set (โ„ ร— โ„)) (hU : IsOpen U) (hH : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) (๐“ก n) โˆž H U) (p : M) : ContDiffOn โ„ โˆž (fun z โ†ฆ tangentChartPhase p (parameterCurvePhase (n := n) H z)) (U โˆฉ H โปยน' (chartAt Q p).source) := by let ฮฉ := U โˆฉ H โปยน' (chartAt Q p).source have hฮฉ : IsOpen ฮฉ := hH.continuousOn.isOpen_inter_preimage hU (chartAt Q p).open_source have hc : ContDiffOn โ„ โˆž (fun z โ†ฆ (chartAt Q p) (H z)) ฮฉ := (contMDiffOn_chart.comp (hH.mono Set.inter_subset_left) (fun _ hz โ†ฆ hz.2)).contDiffOn apply (timeDerivativePhase_contDiffOn _ ฮฉ hฮฉ hc).congr intro z hz exact tangentChartPhase_parameter_eq H U hU hH p z hz.1 hz.2 end PoincareMT.ReducedLength