import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Exponential.FamilyPhase /-! # The actual smooth square-variation field Differentiate the second parameter of the supplied smooth square family, then restrict its bundled tangent map to parameter zero. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 open scoped Manifold ContDiff Bundle 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} set_option backward.isDefEq.respectTransparency false in theorem squareVariationField_smooth (V : LVariation F T a b p) : let U := (fun s : ℝ ↦ (s, (0 : ℝ))) ⁻¹' V.squareDomain IsOpen U ∧ sqrtParameterInterval a b βŠ† U ∧ ContMDiffOn (π“˜(ℝ, ℝ)) ((𝓑 n).prod (𝓑 n)) ∞ (fun s ↦ (⟨V.baseSquareCurve s, squareVariationField V s⟩ : TangentBundle (𝓑 n) M)) U := by let U := (fun s : ℝ ↦ (s, (0 : ℝ))) ⁻¹' V.squareDomain let f : ℝ Γ— ℝ β†’ M := fun z ↦ V.squareFamily z.1 z.2 have hf : ContMDiffOn (π“˜(ℝ, ℝ Γ— ℝ)) (𝓑 n) ∞ f V.squareDomain := by convert! V.square_smooth using 1 <;> simp only [f, modelWithCornersSelf_prod, chartedSpaceSelf_prod] have hi : ContMDiff (π“˜(ℝ, ℝ)) (π“˜(ℝ, ℝ Γ— ℝ)) ∞ (fun s : ℝ ↦ (s, (0 : ℝ))) := (contDiff_id.prodMk contDiff_const).contMDiff have hzero : (0 : ℝ) ∈ Set.Ioo (-V.radius) V.radius := ⟨neg_lt_zero.mpr V.radius_pos, V.radius_pos⟩ refine ⟨V.square_open.preimage (continuous_id.prodMk continuous_const), fun s hs ↦ V.square_contains ⟨hs, hzero⟩, ?_⟩ exact (familyPhase_contMDiffOn f V.squareDomain V.square_open hf).comp hi.contMDiffOn (fun s (hs : s ∈ U) ↦ hs) end PoincareMT.ReducedLength