cfahlgren1's picture
download
raw
3.4 kB
import Mathlib
import OAI.Analysis.BiholderTransport.Geodesics.DoubleMountain
namespace OAI
noncomputable section
open Set Filter Manifold Bundle
open scoped Topology ContDiff
namespace WeakMTWTransport
variable {n : β„•} {M : Type*} [MetricSpace M]
[ChartedSpace (Model n) M]
[RiemannianBundle (fun x : M => TangentSpace π“˜(ℝ,Model n) x)]
def liftedGapSection (u v : M β†’ ℝ) (x : M) (r : ℝ) :
Set (TangentSpace π“˜(ℝ,Model n) x) :=
{p | p∈minimizingVectors x ∧ u x+β€–pβ€–^2/2+v (riemannianExp x p)≀r}
lemma cost_minimizingVector {x : M} {p : TangentSpace π“˜(ℝ,Model n) x}
(hp : p∈minimizingVectors x) : cost x (riemannianExp x p)=β€–pβ€–^2/2 := by
unfold cost
rw [show dist x (riemannianExp x p)=β€–pβ€– from hp]
lemma mem_liftedGapSection_iff {u v : M β†’ ℝ} {x : M} {r : ℝ}
{p : TangentSpace π“˜(ℝ,Model n) x} :
p∈liftedGapSection u v x r ↔ p∈minimizingVectors x ∧ riemannianExp x p∈gapSection u v x r := by
constructor
Β· intro hp
exact ⟨hp.1,by simpa only [gapSection,mem_ofPred_eq,contactGap,cost_minimizingVector hp.1] using hp.2⟩
Β· intro hp
exact ⟨hp.1,by simpa only [gapSection,mem_ofPred_eq,contactGap,cost_minimizingVector hp.1] using hp.2⟩
variable [CompactSpace M] [IsManifold π“˜(ℝ,Model n) ∞ M]
[IsContMDiffRiemannianBundle π“˜(ℝ,Model n) ∞ (Model n)
(fun x : M => TangentSpace π“˜(ℝ,Model n) x)]
[IsRiemannianManifold π“˜(ℝ,Model n) M]
lemma liftedGapSection_image (u v : M β†’ ℝ) (x : M) (r : ℝ) :
riemannianExp x '' liftedGapSection (n := n) u v x r=gapSection u v x r := by
apply Subset.antisymm
· rintro y ⟨p,hp,rfl⟩
exact (mem_liftedGapSection_iff.mp hp).2
Β· intro y hy
obtain ⟨p,hp,hpy⟩ := exists_minimizing_vector (n := n) x y
exact ⟨p,mem_liftedGapSection_iff.mpr ⟨hp,by rwa [hpy]⟩,hpy⟩
variable [Nonempty M]
lemma WeakMTW.convex_liftedGapSection (hmtw : WeakMTW (n := n) (M := M))
{u v : M β†’ ℝ} (hu : Continuous u) (hv : Continuous v) (huv : IsCostDualPair u v)
(x : M) (r : ℝ) : Convex ℝ (liftedGapSection (n := n) u v x r) := by
intro p hp q hq a b ha hb hab
have hp' := mem_liftedGapSection_iff.mp hp
have hq' := mem_liftedGapSection_iff.mp hq
obtain ⟨hm,hcomp⟩ := hmtw.double_mountain hp.1 hq.1 ha hb hab
rw [mem_liftedGapSection_iff]
refine ⟨hm,?_⟩
change u x+cost x (riemannianExp x (a β€’ p+b β€’ q))+v (riemannianExp x (a β€’ p+b β€’ q))≀r
have HB : cTransform u (riemannianExp x (a β€’ p+b β€’ q))≀
r-u x-cost x (riemannianExp x (a β€’ p+b β€’ q)) := by
rw [cTransform_le_iff hu]
intro z
rw [cost_symm (riemannianExp x (a β€’ p+b β€’ q)) z]
have hcp := dualPair_gap_nonneg hv huv z (riemannianExp x p)
have hcq := dualPair_gap_nonneg hv huv z (riemannianExp x q)
have hpS : u x+cost x (riemannianExp x p)+v (riemannianExp x p)≀r := hp'.2
have hqS : u x+cost x (riemannianExp x q)+v (riemannianExp x q)≀r := hq'.2
have hpB : cost x (riemannianExp x p)-cost z (riemannianExp x p)≀r-u x+u z := by
dsimp [contactGap] at hcp
linarith [hpS]
have hqB : cost x (riemannianExp x q)-cost z (riemannianExp x q)≀r-u x+u z := by
dsimp [contactGap] at hcq
linarith [hqS]
have hmax := (hcomp z).trans (max_le hpB hqB)
linarith
rw [huv.2]
linarith
end WeakMTWTransport
end
end OAI

Xet Storage Details

Size:
3.4 kB
Β·
Xet hash:
88460c5a10508d1624fbcf6adadd626e894cc506fadd2ea9b3a441822b9b4dcc

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