import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Minimization.LocalMinimality /-! Adapted from Mapher `PoincareMT/Proofs/M08/MinimizerPath.lean` at `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ /-! # Admissibility and minimality of the regular chart limit Interior C1 regularity identifies the H1 chart action with the actual regularized action. The square-root pullback then gives an admissible path. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open MeasureTheory Set Filter Topology open scoped Manifold ContDiff Bundle intervalIntegral universe u namespace PoincareMT.LGeometry variable {n : β„•} {M : Type u} [MetricSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] [ConnectedSpace M] theorem finite_chart_action_of_interior_regular {J : Set ℝ} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) {m : β„•} (t : Fin (m + 1) β†’ ℝ) (ht : Monotone t) (htime : βˆ€ s ∈ Icc (t 0) (t (Fin.last m)), T - s ^ 2 ∈ J) (Ξ³ : ℝ β†’ M) (hΞ³ : ContinuousOn Ξ³ (Icc (t 0) (t (Fin.last m)))) (hreg : ContMDiffOn (π“˜(ℝ, ℝ)) (𝓑 n) 1 Ξ³ (Ioo (t 0) (t (Fin.last m)))) (x : Fin m β†’ M) (hsrc : βˆ€ i, MapsTo Ξ³ (Icc (t i.castSucc) (t i.succ)) (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) (w : βˆ€ i : Fin m, ChartL2 (EuclideanSpace ℝ (Fin n)) (t i.castSucc) (t i.succ)) (hprimitive : βˆ€ i s, s ∈ Icc (t i.castSucc) (t i.succ) β†’ extChartAt (𝓑 n) (x i) (Ξ³ s) = extChartAt (𝓑 n) (x i) (Ξ³ (t i.castSucc)) + ∫ r in t i.castSucc..s, w i r) : IntervalIntegrable (regularizedLIntegrand F T Ξ³) volume (t 0) (t (Fin.last m)) ∧ (βˆ‘ i, chartH1Action F T (x i) (t i.castSucc) (t i.succ) Ξ³ (w i)) = ∫ s in t 0..t (Fin.last m), regularizedLIntegrand F T Ξ³ s := by have hseg (i : Fin m) : t i.castSucc ≀ t i.succ := ht (Fin.castSucc_le_succ i) have hsub (i : Fin m) : Icc (t i.castSucc) (t i.succ) βŠ† Icc (t 0) (t (Fin.last m)) := Icc_subset_Icc (ht (Fin.zero_le _)) (ht (Fin.le_last _)) have hreg' (i : Fin m) : ContMDiffOn (π“˜(ℝ, ℝ)) (𝓑 n) 1 Ξ³ (Ioo (t i.castSucc) (t i.succ)) := by apply hreg.mono intro s hs exact ⟨(ht (Fin.zero_le _)).trans_lt hs.1, hs.2.trans_le (ht (Fin.le_last _))⟩ have hv (i : Fin m) : (w i : ℝ β†’ EuclideanSpace ℝ (Fin n)) =ᡐ[volume.restrict (Icc (t i.castSucc) (t i.succ))] deriv ((extChartAt (𝓑 n) (x i)) ∘ Ξ³) := by filter_upwards [chart_primitive_ae_hasDerivAt (hseg i) ((extChartAt (𝓑 n) (x i)) ∘ Ξ³) (w i) (hprimitive i)] with s hs exact hs.deriv.symm have hint (i : Fin m) : IntervalIntegrable (regularizedLIntegrand F T Ξ³) volume (t i.castSucc) (t i.succ) := chart_piece_integrable F hM04 T (hseg i) (x i) Ξ³ (hΞ³.mono (hsub i)) (hreg' i) (hsrc i) (fun s hs ↦ htime s (hsub i hs)) (w i) (hv i) obtain ⟨hglobal, hsum⟩ := integrable_sum_fin_partition t (regularizedLIntegrand F T Ξ³) hint refine ⟨hglobal, ?_⟩ calc _ = βˆ‘ i : Fin m, ∫ s in t i.castSucc..t i.succ, regularizedLIntegrand F T Ξ³ s := by apply Finset.sum_congr rfl intro i hi exact chart_piece_action_eq F hM04 T (hseg i) (x i) Ξ³ (hΞ³.mono (hsub i)) (hreg' i) (hsrc i) (fun s hs ↦ htime s (hsub i hs)) (hint i) (w i) (hv i) _ = _ := hsum theorem exists_minimizing_backward_path_of_chart_limit {J : Set ℝ} {F : RicciFlow n M J} {T Ο„max τ₁ Ο„β‚‚ : ℝ} (hM04 : RicciFlowCurvatureTheory.{u}) (hT : T ∈ J) (hwindow : Icc (T - Ο„max) T βŠ† J) (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - Ο„max) T)) (hτ₁ : 0 ≀ τ₁) (hordered : τ₁ < Ο„β‚‚) (hΟ„β‚‚ : Ο„β‚‚ ≀ Ο„max) {m : β„•} (t : Fin (m + 1) β†’ ℝ) (ht : Monotone t) (hta : t 0 = Real.sqrt τ₁) (htb : t (Fin.last m) = Real.sqrt Ο„β‚‚) (Ξ³ : ℝ β†’ M) (hΞ³ : ContinuousOn Ξ³ (Icc (t 0) (t (Fin.last m)))) (hreg : ContMDiffOn (π“˜(ℝ, ℝ)) (𝓑 n) 1 Ξ³ (Ioo (t 0) (t (Fin.last m)))) (p₁ pβ‚‚ : M) (hΞ³a : Ξ³ (Real.sqrt τ₁) = p₁) (hΞ³b : Ξ³ (Real.sqrt Ο„β‚‚) = pβ‚‚) (x : Fin m β†’ M) (hsrc : βˆ€ i, MapsTo Ξ³ (Icc (t i.castSucc) (t i.succ)) (chartAt (EuclideanSpace ℝ (Fin n)) (x i)).source) (w : βˆ€ i : Fin m, ChartL2 (EuclideanSpace ℝ (Fin n)) (t i.castSucc) (t i.succ)) (hprimitive : βˆ€ i s, s ∈ Icc (t i.castSucc) (t i.succ) β†’ extChartAt (𝓑 n) (x i) (Ξ³ s) = extChartAt (𝓑 n) (x i) (Ξ³ (t i.castSucc)) + ∫ r in t i.castSucc..s, w i r) (hmin : (βˆ‘ i, chartH1Action F T (x i) (t i.castSucc) (t i.succ) Ξ³ (w i)) ≀ sInf (backwardActionValues F T τ₁ Ο„β‚‚ p₁ pβ‚‚)) : βˆƒ p : BackwardTimePath F T τ₁ Ο„β‚‚, p.curve τ₁ = p₁ ∧ p.curve Ο„β‚‚ = pβ‚‚ ∧ IsMinimizingBackwardLPath F T τ₁ Ο„β‚‚ p ∧ backwardLLength F T τ₁ Ο„β‚‚ p.curve = sInf (backwardActionValues F T τ₁ Ο„β‚‚ p₁ pβ‚‚) ∧ βˆ€ Ο„, p.curve Ο„ = Ξ³ (Real.sqrt Ο„) := by have htime (Ο„ : ℝ) (hΟ„ : Ο„ ∈ Icc τ₁ Ο„β‚‚) : T - Ο„ ∈ J := hwindow (backwardTime_mem_window hτ₁ hΟ„β‚‚ hΟ„) have htimesq (s : ℝ) (hs : s ∈ Icc (t 0) (t (Fin.last m))) : T - s ^ 2 ∈ J := by rw [hta, htb] at hs have hsn : 0 ≀ s := (Real.sqrt_nonneg τ₁).trans hs.1 apply htime constructor Β· simpa only [Real.sq_sqrt hτ₁] using (sq_le_sqβ‚€ (Real.sqrt_nonneg τ₁) hsn).mpr hs.1 Β· simpa only [Real.sq_sqrt (hτ₁.trans hordered.le)] using (sq_le_sqβ‚€ hsn (Real.sqrt_nonneg Ο„β‚‚)).mpr hs.2 obtain ⟨hint, hact⟩ := finite_chart_action_of_interior_regular F hM04 T t ht htimesq Ξ³ hΞ³ hreg x hsrc w hprimitive have hcont : ContinuousOn Ξ³ (Icc (Real.sqrt τ₁) (Real.sqrt Ο„β‚‚)) := by simpa only [hta, htb] using hΞ³ have hregular : ContMDiffOn (π“˜(ℝ, ℝ)) (𝓑 n) 1 Ξ³ (Ioo (Real.sqrt τ₁) (Real.sqrt Ο„β‚‚)) := by simpa only [hta, htb] using hreg have hintegrable : IntervalIntegrable (regularizedLIntegrand F T Ξ³) volume (Real.sqrt τ₁) (Real.sqrt Ο„β‚‚) := by simpa only [hta, htb] using hint let p := backwardPathOfSqrt F T τ₁ Ο„β‚‚ hτ₁ hordered hT htime Ξ³ hcont hregular hintegrable have hpa : p.curve τ₁ = p₁ := hΞ³a have hpb : p.curve Ο„β‚‚ = pβ‚‚ := hΞ³b have hpact : backwardLLength F T τ₁ Ο„β‚‚ p.curve = βˆ‘ i, chartH1Action F T (x i) (t i.castSucc) (t i.succ) Ξ³ (w i) := by rw [backwardPathOfSqrt_action] simpa only [regularizedLAction, hta, htb] using hact.symm have hple : backwardLLength F T τ₁ Ο„β‚‚ p.curve ≀ sInf (backwardActionValues F T τ₁ Ο„β‚‚ p₁ pβ‚‚) := hpact.trans_le hmin have hbdd : BddBelow (backwardActionValues F T τ₁ Ο„β‚‚ p₁ pβ‚‚) := backwardActionValues_bddBelow hM04 hcurvature hΟ„β‚‚ p₁ pβ‚‚ have hpeq : backwardLLength F T τ₁ Ο„β‚‚ p.curve = sInf (backwardActionValues F T τ₁ Ο„β‚‚ p₁ pβ‚‚) := le_antisymm hple (csInf_le hbdd ⟨p, hpa, hpb, rfl⟩) refine ⟨p, hpa, hpb, ?_, hpeq, fun _ ↦ rfl⟩ intro q hqa hqb exact hple.trans (csInf_le hbdd ⟨q, hqa.trans hpa, hqb.trans hpb, rfl⟩) end PoincareMT.LGeometry