import OAI.Geometry.Nikodym.Abstract.ChartMetric import OAI.Geometry.Nikodym.Chart.GeodesicSegment open OAI.Analysis.Fourier.Wave noncomputable section open Set Bundle Manifold Filter open scoped Topology ContDiff Bundle RealInnerProductSpace namespace OAI.Geometry.Nikodym variable {E M : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E] [TopologicalSpace M] [ChartedSpace E M] [IsManifold π“˜(ℝ,E) ∞ M] [RiemannianBundle (fun x : M => TangentSpace π“˜(ℝ,E) x)] [IsContMDiffRiemannianBundle π“˜(ℝ,E) ∞ E (fun x : M => TangentSpace π“˜(ℝ,E) x)] /-- The ordinary coordinate definition of a local Riemannian geodesic: its atlas coordinate path solves the Levi-Civita equation of the actual pulled-back metric. No straightening or model-metric premise occurs. -/ structure IsAtlasGeodesic (p : M) (Ξ³ : ℝ β†’ M) (v : ℝ β†’ E) (I : Set ℝ) : Prop where source : MapsTo Ξ³ I (chartAt E p).source equation : IsMetricGeodesic (abstractChartMetric (E:=E) p) ((extChartAt π“˜(ℝ,E) p) ∘ Ξ³) v I namespace LocalBeltramiChart variable {p : M} {ΞΊ : ℝ} variable (C : LocalBeltramiChart (abstractChartMetric (E:=E) p) ΞΊ (extChartAt π“˜(ℝ,E) p p)) theorem manifold_geodesic_image_in_line {Ξ³ : ℝ β†’ M} {v : ℝ β†’ E} {I : Set ℝ} (hΞ³ : IsAtlasGeodesic p Ξ³ v I) (hinside : MapsTo Ξ³ I C.manifoldChart.source) (hI : IsOpen I) (hconn : IsPreconnected I) {tβ‚€ : ℝ} (htβ‚€ : tβ‚€ ∈ I) : βˆƒ c : E, βˆ€ t ∈ I, βˆƒ s : ℝ, C.manifoldChart (Ξ³ t) = C.manifoldChart (Ξ³ tβ‚€) + s β€’ c := by exact C.geodesic_image_in_line hΞ³.equation (fun t ht => (hinside ht).2) hI hconn htβ‚€ end LocalBeltramiChart section Segment variable {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (Space n) M] [IsManifold π“˜(ℝ,Space n) ∞ M] [RiemannianBundle (fun x : M => TangentSpace π“˜(ℝ,Space n) x)] [IsContMDiffRiemannianBundle π“˜(ℝ,Space n) ∞ (Space n) (fun x : M => TangentSpace π“˜(ℝ,Space n) x)] variable {p : M} {ΞΊ : ℝ} theorem LocalBeltramiChart.atlasGeodesic_segment_representation (C : LocalBeltramiChart (abstractChartMetric (E:=Space n) p) ΞΊ (extChartAt π“˜(ℝ,Space n) p p)) {Ξ³ : ℝ β†’ M} {v : ℝ β†’ Space n} {I : Set ℝ} (hΞ³ : IsAtlasGeodesic p Ξ³ v I) (hinside : MapsTo Ξ³ I C.manifoldChart.source) (hI : IsOpen I) (hconn : IsPreconnected I) {a b : ℝ} (hab : a < b) (hsub : Icc a b βŠ† I) (hsmall : βˆ€ t ∈ Icc a b, |ΞΊ| * β€–C.manifoldChart (Ξ³ t)β€–^2 ≀ 1/2) (hunit : βˆ€ t ∈ Icc a b, (abstractChartMetric (E:=Space n) p).inner (extChartAt π“˜(ℝ,Space n) p (Ξ³ t)) (v t) (v t) = 1) : βˆƒ (l : ℝ) (w c : Space n), (b-a)/3 ≀ l ∧ l ≀ 4*(b-a) ∧ β€–wβ€– = 1 ∧ C.manifoldChart '' (Ξ³ '' Icc a b) = OAI.MeasureTheory.Kakeya.unitSegment (l β€’ w) c := by obtain ⟨l,w,c,hl,hu,hw,he⟩ := C.geodesic_segment_representation hΞ³.equation (fun t ht => (hinside ht).2) hI hconn hab hsub hsmall hunit refine ⟨l,w,c,hl,hu,hw,?_⟩ change (C.chart ∘ extChartAt π“˜(ℝ,Space n) p) '' (Ξ³ '' Icc a b) = _ simpa only [←image_comp,Function.comp_assoc] using he end Segment end OAI.Geometry.Nikodym