import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Compatibility import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Ordinary.OrdinaryRestriction import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Branch import PoincareLib.Geometry.RicciFlow.Surgery.Global.Certificate import PoincareLib.Geometry.RicciFlow.Local.Connection.CurvatureIndependence /-! # The initial ordinary solution as a raw surgery flow Morgan--Tian Assumptions (1)-(7), pp. 355-356, and Corollary 15.10, p. 363. The carrier is constant and there are no surgery events. Finite excluded endpoints retain the ordinary solution's actual curvature blowup. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff Bundle ENNReal Topology universe u namespace PoincareMT.M51Initial variable {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] [T2Space M] [T3Space M] [SecondCountableTopology M] /-- The original smooth manifold with its existing instances. -/ abbrev carrier (M : Type u) [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] [T2Space M] [T3Space M] [SecondCountableTopology M] : GeneralizedSliceCarrier.{u} where carrier := M topologicalSpace := inferInstance measurableSpace := inferInstance borelSpace := inferInstance chartedSpace := inferInstance isManifold := inferInstance t2Space := inferInstance t3Space := inferInstance secondCountable := inferInstance omit [T2Space M] [SecondCountableTopology M] in /-- Rewrite only the metric; compatible connections have the same curvature. -/ theorem initial_norm_bound (I : NormalizedInitialMetric (M := M)) {J : Set ℝ} (F : RicciFlow 3 M J) (h0 : F.metric 0 = I.metric) (x : M) : (F.connection 0).curvatureTensorNorm x ≀ 1 := by have hmetric : βˆ€ (g : RiemannianMetric 3 M) (D : LeviCivitaData g), g = I.metric β†’ D.curvatureTensorNorm x ≀ 1 := by intro g D hg subst g rw [D.curvatureTensorNorm_eq I.connection] exact I.full_curvature_bound x exact hmetric _ _ h0 omit [T2Space M] [SecondCountableTopology M] in theorem initial_volume_bound (I : NormalizedInitialMetric (M := M)) {J : Set ℝ} (F : RicciFlow 3 M J) (h0 : F.metric 0 = I.metric) (x : M) (r : ℝ) (hr : 0 < r) (hr1 : r ≀ 1) : ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≀ calibratedMetricVolume (F.metric 0) ((F.metric 0).ball x r) := by rw [h0] have hfinite : euclideanUnitBallLebesgueVolume β‰  ⊀ := Metric.isBounded_ball.measure_lt_top.ne have hcoeff : ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) = (euclideanUnitBallLebesgueVolume / 2) * ENNReal.ofReal r ^ 3 := by rw [ENNReal.ofReal_div_of_pos (by norm_num), ENNReal.ofReal_mul ENNReal.toReal_nonneg, ENNReal.ofReal_toReal hfinite, ENNReal.ofReal_pow hr.le] norm_num only [ENNReal.ofReal_ofNat] simp only [div_eq_mul_inv, mul_right_comm] rw [hcoeff] rw [show calibratedMetricVolume I.metric = normalizedMetricVolume I.metric from rfl] rw [← I.volume_is_normalized_metric] exact I.small_ball_lower_bound x r hr hr1 noncomputable def regularSlab {J : Set ℝ} (F : RicciFlow 3 M J) (a b : ℝ) (hab : a < b) (hJ : Icc a b βŠ† J) : SurgeryRegularSlab (fun _ => carrier M) F.metric a b where ordered := hab flow := M51Ordinary.restrict F hJ ordConnected_Icc ⟨a, ⟨le_rfl, hab.le⟩, b, ⟨hab.le, le_rfl⟩, hab.ne⟩ identify := fun _ => Diffeomorph.refl (𝓑 3) M ∞ initial_identify := fun _ => rfl metric_pullback := by intro t x v w change (F.metric t.1).inner (id x) (mfderiv (𝓑 3) (𝓑 3) (id : M β†’ M) x v) (mfderiv (𝓑 3) (𝓑 3) (id : M β†’ M) x w) = _ simp only [mfderiv_id, ContinuousLinearMap.id_apply] rfl @[simp] theorem regularSlab_transport {J : Set ℝ} (F : RicciFlow 3 M J) (a b : ℝ) (hab : a < b) (hJ : Icc a b βŠ† J) (s t : Icc a b) (x : M) : (regularSlab F a b hab hJ).transport s t x = x := rfl omit [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] in /-- The maximal-domain alternative yields the raw excluded-endpoint clause. -/ theorem maximality {J : Set ℝ} (F : RicciFlow 3 M J) (hshape : J = Ici 0 ∨ βˆƒ T : ℝ, 0 < T ∧ J = Ico 0 T ∧ βˆ€ L s : ℝ, s < T β†’ βˆƒ t ∈ Ioo (max 0 s) T, βˆƒ x : M, L < (F.connection t).curvatureTensorNorm x) (b : ℝ) (hb : 0 < b) (hsub : Ico 0 b βŠ† J) (hout : b βˆ‰ J) : βˆ€ L s : ℝ, s < b β†’ βˆƒ t ∈ Ioo (max 0 s) b, βˆƒ x : M, L < (F.connection t).curvatureTensorNorm x := by rcases hshape with hJ | ⟨T, hT, hJ, hcurv⟩ Β· exact False.elim (hout (hJ β–Έ hb.le)) Β· have hTb : T ≀ b := by by_contra h exact hout (hJ β–Έ ⟨hb.le, lt_of_not_ge h⟩) have hbT : b ≀ T := by by_contra h have hmem := hsub (show T ∈ Ico 0 b from ⟨hT.le, lt_of_not_ge h⟩) rw [hJ] at hmem exact lt_irrefl T hmem.2 have hEq := le_antisymm hbT hTb simpa only [hEq] using hcurv variable [CompactSpace M] [Nonempty M] /-- A raw presentation of this exact maximal ordinary solution. -/ noncomputable def rawFlow (g0 : StandardInitialMetric) (K : MetricSurgeryConstants) (P : SurgeryParameters) (I : NormalizedInitialMetric (M := M)) (hRP : NoTrivialNormalProjectivePlane (M := M)) {J : Set ℝ} (F : RicciFlow 3 M J) (h0 : F.metric 0 = I.metric) (hleast : IsLeast J 0) (hmax : βˆ€ b : ℝ, 0 < b β†’ Ico 0 b βŠ† J β†’ b βˆ‰ J β†’ βˆ€ L s : ℝ, s < b β†’ βˆƒ t ∈ Ioo (max 0 s) b, βˆƒ x : M, L < (F.connection t).curvatureTensorNorm x) : SurgeryFlowData.{u} where standard_initial := g0 local_constants := K parameters := P time_domain := J time_domain_interval := F.interval time_domain_nonnegative := hleast.2 zero_mem := hleast.1 slice := fun _ => carrier M metric := F.metric connection := F.connection slices_compact := fun _ _ => (show IsCompact (univ : Set M) from isCompact_univ) no_two_sided_projective_plane := fun _ _ => hRP initial_nonempty := (show Nonempty M from inferInstance) initial_normalized := fun x => ⟨initial_norm_bound I F h0 x, initial_volume_bound I F h0 x⟩ surgery_times := βˆ… surgery_times_subset := empty_subset J zero_not_surgery := by simp surgery_times_locally_finite := fun _ _ => ⟨1, by norm_num, finite_empty.subset inter_subset_left⟩ regular_slabs := fun a b hab hJ _ => regularSlab F a b hab hJ slab_transport_coherent := by intros; rfl event := fun _ hT => False.elim hT vanishing_event := fun _ hT => False.elim hT event_slab_compatibility := fun _ hT => False.elim hT vanishing_slab_compatibility := fun _ hT => False.elim hT maximal_intervals := by intro a b _ hstart hab hsub _ _ hend have ha : a = 0 := hstart.elim id False.elim subst a exact hmax b hab hsub (hend.elim False.elim id) extinction_permanent := fun _ _ _ _ _ he => he end PoincareMT.M51Initial