import PoincareLib.Geometry.Curvature.Integral.Concentration.WeightedFiberBalls import PoincareLib.Geometry.Curvature.Integral.Concentration.FiberLimits /-! # Pointed local corner models and exact section limits All model data come from the ambient manifold and its actual regular fiber. Pointed compactness retains the exact closed-radius-3/2 fiber sections in coherent expanding realizations, independently of any intrinsic fiber completeness. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter Topology MeasureTheory Function open Poincare.GromovHausdorff open Poincare.Geometry.Manifold.RegularFiber open scoped Manifold ContDiff Bundle namespace PoincareMT /-- Actual local corner geometry, with the weighted scalar ratio derived below. -/ structure PointedCornerModel (m k : β„•) (Ξ΄ H : ℝ) where carrier : Type [topology : TopologicalSpace carrier] [measurable : MeasurableSpace carrier] [borel : BorelSpace carrier] [separation : T3Space carrier] [charts : ChartedSpace (EuclideanSpace ℝ (Fin (m+k))) carrier] [smooth : IsManifold (𝓑 (m+k)) ∞ carrier] [connected : PreconnectedSpace carrier] metric : RiemannianMetric (m+k) carrier connection : LeviCivitaData metric complete : MetricComplete metric sectional_lower : βˆ€ x (v w : TangentSpace (𝓑 (m+k)) x), -1 ≀ connection.sectionalCurvature x v w f : Fin k β†’ carrier β†’ ℝ h : Fin k β†’ carrier β†’ ℝ f_smooth : βˆ€ i, ContMDiff (𝓑 (m+k)) π“˜(ℝ,ℝ) ∞ (f i) h_smooth : βˆ€ i, ContMDiff (𝓑 (m+k)) π“˜(ℝ,ℝ) ∞ (h i) domain : TopologicalSpace.Opens carrier unit : βˆ€ x ∈ domain, βˆ€ i, metric.tangentNorm x (connection.gradient (f i) x) ≀ 1 ∧ metric.tangentNorm x (connection.gradient (h i) x) ≀ 1 opposite : βˆ€ x ∈ domain, βˆ€ i, metric.inner x (connection.gradient (f i) x) (connection.gradient (h i) x) ≀ -1+2*Ξ΄ cross : βˆ€ x ∈ domain, βˆ€ i j, i β‰  j β†’ |metric.inner x (connection.gradient (f i) x) (connection.gradient (f j) x)| ≀ Ξ΄ ∧ |metric.inner x (connection.gradient (f i) x) (connection.gradient (h j) x)| ≀ Ξ΄ ∧ |metric.inner x (connection.gradient (h i) x) (connection.gradient (f j) x)| ≀ Ξ΄ ∧ |metric.inner x (connection.gradient (h i) x) (connection.gradient (h j) x)| ≀ Ξ΄ tight : βˆ€ x ∈ domain, βˆ€ i j, i β‰  j β†’ metric.inner x (connection.gradient (f i) x) (connection.gradient (f j) x) ≀ 0 hessian_upper : βˆ€ x ∈ domain, βˆ€ i z, connection.hessian (f i) x z z ≀ H * metric.inner x z z ∧ connection.hessian (h i) x z z ≀ H * metric.inner x z z regular : βˆ€ x ∈ domain, Surjective (mfderiv (𝓑 (m+k)) π“˜(ℝ,Fin k β†’ ℝ) (fun y i => f i y) x) value : Fin k β†’ ℝ point : openFiber (fun y i => f i y) domain value buffer : βˆ€ y, metric.edist (openFiberIncl (fun y i => f i y) domain value point) y ≀ ENNReal.ofReal 2 β†’ y ∈ domain error : openFiber (fun y i => f i y) domain value β†’ ℝ error_continuous : Continuous error error_nonneg : βˆ€ x, 0 ≀ error x error_sectional_lower : let hf : ContMDiff (𝓑 (m+k)) π“˜(ℝ,Fin k β†’ ℝ) ∞ (fun y i => f i y) := contMDiff_pi_space.mpr f_smooth letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (m+k))) = m+k) := ⟨finrank_euclideanSpace_fin⟩ letI := openFiberChartedSpace (m := m) hf domain regular value letI := isManifold_openFiber (m := m) hf domain regular value let gL := metric.openRegularFiberMetric hf domain regular value βˆ€ x (v w : TangentSpace (𝓑 m) x), -error x ≀ gL.leviCivitaData.sectionalCurvature x v w attribute [instance] PointedCornerModel.topology PointedCornerModel.measurable PointedCornerModel.borel PointedCornerModel.separation PointedCornerModel.charts PointedCornerModel.smooth PointedCornerModel.connected namespace PointedCornerModel variable {m k : β„•} {Ξ΄ H : ℝ} abbrev joint (A : PointedCornerModel m k Ξ΄ H) : A.carrier β†’ Fin k β†’ ℝ := fun x i => A.f i x theorem joint_smooth (A : PointedCornerModel m k Ξ΄ H) : ContMDiff (𝓑 (m+k)) π“˜(ℝ,Fin k β†’ ℝ) ∞ A.joint := contMDiff_pi_space.mpr A.f_smooth def ambientPoint (A : PointedCornerModel m k Ξ΄ H) : A.carrier := openFiberIncl A.joint A.domain A.value A.point def basedSpace (A : PointedCornerModel m k Ξ΄ H) : BasedMetricSpaceBundle.{0} := A.metric.toBasedMetricSpace A.ambientPoint def boundedFiberSection (A : PointedCornerModel m k Ξ΄ H) : Set A.carrier := openFiberIncl A.joint A.domain A.value '' {z : openFiber A.joint A.domain A.value | (A.metric.edist A.ambientPoint (openFiberIncl A.joint A.domain A.value z)).toReal ≀ (3/2 : ℝ)} /-- Positive scalar mass on the ambient unit section, normalized by error on the double section. -/ def weightedRatio (A : PointedCornerModel m k Ξ΄ H) : ℝ := A.metric.openFiberWeightedAmbientBallRatio A.joint_smooth A.domain A.regular A.value A.error A.ambientPoint 1 2 theorem boundedFiberSection_dist_le (A : PointedCornerModel m k Ξ΄ H) (x : A.basedSpace.carrier) (hx : x ∈ A.boundedFiberSection) : dist A.basedSpace.base x ≀ (3/2 : ℝ) := by obtain ⟨z, hz, rfl⟩ := hx exact hz end PointedCornerModel /-- Coherent expanding realizations of the exact closed-radius-3/2 fiber sections. -/ def IsExpandingCornerLimit {m k : β„•} {Ξ΄ H : ℝ} (A : β„• β†’ PointedCornerModel m k Ξ΄ H) (S : CompatiblePointedCompactSystem.{0}) (K : TopologicalSpace.NonemptyCompacts S.completedLimit.carrier) : Prop := ProperSpace S.completedLimit.carrier ∧ (βˆ€ x y : S.completedLimit.carrier, βˆƒ Ξ³ : ℝ β†’ S.completedLimit.carrier, Ξ³ 0 = x ∧ Ξ³ 1 = y ∧ βˆ€ a ∈ Icc (0 : ℝ) 1, βˆ€ b ∈ Icc (0 : ℝ) 1, dist (Ξ³ a) (Ξ³ b) = |a-b| * dist x y) ∧ PointedGHConvergesUnbounded (fun j => (A j).basedSpace) S.completedLimit ∧ βˆƒ s t Ξ΅ : β„• β†’ ℝ, Tendsto s atTop atTop ∧ Tendsto t atTop atTop ∧ (βˆ€ j, 0 < Ξ΅ j) ∧ Tendsto Ξ΅ atTop (𝓝 0) ∧ βˆƒ hs : βˆ€ j, (3/2 : ℝ) < s j, βˆƒ ht : βˆ€ j, (3/2 : ℝ) < t j, βˆƒ Q : βˆ€ j, PointedGHRealization (ballModel (A j).basedSpace (s j) ((by norm_num : (0:ℝ)<3/2).trans (hs j))) (ballModel S.completedLimit (t j) ((by norm_num : (0:ℝ)<3/2).trans (ht j))), Tendsto (fun j => pointedHausdorffDist (Q j)) atTop (𝓝 0) ∧ βˆƒ hK : (K : Set S.completedLimit.carrier) βŠ† Metric.closedBall S.completedLimit.base (3/2), S.completedLimit.base ∈ K ∧ (βˆ€ j (x : (A j).boundedFiberSection), βˆƒ y : K, dist ((Q j).left ⟨x.val, Metric.mem_ball'.mpr (((A j).boundedFiberSection_dist_le x.val x.property).trans_lt (hs j))⟩) ((Q j).right ⟨y.val, Metric.mem_ball.mpr ((Metric.mem_closedBall.mp (hK y.property)).trans_lt (ht j))⟩) < Ξ΅ j) ∧ (βˆ€ j (y : K), βˆƒ x : (A j).boundedFiberSection, dist ((Q j).left ⟨x.val, Metric.mem_ball'.mpr (((A j).boundedFiberSection_dist_le x.val x.property).trans_lt (hs j))⟩) ((Q j).right ⟨y.val, Metric.mem_ball.mpr ((Metric.mem_closedBall.mp (hK y.property)).trans_lt (ht j))⟩) < Ξ΅ j) theorem exists_pointedCornerModels_tendsto_atTop {m k : β„•} {Ξ΄ H : ℝ} (hlarge : βˆ€ C : ℝ, βˆƒ A : PointedCornerModel m k Ξ΄ H, C < A.weightedRatio) : βˆƒ A : β„• β†’ PointedCornerModel m k Ξ΄ H, (βˆ€ j : β„•, (j : ℝ) < (A j).weightedRatio) ∧ Tendsto (fun j => (A j).weightedRatio) atTop atTop := by classical choose A hA using fun j : β„• => hlarge (j : ℝ) exact ⟨A, hA, tendsto_atTop_mono (fun j => (hA j).le) tendsto_natCast_atTop_atTop⟩ theorem exists_subseq_expandingCornerLimit {m k : β„•} {Ξ΄ H : ℝ} (hn : 1 ≀ m+k) (A : β„• β†’ PointedCornerModel m k Ξ΄ H) : βˆƒ Ο† : β„• β†’ β„•, StrictMono Ο† ∧ βˆƒ S : CompatiblePointedCompactSystem.{0}, βˆƒ K : TopologicalSpace.NonemptyCompacts S.completedLimit.carrier, IsExpandingCornerLimit (fun j => A (Ο† j)) S K := by obtain βŸ¨Ο†, S, hΟ†, hproper, hgeo, hconv, s, t, Ξ΅, hsTop, htTop, hΞ΅pos, hΞ΅zero, hs, ht, Q, hQzero, K, hK, hbase, hforward, hbackward⟩ := RiemannianMetric.exists_subseq_compact_openFiber_limit_in_expanding_realizations (fun j => (A j).metric) (fun j => (A j).connection) (fun j => (A j).complete) hn (fun j => (A j).sectional_lower) (fun j => (A j).joint) (fun j => (A j).joint_smooth.continuous) (fun j => (A j).domain) (fun j => (A j).value) (fun j => (A j).point) (ρ := 3/2) (by norm_num) exact βŸ¨Ο†, hΟ†, S, K, hproper, hgeo, hconv, s, t, Ξ΅, hsTop, htTop, hΞ΅pos, hΞ΅zero, hs, ht, Q, hQzero, hK, hbase, hforward, hbackward⟩ /-- A cofinal subsequence retains the same marked limit and restricts the same expanding realizations and their uniform approximation witnesses. -/ theorem IsExpandingCornerLimit.comp {m k : β„•} {Ξ΄ H : ℝ} {A : β„• β†’ PointedCornerModel m k Ξ΄ H} {S : CompatiblePointedCompactSystem.{0}} {K : TopologicalSpace.NonemptyCompacts S.completedLimit.carrier} (h : IsExpandingCornerLimit A S K) (Ο† : β„• β†’ β„•) (hΟ† : Tendsto Ο† atTop atTop) : IsExpandingCornerLimit (fun j => A (Ο† j)) S K := by obtain ⟨hp,hg,hc,s,t,Ξ΅,hsTop,htTop,hΞ΅p,hΞ΅zero,hs,ht,Q,hQ,hK,hbase,hf,hb⟩ := h have hc' : PointedGHConvergesUnbounded (fun j => (A (Ο† j)).basedSpace) S.completedLimit := by intro r hr obtain ⟨d,hd,hpos,⟨⟨C,hC⟩,hdist⟩⟩ := hc r hr exact ⟨fun j => d (Ο† j), hd.comp hΟ†, fun j => hpos (Ο† j), ⟨C,fun j => hC (Ο† j)⟩, hdist.comp hΟ†βŸ© exact ⟨hp,hg,hc',fun j => s (Ο† j),fun j => t (Ο† j),fun j => Ξ΅ (Ο† j), hsTop.comp hΟ†,htTop.comp hΟ†,fun j => hΞ΅p (Ο† j),hΞ΅zero.comp hΟ†, (fun j => hs (Ο† j)),(fun j => ht (Ο† j)),(fun j => Q (Ο† j)),hQ.comp hΟ†, hK,hbase,(fun j => hf (Ο† j)),(fun j => hb (Ο† j))⟩ end PoincareMT