cfahlgren1/math / lean /OAI /Geometry /WeakMTW /Coordinates /PairNormalDistance.lean
cfahlgren1's picture
download
raw
5.02 kB
import Mathlib
import OAI.Geometry.WeakMTW.Geodesics.UniformNormal
namespace OAI
namespace WeakMTWGlobalSupport
section
open Set Filter Manifold Bundle
open scoped Topology ContDiff Manifold
namespace NormalNeighborhood.NormalFlow
noncomputable section
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
open CoordinateGeometry NormalCoordinates
variable {G : E → MetricTensor E} {S : Set E} {x₀ : E}
theorem normal_zero (N : NormalFlow G S x₀)
(hS : IsOpen S) (hG : ContDiffOn ℝ ∞ G S)
(hpos : ∀ z ∈ S, ∀ v : E, v ≠ 0 → 0 < G z v v)
{x : E} (hx : (x, (0 : E)) ∈ N.normal.source) : N.normal (x,0) = (x,x) := by
apply Prod.ext
· simp only [N.normal_apply]
· exact N.normalAt_zero hS hG hpos hx
theorem normal_inverse_hasFDerivAt_center (N : NormalFlow G S x₀)
(hS : IsOpen S) (hG : ContDiffOn ℝ ∞ G S)
(hpos : ∀ z ∈ S, ∀ v : E, v ≠ 0 → 0 < G z v v)
{x : E} (hx : (x, (0 : E)) ∈ N.normal.source) :
HasFDerivAt N.normal.symm
((normalShear (E := E) N.time N.time_pos.ne').symm : E × E →L[ℝ] E × E) (x,x) := by
have he := N.normal_zero hS hG hpos hx
have hmem : (x,x) ∈ N.normal.target := he ▸ N.normal.map_source hx
have hi : N.normal.symm (x,x) = (x,0) := by rw [← he, N.normal.left_inv hx]
have hd := hasFDerivAt_normalMap_zero hS hG hpos N.domain_open N.flow_smooth
N.initial N.ode (N.base_mem hx) N.time_pos (N.source_stays (x,0) hx)
have hd' : HasFDerivAt N.normal
(normalShear (E := E) N.time N.time_pos.ne' : E × E →L[ℝ] E × E)
(N.normal.symm (x,x)) := by
rw [hi]
exact hd.congr_of_eventuallyEq (Filter.Eventually.of_forall N.normal_apply)
exact N.normal.hasFDerivAt_symm hmem hd'
end
end NormalNeighborhood.NormalFlow
namespace RiemannianLocal
noncomputable section
variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [FiniteDimensional ℝ E]
{M : Type*} [MetricSpace M] [ChartedSpace E M] [IsManifold 𝓘(ℝ, E) ∞ M]
[RiemannianBundle (fun x : M => TangentSpace 𝓘(ℝ, E) x)]
[IsContMDiffRiemannianBundle 𝓘(ℝ, E) ∞ E (fun x : M => TangentSpace 𝓘(ℝ, E) x)]
[IsRiemannianManifold 𝓘(ℝ, E) M]
open NormalNeighborhood NormalFlow ChartMetric CoordinateGeometry
theorem eventually_dist_normal_pair (x z₀ : M) (hz₀ : z₀ ∈ (chartAt E x).source)
(N : NormalFlow (metric x) (chartAt E x).target (chartAt E x z₀)) :
∀ᶠ q : M × M in 𝓝 (z₀,z₀), dist q.1 q.2 = N.time *
Real.sqrt (metric x (chartAt E x q.1)
(N.normal.symm (chartAt E x q.1, chartAt E x q.2)).2
(N.normal.symm (chartAt E x q.1, chartAt E x q.2)).2) := by
let c := chartAt E x
have hc : ContinuousAt c z₀ := c.continuousAt hz₀
have hcc : ContinuousAt (fun q : M × M => (c q.1,c q.2)) (z₀,z₀) :=
(hc.comp continuousAt_fst).prodMk (hc.comp continuousAt_snd)
have he := N.normal_zero c.open_target (metric_smooth x)
(fun z hz v hv => metric_positive x hz hv) N.center_mem
have ht : (c z₀,c z₀) ∈ N.normal.target := he ▸ N.normal.map_source N.center_mem
have hi : N.normal.symm (c z₀,c z₀) = (c z₀,0) := by rw [← he, N.normal.left_inv N.center_mem]
obtain ⟨ε,r,hε,hr,hball⟩ := uniform_normal_radius x z₀ hz₀ N
let ν : M × M → E := fun q => (N.normal.symm (c q.1,c q.2)).2
have hν : ContinuousAt ν (z₀,z₀) := ((N.normal.continuousOn_symm _ ht).continuousAt
(N.normal.open_target.mem_nhds ht)).comp
(f := fun q : M × M => (c q.1,c q.2)) hcc |>.snd
have hG : ContinuousAt (fun q : M × M => metric x (c q.1)) (z₀,z₀) := by
apply ContinuousAt.comp (g := metric x) (f := fun q : M × M => c q.1)
· exact (metric_smooth x).continuousOn.continuousAt
(c.open_target.mem_nhds (c.map_source hz₀))
· exact hc.comp continuousAt_fst
have hlen : ContinuousAt (fun q : M × M => N.time * Real.sqrt (metric x (c q.1) (ν q) (ν q)))
(z₀,z₀) := continuousAt_const.mul ((hG.clm_apply hν).clm_apply hν).sqrt
have hsmall : ∀ᶠ q : M × M in 𝓝 (z₀,z₀), N.time * Real.sqrt (metric x (c q.1) (ν q) (ν q)) < r := by
apply hlen.eventually_lt_const
simpa [ν,hi] using hr
have hnear : ∀ᶠ q : M × M in 𝓝 (z₀,z₀), q.1 ∈ Metric.ball z₀ ε ∧ q.2 ∈ c.source ∧
(c q.1,c q.2) ∈ N.normal.target :=
inter_mem (continuousAt_fst.preimage_mem_nhds (Metric.ball_mem_nhds _ hε))
(inter_mem (continuousAt_snd.preimage_mem_nhds (c.open_source.mem_nhds hz₀))
(hcc.preimage_mem_nhds (N.normal.open_target.mem_nhds ht)))
filter_upwards [hnear,hsmall] with q hq hqs
obtain ⟨hz,hzero,hrs⟩ := hball q.1 hq.1
have hqt : q.2 ∈ (normalChart x q.1 N).target := ⟨hq.2.1,hq.2.2⟩
have hh := normal_distance_of_ball x q.1 N hz hzero hr hrs
((normalChart x q.1 N).map_target hqt) hqs
rw [(normalChart x q.1 N).right_inv hqt] at hh
exact hh
end
end RiemannianLocal
end
end WeakMTWGlobalSupport
end OAI

Xet Storage Details

Size:
5.02 kB
·
Xet hash:
48d185e4d6029a9424999c1660de896cc4b14b4149b5509ee73633f5943d5811

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.