import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Variation.Extension.BackwardEulerTransport import Mathlib.Geometry.Manifold.PartitionOfUnity /-! Adapted from Mapher `PoincareMT/Proofs/M08/GlobalCurveExtension.lean` at `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ /-! # Gluing parametric extensions over an open time interval All local finiteness is taken in the parameter. The manifold itself needs no compactness or paracompactness assumption. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false noncomputable section open Set Filter open scoped Manifold ContDiff Bundle Topology universe u v namespace PoincareMT.LGeometry variable {ΞΉ : Type v} def timePartitionWeight (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (i : ΞΉ) (s : ℝ) : ℝ := by classical exact if hs : s ∈ I then ρ i ⟨s, hs⟩ else 0 @[simp] theorem timePartitionWeight_coe (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (i : ΞΉ) (s : I) : timePartitionWeight I ρ i s = ρ i s := by simp only [timePartitionWeight, dif_pos s.property] theorem timePartitionWeight_contDiffAt (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (i : ΞΉ) (s : I) : ContDiffAt ℝ ∞ (timePartitionWeight I ρ i) (s : ℝ) := by apply ContMDiffAt.contDiffAt apply (contMDiffAt_subtype_iff (U := I) (x := s)).mp have heq : (fun t : I ↦ timePartitionWeight I ρ i (t : ℝ)) = fun t ↦ ρ i t := by funext t exact timePartitionWeight_coe I ρ i t rw [heq] exact (ρ i).contMDiff.contMDiffAt theorem timePartitionWeight_eventually_support_subset (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (s : I) : βˆ€αΆ  t : ℝ in 𝓝 (s : ℝ), βˆ€ i, timePartitionWeight I ρ i t β‰  0 β†’ i ∈ ρ.fintsupport s := by have hrel : βˆ€αΆ  t : I in 𝓝 s, βˆ€ i, timePartitionWeight I ρ i (t : ℝ) β‰  0 β†’ i ∈ ρ.fintsupport s := by filter_upwards [ρ.eventually_finsupport_subset s] with t ht intro i hi apply ht apply (ρ.mem_finsupport t).mpr simpa only [timePartitionWeight_coe, Function.mem_support] using hi have hw := (eventually_nhds_subtype_iff (I : Set ℝ) s (fun t ↦ βˆ€ i, timePartitionWeight I ρ i t β‰  0 β†’ i ∈ ρ.fintsupport s)).mp hrel simpa only [nhdsWithin_eq_nhds.mpr (I.isOpen.mem_nhds s.property)] using hw theorem timePartitionWeight_sum_eq_one (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (s : I) {S : Finset ΞΉ} (hS : βˆ€ i, timePartitionWeight I ρ i (s : ℝ) β‰  0 β†’ i ∈ S) : βˆ‘ i ∈ S, timePartitionWeight I ρ i (s : ℝ) = 1 := by have hsub : ρ.finsupport s βŠ† S := by intro i hi apply hS simpa only [timePartitionWeight_coe, Function.mem_support] using (ρ.mem_finsupport s).mp hi simpa only [timePartitionWeight_coe] using ρ.sum_finsupport' s (mem_univ s) hsub theorem timePartitionWeight_eventually_sum_eq_one (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (s : I) : (fun t : ℝ ↦ βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i t) =αΆ [𝓝 (s : ℝ)] fun _ ↦ (1 : ℝ) := by filter_upwards [I.isOpen.mem_nhds s.property, timePartitionWeight_eventually_support_subset I ρ s] with t ht hsub exact timePartitionWeight_sum_eq_one I ρ ⟨t, ht⟩ hsub theorem timePartitionWeight_sum_deriv (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (s : I) : βˆ‘ i ∈ ρ.fintsupport s, deriv (timePartitionWeight I ρ i) (s : ℝ) = 0 := by have hd := HasDerivAt.fun_sum (u := ρ.fintsupport s) (fun i _ ↦ ((timePartitionWeight_contDiffAt I ρ i s).differentiableAt (by norm_num)).hasDerivAt) exact hd.unique ((hasDerivAt_const (s : ℝ) (1 : ℝ)).congr_of_eventuallyEq (timePartitionWeight_eventually_sum_eq_one I ρ s)) variable {M : Type u} [TopologicalSpace M] def curveGluingRelativeDomain (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (D : ΞΉ β†’ Set (ℝ Γ— M)) : Set (I Γ— M) := (⋃ i, Prod.fst ⁻¹' tsupport (ρ i) ∩ (fun z : I Γ— M ↦ ((z.1 : ℝ), z.2)) ⁻¹' (D i)ᢜ)ᢜ omit [TopologicalSpace M] in theorem mem_curveGluingRelativeDomain (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (D : ΞΉ β†’ Set (ℝ Γ— M)) {z : I Γ— M} : z ∈ curveGluingRelativeDomain I ρ D ↔ βˆ€ i, z.1 ∈ tsupport (ρ i) β†’ ((z.1 : ℝ), z.2) ∈ D i := by simp only [curveGluingRelativeDomain, mem_compl_iff, mem_iUnion, mem_inter_iff, mem_preimage, not_exists, not_and, not_not] theorem curveGluingRelativeDomain_open (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (D : ΞΉ β†’ Set (ℝ Γ— M)) (hD : βˆ€ i, IsOpen (D i)) : IsOpen (curveGluingRelativeDomain I ρ D) := by have hinc : Continuous (fun z : I Γ— M ↦ ((z.1 : ℝ), z.2)) := (continuous_subtype_val.comp continuous_fst).prodMk continuous_snd have hfinite : LocallyFinite (fun i ↦ Prod.fst ⁻¹' tsupport (ρ i) ∩ (fun z : I Γ— M ↦ ((z.1 : ℝ), z.2)) ⁻¹' (D i)ᢜ) := ((ρ.toPartitionOfUnity.locallyFinite_tsupport).preimage_continuous continuous_fst).subset (fun _ ↦ inter_subset_left) exact (hfinite.isClosed_iUnion (fun i ↦ ((isClosed_tsupport _).preimage continuous_fst).inter ((hD i).isClosed_compl.preimage hinc))).isOpen_compl def curveGluingDomain (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (D : ΞΉ β†’ Set (ℝ Γ— M)) : Set (ℝ Γ— M) := (fun z : I Γ— M ↦ ((z.1 : ℝ), z.2)) '' curveGluingRelativeDomain I ρ D theorem curveGluingDomain_open (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (D : ΞΉ β†’ Set (ℝ Γ— M)) (hD : βˆ€ i, IsOpen (D i)) : IsOpen (curveGluingDomain I ρ D) := (I.isOpen.isOpenMap_subtype_val.prodMap IsOpenMap.id) _ (curveGluingRelativeDomain_open I ρ D hD) omit [TopologicalSpace M] in theorem curveGluingDomain_graph_mem (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (D : ΞΉ β†’ Set (ℝ Γ— M)) (Ξ³ : ℝ β†’ M) (hgraph : βˆ€ (s : I) i, s ∈ tsupport (ρ i) β†’ ((s : ℝ), Ξ³ s) ∈ D i) (s : I) : ((s : ℝ), Ξ³ s) ∈ curveGluingDomain I ρ D := by refine ⟨(s, Ξ³ s), ?_, rfl⟩ exact (mem_curveGluingRelativeDomain I ρ D).mpr (hgraph s) variable {n : β„•} [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] theorem contMDiffAt_sum_parametric (S : Finset ΞΉ) (A : ΞΉ β†’ ℝ β†’ (x : M) β†’ TangentSpace (𝓑 n) x) {z : ℝ Γ— M} (hA : βˆ€ i ∈ S, ContMDiffAt ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) ∞ (fun w : ℝ Γ— M ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) w.2 (A i w.1 w.2)) z) : ContMDiffAt ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) ∞ (fun w : ℝ Γ— M ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) w.2 (βˆ‘ i ∈ S, A i w.1 w.2)) z := by let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓑 n)) z.2 apply Bundle.contMDiffAt_totalSpace.mpr refine ⟨contMDiffAt_snd, ?_⟩ have hc : βˆ€ i ∈ S, ContMDiffAt ((π“˜(ℝ, ℝ)).prod (𝓑 n)) (𝓑 n) ∞ (fun w : ℝ Γ— M ↦ (e ⟨w.2, A i w.1 w.2⟩).2) z := fun i hi ↦ (Bundle.contMDiffAt_totalSpace.mp (hA i hi)).2 apply (contMDiffAt_finsetSum hc).congr_of_eventuallyEq have hnear : βˆ€αΆ  w : ℝ Γ— M in 𝓝 z, w.2 ∈ e.baseSet := continuous_snd.continuousAt (e.open_baseSet.mem_nhds (mem_baseSet_trivializationAt _ _ _)) filter_upwards [hnear] with w hw change (e ⟨w.2, βˆ‘ i ∈ S, A i w.1 w.2⟩).2 = βˆ‘ i ∈ S, (e ⟨w.2, A i w.1 w.2⟩).2 simp only [← e.continuousLinearMapAt_apply_of_mem ℝ hw, map_sum] def parametricWeightedSum (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (A : ΞΉ β†’ ℝ β†’ (x : M) β†’ TangentSpace (𝓑 n) x) (s : ℝ) (x : M) : TangentSpace (𝓑 n) x := βˆ‘αΆ  i, timePartitionWeight I ρ i s β€’ A i s x omit [IsManifold (𝓑 n) ∞ M] in theorem parametricWeightedSum_eq_sum (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (A : ΞΉ β†’ ℝ β†’ (x : M) β†’ TangentSpace (𝓑 n) x) {s : ℝ} (x : M) {S : Finset ΞΉ} (hS : βˆ€ i, timePartitionWeight I ρ i s β‰  0 β†’ i ∈ S) : parametricWeightedSum I ρ A s x = βˆ‘ i ∈ S, timePartitionWeight I ρ i s β€’ A i s x := by apply finsum_eq_sum_of_support_subset intro i hi apply hS intro hz exact hi (by simp only [hz, zero_smul]) omit [IsManifold (𝓑 n) ∞ M] in theorem parametricWeightedSum_eventually_eq_sum (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (A : ΞΉ β†’ ℝ β†’ (x : M) β†’ TangentSpace (𝓑 n) x) (s : I) : βˆ€αΆ  t : ℝ in 𝓝 (s : ℝ), βˆ€ x : M, parametricWeightedSum I ρ A t x = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i t β€’ A i t x := by filter_upwards [timePartitionWeight_eventually_support_subset I ρ s] with t ht exact fun x ↦ parametricWeightedSum_eq_sum I ρ A x ht omit [IsManifold (𝓑 n) ∞ M] in theorem curveVelocityWithin_eq_of_open {Ξ± : ℝ β†’ M} {I U : Set ℝ} {s : ℝ} (hI : IsOpen I) (hU : IsOpen U) (hsI : s ∈ I) (hsU : s ∈ U) : curveVelocityWithin (n := n) Ξ± I s = curveVelocityWithin (n := n) Ξ± U s := by unfold curveVelocityWithin rw [mfderivWithin_of_mem_nhds (hI.mem_nhds hsI), mfderivWithin_of_mem_nhds (hU.mem_nhds hsU)] theorem connection_sum_parametric {g : RiemannianMetric n M} (D : LeviCivitaData g) (S : Finset ΞΉ) (A : ΞΉ β†’ ℝ β†’ (x : M) β†’ TangentSpace (𝓑 n) x) {s : ℝ} {x : M} (hA : βˆ€ i ∈ S, MDifferentiableAt (𝓑 n) ((𝓑 n).prod (𝓑 n)) (fun y ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) y (A i s y)) x) : D.connection (fun y ↦ βˆ‘ i ∈ S, A i s y) x = βˆ‘ i ∈ S, D.connection (A i s) x := by classical induction S using Finset.induction_on with | empty => simp only [Finset.sum_empty] change D.connection 0 x = 0 exact D.connection.isCovariantDerivativeOn.zero | @insert i S hi ih => have hAi := hA i (Finset.mem_insert_self i S) have hAS := fun j hj ↦ hA j (Finset.mem_insert_of_mem hj) have hsection : (fun y ↦ βˆ‘ j ∈ insert i S, A j s y) = (fun y ↦ A i s y) + (fun y ↦ βˆ‘ j ∈ S, A j s y) := by funext y exact Finset.sum_insert hi rw [hsection, D.connection.isCovariantDerivativeOn.add hAi (MDifferentiableAt.sum_section hAS), ih hAS, Finset.sum_insert hi] /-- Time weights glue the local extensions on an actual open graph neighborhood. -/ def gluedParametricExtension (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (U : ΞΉ β†’ Set ℝ) (hU : βˆ€ i, IsOpen (U i)) (Ξ± : ℝ β†’ M) (E : βˆ€ i, ParametricAlongCurveExtensionOn (U i) Ξ± (curveVelocityWithin (n := n) Ξ± (U i))) (hρ : ρ.IsSubordinate (fun i ↦ (Subtype.val : I β†’ ℝ) ⁻¹' U i)) : ParametricAlongCurveExtensionOn (I : Set ℝ) Ξ± (curveVelocityWithin (n := n) Ξ± I) where extension := parametricWeightedSum I ρ (fun i ↦ (E i).extension) domain := curveGluingDomain I ρ (fun i ↦ (E i).domain) open_domain := curveGluingDomain_open I ρ _ (fun i ↦ (E i).open_domain) graph_mem s hs := curveGluingDomain_graph_mem I ρ _ Ξ± (fun t i ht ↦ (E i).graph_mem t (hρ i ht)) ⟨s, hs⟩ smooth z hz := by rcases hz with ⟨⟨s, x⟩, hz, rfl⟩ have hdomain := (mem_curveGluingRelativeDomain I ρ (fun i ↦ (E i).domain)).mp hz have hpieces : βˆ€ i ∈ ρ.fintsupport s, ContMDiffAt ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ((𝓑 n).prod (𝓑 n)) ∞ (fun w : ℝ Γ— M ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) w.2 (timePartitionWeight I ρ i w.1 β€’ (E i).extension w.1 w.2)) ((s : ℝ), x) := by intro i hi exact parametricExtension_contMDiffAt_smul_reparam (E i) (f := id) (hdomain i ((ρ.mem_fintsupport_iff s i).mp hi)) contDiffAt_id (timePartitionWeight_contDiffAt I ρ i s) have hsum := contMDiffAt_sum_parametric (ρ.fintsupport s) (fun i r y ↦ timePartitionWeight I ρ i r β€’ (E i).extension r y) hpieces apply ContMDiffAt.contMDiffWithinAt apply hsum.congr_of_eventuallyEq have hnear : βˆ€αΆ  w : ℝ Γ— M in 𝓝 ((s : ℝ), x), βˆ€ y : M, parametricWeightedSum I ρ (fun i ↦ (E i).extension) w.1 y = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i w.1 β€’ (E i).extension w.1 y := (continuous_fst.continuousAt : ContinuousAt (Prod.fst : ℝ Γ— M β†’ ℝ) ((s : ℝ), x)).eventually (parametricWeightedSum_eventually_eq_sum I ρ (fun i ↦ (E i).extension) s) filter_upwards [hnear] with w hw exact congrArg (fun v : TangentSpace (𝓑 n) w.2 ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) w.2 v) (hw w.2) agrees Ο„ hΟ„ := by let s : I := βŸ¨Ο„, hΟ„βŸ© have hS := (timePartitionWeight_eventually_support_subset I ρ s).self_of_nhds rw [parametricWeightedSum_eq_sum I ρ (fun i ↦ (E i).extension) (Ξ± Ο„) hS] calc (βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i Ο„ β€’ (E i).extension Ο„ (Ξ± Ο„)) = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i Ο„ β€’ curveVelocityWithin (n := n) Ξ± I Ο„ := by apply Finset.sum_congr rfl intro i hi have hΟ„U : Ο„ ∈ U i := hρ i ((ρ.mem_fintsupport_iff s i).mp hi) rw [(E i).agrees Ο„ hΟ„U, ← curveVelocityWithin_eq_of_open I.isOpen (hU i) hΟ„ hΟ„U] _ = (βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i Ο„) β€’ curveVelocityWithin (n := n) Ξ± I Ο„ := (Finset.sum_smul ..).symm _ = curveVelocityWithin (n := n) Ξ± I Ο„ := by rw [timePartitionWeight_sum_eq_one I ρ s hS, one_smul] theorem parametricWeightedSum_deriv (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (U : ΞΉ β†’ Set ℝ) (Ξ± : ℝ β†’ M) (E : βˆ€ i, ParametricAlongCurveExtensionOn (U i) Ξ± (curveVelocityWithin (n := n) Ξ± (U i))) (s : I) (x : M) (hmem : βˆ€ i ∈ ρ.fintsupport s, ((s : ℝ), x) ∈ (E i).domain) : deriv (fun r ↦ parametricWeightedSum I ρ (fun i ↦ (E i).extension) r x) (s : ℝ) = βˆ‘ i ∈ ρ.fintsupport s, (timePartitionWeight I ρ i (s : ℝ) β€’ deriv (fun r ↦ (E i).extension r x) (s : ℝ) + deriv (timePartitionWeight I ρ i) (s : ℝ) β€’ (E i).extension s x) := by let : NormedAddCommGroup (TangentSpace (𝓑 n) x) := inferInstanceAs (NormedAddCommGroup (EuclideanSpace ℝ (Fin n))) let : NormedSpace ℝ (TangentSpace (𝓑 n) x) := inferInstanceAs (NormedSpace ℝ (EuclideanSpace ℝ (Fin n))) have hderiv : βˆ€ i ∈ ρ.fintsupport s, HasDerivAt (fun r ↦ timePartitionWeight I ρ i r β€’ (E i).extension r x) (timePartitionWeight I ρ i (s : ℝ) β€’ deriv (fun r ↦ (E i).extension r x) (s : ℝ) + deriv (timePartitionWeight I ρ i) (s : ℝ) β€’ (E i).extension s x) (s : ℝ) := by intro i hi have hc := ((timePartitionWeight_contDiffAt I ρ i s).differentiableAt (by norm_num)).hasDerivAt have hE := (parametricExtension_differentiableAt_time (E i) (hmem i hi)).hasDerivAt simpa only [Pi.smul_def'] using hc.smul hE have hnear : (fun r ↦ parametricWeightedSum I ρ (fun i ↦ (E i).extension) r x) =αΆ [𝓝 (s : ℝ)] fun r ↦ βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i r β€’ (E i).extension r x := (parametricWeightedSum_eventually_eq_sum I ρ (fun i ↦ (E i).extension) s).mono (fun _ hr ↦ hr x) exact ((HasDerivAt.fun_sum hderiv).congr_of_eventuallyEq hnear).deriv theorem parametricWeightedSum_connection (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (U : ΞΉ β†’ Set ℝ) (Ξ± : ℝ β†’ M) (E : βˆ€ i, ParametricAlongCurveExtensionOn (U i) Ξ± (curveVelocityWithin (n := n) Ξ± (U i))) (s : I) (x : M) (hmem : βˆ€ i ∈ ρ.fintsupport s, ((s : ℝ), x) ∈ (E i).domain) {g : RiemannianMetric n M} (D : LeviCivitaData g) (X : TangentSpace (𝓑 n) x) : D.connection (parametricWeightedSum I ρ (fun i ↦ (E i).extension) s) x X = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) β€’ D.connection ((E i).extension s) x X := by have hS := (timePartitionWeight_eventually_support_subset I ρ s).self_of_nhds have hsection : parametricWeightedSum I ρ (fun i ↦ (E i).extension) s = fun y ↦ βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) β€’ (E i).extension s y := by funext y exact parametricWeightedSum_eq_sum I ρ (fun i ↦ (E i).extension) y hS have hspace : βˆ€ i ∈ ρ.fintsupport s, MDifferentiableAt (𝓑 n) ((𝓑 n).prod (𝓑 n)) (fun y ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) y ((E i).extension s y)) x := fun i hi ↦ (parametricExtension_contMDiffAt_space (E i) (hmem i hi)).mdifferentiableAt (by norm_num) have hscaled : βˆ€ i ∈ ρ.fintsupport s, MDifferentiableAt (𝓑 n) ((𝓑 n).prod (𝓑 n)) (fun y ↦ Bundle.TotalSpace.mk' (EuclideanSpace ℝ (Fin n)) y (timePartitionWeight I ρ i (s : ℝ) β€’ (E i).extension s y)) x := fun i hi ↦ (hspace i hi).smul_const_section rw [hsection, connection_sum_parametric D (ρ.fintsupport s) (fun i r y ↦ timePartitionWeight I ρ i r β€’ (E i).extension r y) hscaled] simp only [sum_apply] apply Finset.sum_congr rfl intro i hi have hc := D.connection.isCovariantDerivativeOn.smul_const (timePartitionWeight I ρ i (s : ℝ)) (hspace i hi) exact congrArg (fun L : TangentSpace (𝓑 n) x β†’L[ℝ] TangentSpace (𝓑 n) x ↦ L X) hc theorem gluedParametricExtension_pullback {J : Set ℝ} (F : RicciFlow n M J) (time : ℝ β†’ ℝ) (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (U : ΞΉ β†’ Set ℝ) (hU : βˆ€ i, IsOpen (U i)) (Ξ± : ℝ β†’ M) (E : βˆ€ i, ParametricAlongCurveExtensionOn (U i) Ξ± (curveVelocityWithin (n := n) Ξ± (U i))) (hρ : ρ.IsSubordinate (fun i ↦ (Subtype.val : I β†’ ℝ) ⁻¹' U i)) (s : I) : pullbackCovariantDerivative F time Ξ± (curveVelocityWithin (n := n) Ξ± I) I (gluedParametricExtension I ρ U hU Ξ± E hρ) s = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) β€’ pullbackCovariantDerivative F time Ξ± (curveVelocityWithin (n := n) Ξ± (U i)) (U i) (E i) s := by have hlocal : βˆ€ i ∈ ρ.fintsupport s, (s : ℝ) ∈ U i := fun i hi ↦ hρ i ((ρ.mem_fintsupport_iff s i).mp hi) have hmem := fun i hi ↦ (E i).graph_mem s (hlocal i hi) have hvelocity : βˆ€ i ∈ ρ.fintsupport s, curveVelocityWithin (n := n) Ξ± (U i) s = curveVelocityWithin (n := n) Ξ± I s := fun i hi ↦ (curveVelocityWithin_eq_of_open I.isOpen (hU i) s.property (hlocal i hi)).symm have hagrees : βˆ€ i ∈ ρ.fintsupport s, (E i).extension s (Ξ± s) = curveVelocityWithin (n := n) Ξ± I s := fun i hi ↦ ((E i).agrees s (hlocal i hi)).trans (hvelocity i hi) have hcancel : (βˆ‘ i ∈ ρ.fintsupport s, deriv (timePartitionWeight I ρ i) (s : ℝ) β€’ (E i).extension s (Ξ± s)) = 0 := by calc _ = βˆ‘ i ∈ ρ.fintsupport s, deriv (timePartitionWeight I ρ i) (s : ℝ) β€’ curveVelocityWithin (n := n) Ξ± I s := Finset.sum_congr rfl (fun i hi ↦ congrArg (fun v ↦ deriv (timePartitionWeight I ρ i) (s : ℝ) β€’ v) (hagrees i hi)) _ = (βˆ‘ i ∈ ρ.fintsupport s, deriv (timePartitionWeight I ρ i) (s : ℝ)) β€’ curveVelocityWithin (n := n) Ξ± I s := (Finset.sum_smul ..).symm _ = 0 := by rw [timePartitionWeight_sum_deriv, zero_smul] simp only [pullbackCovariantDerivative, gluedParametricExtension] rw [parametricWeightedSum_deriv I ρ U Ξ± E s (Ξ± s) hmem, parametricWeightedSum_connection I ρ U Ξ± E s (Ξ± s) hmem, Finset.sum_add_distrib, hcancel, add_zero, ← Finset.sum_add_distrib] apply Finset.sum_congr rfl intro i hi rw [hvelocity i hi, smul_add] theorem gluedParametricExtension_equation {J : Set ℝ} (F : RicciFlow n M J) (T : ℝ) (I : TopologicalSpace.Opens ℝ) (ρ : SmoothPartitionOfUnity ΞΉ (π“˜(ℝ, ℝ)) I univ) (U : ΞΉ β†’ Set ℝ) (hU : βˆ€ i, IsOpen (U i)) (Ξ± : ℝ β†’ M) (E : βˆ€ i, ParametricAlongCurveExtensionOn (U i) Ξ± (curveVelocityWithin (n := n) Ξ± (U i))) (hρ : ρ.IsSubordinate (fun i ↦ (Subtype.val : I β†’ ℝ) ⁻¹' U i)) (heq : βˆ€ i r, r ∈ U i β†’ regularizedLGeodesicEquation F T Ξ± (U i) (E i) r) (s : I) : regularizedLGeodesicEquation F T Ξ± I (gluedParametricExtension I ρ U hU Ξ± E hρ) s := by intro W let G := (F.metric (T - (s : ℝ) ^ 2)).inner (Ξ± s) let V (i : ΞΉ) := pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) Ξ± (curveVelocityWithin (n := n) Ξ± (U i)) (U i) (E i) s let R := scalarCurvatureDifferential F (fun r ↦ T - r ^ 2) Ξ± s W let C := 4 * (s : ℝ) * (F.connection (T - (s : ℝ) ^ 2)).ricci (Ξ± s) (curveVelocityWithin (n := n) Ξ± I s) W let B := 2 * (s : ℝ) ^ 2 * R - C have hS := (timePartitionWeight_eventually_support_subset I ρ s).self_of_nhds have hinnerLocal : βˆ€ i ∈ ρ.fintsupport s, G (V i) W = B := by intro i hi have hsU : (s : ℝ) ∈ U i := hρ i ((ρ.mem_fintsupport_iff s i).mp hi) have h := heq i s hsU W unfold regularizedEulerResidual at h rw [← curveVelocityWithin_eq_of_open I.isOpen (hU i) s.property hsU] at h change G (V i) W - 2 * (s : ℝ) ^ 2 * R + C = 0 at h dsimp only [B] linarith have hmetric : G (βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) β€’ V i) W = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) * G (V i) W := by rw [map_sum] simp only [sum_apply] apply Finset.sum_congr rfl intro i hi rw [G.map_smul] rfl have hinner : G (pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) Ξ± (curveVelocityWithin (n := n) Ξ± I) I (gluedParametricExtension I ρ U hU Ξ± E hρ) s) W = B := by rw [gluedParametricExtension_pullback F (fun r ↦ T - r ^ 2) I ρ U hU Ξ± E hρ s] change G (βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) β€’ V i) W = B rw [hmetric] calc (βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) * G (V i) W) = βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ) * B := Finset.sum_congr rfl (fun i hi ↦ congrArg (fun r ↦ timePartitionWeight I ρ i (s : ℝ) * r) (hinnerLocal i hi)) _ = (βˆ‘ i ∈ ρ.fintsupport s, timePartitionWeight I ρ i (s : ℝ)) * B := (Finset.sum_mul ..).symm _ = B := by rw [timePartitionWeight_sum_eq_one I ρ s hS, one_mul] change G (pullbackCovariantDerivative F (fun r ↦ T - r ^ 2) Ξ± (curveVelocityWithin (n := n) Ξ± I) I (gluedParametricExtension I ρ U hU Ξ± E hρ) s) W - 2 * (s : ℝ) ^ 2 * R + C = 0 rw [hinner] dsimp only [B] ring /-- Local Euler extensions give one actual extension on the full open parameter set. -/ theorem exists_regularizedEuler_extension_of_local {J : Set ℝ} (F : RicciFlow n M J) (T : ℝ) {I : Set ℝ} (hI : IsOpen I) (Ξ± : ℝ β†’ M) (hloc : βˆ€ s ∈ I, βˆƒ U : Set ℝ, IsOpen U ∧ s ∈ U ∧ U βŠ† I ∧ βˆƒ E : ParametricAlongCurveExtensionOn U Ξ± (curveVelocityWithin (n := n) Ξ± U), βˆ€ r ∈ U, regularizedLGeodesicEquation F T Ξ± U E r) : βˆƒ E : ParametricAlongCurveExtensionOn I Ξ± (curveVelocityWithin (n := n) Ξ± I), βˆ€ s ∈ I, regularizedLGeodesicEquation F T Ξ± I E s := by classical let O : TopologicalSpace.Opens ℝ := ⟨I, hI⟩ let : LocallyCompactSpace O := O.isOpen.locallyCompactSpace choose U hU hsU _hsub E heq using fun s : O ↦ hloc s s.property have hcover : (univ : Set O) βŠ† ⋃ i : O, (Subtype.val : O β†’ ℝ) ⁻¹' U i := by intro s _ exact mem_iUnion.mpr ⟨s, hsU s⟩ obtain ⟨ρ, hρ⟩ : βˆƒ ρ : SmoothPartitionOfUnity O (π“˜(ℝ, ℝ)) O univ, ρ.IsSubordinate (fun i ↦ (Subtype.val : O β†’ ℝ) ⁻¹' U i) := SmoothPartitionOfUnity.exists_isSubordinate (π“˜(ℝ, ℝ)) isClosed_univ _ (fun i ↦ (hU i).preimage continuous_subtype_val) hcover refine ⟨gluedParametricExtension O ρ U hU Ξ± E hρ, ?_⟩ intro s hs exact gluedParametricExtension_equation F T O ρ U hU Ξ± E hρ heq ⟨s, hs⟩ end PoincareMT.LGeometry