import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Compat.GeneralizedEquation import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.LGeometry.Avoidance.TestedCylinder /-! # Initial scalar control for every actual small-action path Lemma 16.15, pp. 379-381. The physical tested cylinder and the positive-action exit threshold capture the entire available initial prefix, including when the path ends before the selected safe duration. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Function MeasureTheory open scoped Manifold ContDiff Topology intervalIntegral universe u namespace PoincareMT.Proofs.M12 end PoincareMT.Proofs.M12 open PoincareMT.EpochExtension.Spacetime namespace PoincareMT.Proofs.M46 open PoincareMT.Proofs.M12 /-- The safe tested-cylinder estimate yields the actual uniform initial scalar bound used by full cap avoidance. Source: Lemma 16.15, pp. 379-381. -/ theorem TestedSafeCylinder.initial_scalar_bound {F : SurgeryFlowData.{u}} {O : SurgeryObservation F} {D : NoncollapseTest F O} {H : HalfRadiusHistory D} {rho a budget : ℝ} {ha : 0 < a} (Q : TestedSafeCylinder H rho a ha) (hM12 : GeneralizedRicciGaugeTheory.{u} 3) (hrho : 0 < rho) (hthreshold : budget < rho ^ 2 / (16 * Real.sqrt a)) {tau : ℝ} {y : H.spacetime.geometry.toLGeometry.Point} (p : M14BackwardPath H.spacetime.geometry.toLGeometry D.time 0 tau ((H.spacetime.geometry.sliceIdentification D.time).identification H.center).val y) (hbudget : (∫ t in 0..tau, Real.sqrt t * pathPositiveDensity p t) ≤ budget) : ∀ s ∈ Icc 0 tau, s ≤ a → horizontalScalarCurvature H.spacetime.geometry.toLGeometry.leafwise (p.curve s) ≤ 9 * rho⁻¹ ^ 2 := by let : CompactSpace (F.slice D.time).carrier := isCompact_univ_iff.mp (F.slices_compact D.time D.time_domain) let G := H.spacetime.geometry let b := Real.sqrt (min tau a) have hmin : 0 < min tau a := lt_min p.tau_lt ha have hb : 0 < b := Real.sqrt_pos.mpr hmin have hbtau : b ≤ Real.sqrt tau := Real.sqrt_le_sqrt (min_le_left _ _) have hba : b ≤ Real.sqrt a := Real.sqrt_le_sqrt (min_le_right _ _) have hclock : ∀ s ∈ Icc 0 b, G.realization.spacetime.timeFunction (p.curve (s ^ 2)) ∈ (cylinderPhysicalInterval D.time 1 Q.cylinder.scale_pos (safeTestInterval a ha)).domain := by intro s hs have hsquare : s ^ 2 ≤ min tau a := by have hsq : b ^ 2 = min tau a := Real.sq_sqrt hmin.le nlinarith [hs.1, hs.2] rw [Q.physical_eq] change G.toLGeometry.spacetime.timeFunction (p.curve (s ^ 2)) ∈ Icc (D.time - a) D.time rw [p.curve_time (s ^ 2) ⟨sq_nonneg s, hsquare.trans (min_le_left _ _)⟩] constructor <;> nlinarith [hsquare.trans (min_le_right tau a), sq_nonneg s] have hzero : (0 : ℝ) ∈ (safeTestInterval a ha).domain := ⟨by linarith, le_rfl⟩ let z : (G.realization.timeIntervals.interval (cylinderPhysicalInterval D.time 1 Q.cylinder.scale_pos (safeTestInterval a ha))).Point × Q.source := ((cylinderClockHomeomorph D.time 1 Q.cylinder.scale_pos (safeTestInterval a ha)).symm ⟨0, hzero⟩, ⟨D.center, Q.center_mem⟩) have hbase : p.curve 0 = rawCylinderMap G.realization Q.cylinder z := by rw [rawCylinderMap_at_parameter, Q.based, p.curve_start] have hpositive : (∫ t in 0..tau, Real.sqrt t * pathPositiveDensity p t) < rho ^ 2 / (16 * b) := by apply (hbudget.trans_lt hthreshold).trans_le exact div_le_div_of_nonneg_left (sq_nonneg rho) (mul_pos (by norm_num) hb) (mul_le_mul_of_nonneg_left hba (by norm_num)) have hcapture := actualSafeCylinder_confines_initial_prefix G hM12 Q.cylinder Q.time_subset (F.metric D.time) hrho (by simpa only [one_mul] using Q.metric_lower) D.center Q.source_eq p hb hbtau hclock z hbase rfl hpositive intro s hs hsa have hsroot : Real.sqrt s ∈ Icc 0 b := ⟨Real.sqrt_nonneg s, Real.sqrt_le_sqrt (le_min hs.2 hsa)⟩ have hcap := hcapture hsroot change p.curve (Real.sqrt s ^ 2) ∈ range (rawCylinderMap G.realization Q.cylinder) at hcap rw [Real.sq_sqrt hs.1] at hcap obtain ⟨w, hw⟩ := hcap rw [← hw] exact Q.scalar_upper w end PoincareMT.Proofs.M46