import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variation.Frame.Scaled import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variation.Second.Field import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.Variation.Geometry.TraceIntegral /-! # The index trace at a free-endpoint surface minimum Actual smooth adapted fields are scaled, realized as variations, and traced. The resulting nonnegative integral gives the curvature-plus-minimum estimate. Morgan--Tian, Claim 6.44, pp. 128-129, and Claim 7.11, pp. 155-156. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false noncomputable section open Set Filter Topology MeasureTheory open scoped Manifold ContDiff Bundle intervalIntegral BigOperators namespace PoincareMT.AncientKappaSolution open ReducedLengthMinimum.Variation ReducedLengthMinimum.Variation.Geometry open ReducedLengthMinimum.Variation.Frame variable {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] [IsManifold (𝓑 2) ∞ M] [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] theorem curvature_add_minimum_le_two_of_adapted_frame (K : AncientKappaSolution 2 M) {Ο„ m : ℝ} (hΟ„ : 0 < Ο„) (q : BackwardTimePath K.flow 0 0 Ο„) (S : SqrtRegularPath q) (E : ParametricAlongCurveExtensionOn (Icc 0 (Real.sqrt Ο„)) S.curve (curveVelocityWithin (n := 2) S.curve (Icc 0 (Real.sqrt Ο„)))) (hmin : βˆ€ r : BackwardTimePath K.flow 0 0 Ο„, r.curve 0 = q.curve 0 β†’ backwardLLength K.flow 0 0 Ο„ q.curve ≀ backwardLLength K.flow 0 0 Ο„ r.curve) (heuler : βˆ€ s ∈ Ioo 0 (Real.sqrt Ο„), regularizedLGeodesicEquation K.flow 0 S.curve (Icc 0 (Real.sqrt Ο„)) E s) (hterminal : curveVelocityWithin (n := 2) S.curve (Icc 0 (Real.sqrt Ο„)) (Real.sqrt Ο„) = 0) (haction : backwardLLength K.flow 0 0 Ο„ q.curve = 2 * Real.sqrt Ο„ * m) (U : Set ℝ) (hU : IsOpen U) (hCU : Icc 0 (Real.sqrt Ο„) βŠ† U) (hΞ± : ContMDiffOn (π“˜(ℝ, ℝ)) (𝓑 2) ∞ S.curve U) (P : Fin 2 β†’ βˆ€ s, TangentSpace (𝓑 2) (S.curve s)) (hP : βˆ€ i, IsAdaptedFieldOn K.flow 0 S.curve (P i) U) (horth : βˆ€ s ∈ Icc 0 (Real.sqrt Ο„), βˆ€ i j, (K.flow.metric (0 - s ^ 2)).inner (S.curve s) (P i s) (P j s) = if i = j then 1 else 0) : Ο„ * (K.flow.connection (-Ο„)).scalarCurvature (S.curve (Real.sqrt Ο„)) + m ≀ 2 := by classical let c := Real.sqrt Ο„ let C := Icc (0 : ℝ) c have hc : 0 < c := Real.sqrt_pos.mpr hΟ„ let EP (i : Fin 2) : ParametricAlongCurveExtensionOn U S.curve (P i) := Classical.choice (exists_parametricSectionExtension hU S.curve hΞ± (P i) (hP i).smooth) let Y (i : Fin 2) : βˆ€ s, TangentSpace (𝓑 2) (S.curve s) := fun s ↦ (s / c) β€’ P i s let HY (i : Fin 2) : ParametricAlongCurveExtensionOn U S.curve (Y i) := smulParametricExtension (EP i) (fun s ↦ s / c) (contDiff_id.div_const c) let H (i : Fin 2) : ParametricAlongCurveExtensionOn C S.curve (Y i) := restrictParametricSectionExtension hCU (HY i) let d (i : Fin 2) := fieldIndexDensity K.flow 0 S.curve C (Y i) (H i) let D := fun s ↦ βˆ‘ i : Fin 2, d i s have hindex (i : Fin 2) : IntervalIntegrable (d i) volume 0 c ∧ 0 ≀ ∫ s in (0 : ℝ)..c, d i s := by exact K.fieldIndexDensity_integrable_and_integral_nonneg S E hmin heuler hterminal (Y i) U hU hCU (parametricExtension_field_contMDiffOn (HY i) hΞ±) (by simp only [Y, zero_div, zero_smul]) (H i) have hD : IntervalIntegrable D volume 0 c := IntervalIntegrable.sum Finset.univ (fun i _ ↦ (hindex i).1) have hnonneg : 0 ≀ ∫ s in (0 : ℝ)..c, D s := by rw [show D = fun s ↦ βˆ‘ i : Fin 2, d i s from rfl, intervalIntegral.integral_finsetSum (fun i _ ↦ (hindex i).1)] exact Finset.sum_nonneg (fun i _ ↦ (hindex i).2) apply K.curvature_add_minimum_le_two_of_index_trace hΟ„ q S E heuler hterminal haction D hD ?_ hnonneg intro s hs have hsC : s ∈ C := Ioo_subset_Icc_self hs have hCs : UniqueDiffWithinAt ℝ C s := uniqueDiffOn_Icc hc s hsC let A := curveVelocityWithin (n := 2) S.curve C s let L := K.flow.connection (0 - s ^ 2) have hDY (i : Fin 2) : pullbackCovariantDerivative K.flow (fun r ↦ 0 - r ^ 2) S.curve (Y i) C (H i) s = (1 / c - s * (s / c) * L.scalarCurvature (S.curve s)) β€’ P i s := by exact pullback_scaled_adapted_surface K.flow 0 S.curve (P i) (restrictParametricSectionExtension hCU (EP i)) c (H i) hU hΞ± (hP i) hsC (hCU hsC) hCs (ancient_squareTime_mem_interior s) obtain ⟨e, he⟩ := exists_orthonormalBasis_eq (K.flow.metric (0 - s ^ 2)) (S.curve s) (fun i ↦ P i s) (horth s hsC) have htrace := surface_scaled_index_trace L (S.curve s) A s (ne_of_gt hc) e simp only [he] at htrace have hsum : c ^ 2 * D s = 2 - 4 * s ^ 2 * L.scalarCurvature (S.curve s) + 2 * s ^ 4 * (L.laplacian L.scalarCurvature (S.curve s) + L.scalarCurvature (S.curve s) ^ 2) - s ^ 2 * L.ricci (S.curve s) A A := by convert htrace using 1 congr 1 apply Finset.sum_congr rfl intro i _ dsimp only [d, fieldIndexDensity] rw [hDY i] exact hsum.trans (congrArg (fun t : ℝ ↦ 2 - 4 * s ^ 2 * (K.flow.connection t).scalarCurvature (S.curve s) + 2 * s ^ 4 * ((K.flow.connection t).laplacian (K.flow.connection t).scalarCurvature (S.curve s) + (K.flow.connection t).scalarCurvature (S.curve s) ^ 2) - s ^ 2 * (K.flow.connection t).ricci (S.curve s) A A) (zero_sub (s ^ 2))) end PoincareMT.AncientKappaSolution