import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Variation.Fields.VariationRegularField import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Calculus.SmoothPartials /-! # Coordinate representatives of actual variation fields On the open chart preimage the derivative of the second parameter is smooth and represents the actual square-variation field. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 set_option maxHeartbeats 800000 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] {J : Set โ„} {F : RicciFlow n M J} {T a b : โ„} {p : BackwardTimePath F T a b} local notation "E" => EuclideanSpace โ„ (Fin n) set_option backward.isDefEq.respectTransparency false in theorem squareVariationField_chart_smooth (V : LVariation F T a b p) (x0 : M) : let H : โ„ ร— โ„ โ†’ M := fun z โ†ฆ V.squareFamily z.1 z.2 let ฮฉ := V.squareDomain โˆฉ H โปยน' (chartAt E x0).source let U := (fun r : โ„ โ†ฆ (r, (0 : โ„))) โปยน' ฮฉ let v : โ„ โ†’ E := fun r โ†ฆ deriv (fun u โ†ฆ (chartAt E x0) (V.squareFamily r u)) 0 IsOpen U โˆง ContMDiffOn (๐“˜(โ„, โ„)) (๐“ก n) โˆž V.baseSquareCurve U โˆง (โˆ€ r โˆˆ U, V.baseSquareCurve r โˆˆ (chartAt E x0).source) โˆง ContDiffOn โ„ โˆž v U โˆง โˆ€ r โˆˆ U, chartVectorField x0 (v r) (V.baseSquareCurve r) = squareVariationField V r := by let H : โ„ ร— โ„ โ†’ M := fun z โ†ฆ V.squareFamily z.1 z.2 let ฮฉ := V.squareDomain โˆฉ H โปยน' (chartAt E x0).source let U := (fun r : โ„ โ†ฆ (r, (0 : โ„))) โปยน' ฮฉ let f : โ„ ร— โ„ โ†’ E := fun z โ†ฆ (chartAt E x0) (H z) let v : โ„ โ†’ E := fun r โ†ฆ deriv (fun u โ†ฆ f (r, u)) 0 have hH : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) (๐“ก n) โˆž H V.squareDomain := by convert! V.square_smooth using 1 <;> simp only [modelWithCornersSelf_prod, chartedSpaceSelf_prod] have hฮฉ : IsOpen ฮฉ := hH.continuousOn.isOpen_inter_preimage V.square_open (chartAt E x0).open_source have hf : ContDiffOn โ„ โˆž f ฮฉ := (contMDiffOn_chart.comp (hH.mono Set.inter_subset_left) (fun z hz โ†ฆ hz.2)).contDiffOn have hi : ContDiff โ„ โˆž (fun r : โ„ โ†ฆ (r, (0 : โ„))) := contDiff_id.prodMk contDiff_const have hbase : ContMDiffOn (๐“˜(โ„, โ„)) (๐“ก n) โˆž V.baseSquareCurve U := hH.comp hi.contMDiff.contMDiffOn (fun r hr โ†ฆ hr.1) have hv : ContDiffOn โ„ โˆž v U := (contDiffOn_slice_deriv_snd f ฮฉ hฮฉ hf).comp hi.contDiffOn (fun r hr โ†ฆ hr) refine โŸจhฮฉ.preimage hi.continuous, hbase, fun r hr โ†ฆ hr.2, hv, ?_โŸฉ intro r hr have hsmooth : ContMDiffAt (๐“˜(โ„, โ„)) (๐“ก n) โˆž (V.squareFamily r) 0 := (hH.contMDiffAt (V.square_open.mem_nhds hr.1)).comp 0 ((contDiff_const.prodMk contDiff_id).contMDiff.contMDiffAt) have hd : HasDerivAt (fun u โ†ฆ (chartAt E x0) (V.squareFamily r u)) (v r) 0 := (hasDerivAt_slice_snd f r 0 ((hf.contDiffAt (hฮฉ.mem_nhds hr)).differentiableAt (by simp))).differentiableAt.hasDerivAt exact chartVectorField_coordinate_velocity x0 (V.squareFamily r) 0 (v r) hr.2 (hsmooth.mdifferentiableAt (by simp)) hd end PoincareMT.ReducedLength