cfahlgren1's picture
download
raw
4.62 kB
import Mathlib
import OAI.Analysis.BiholderTransport.Contact.ActiveLocalGrowth
import OAI.Analysis.BiholderTransport.Calculus.SecondFderivScalarComp
namespace OAI
noncomputable section
open Set Filter Manifold Bundle
open scoped Topology ContDiff
namespace WeakMTWTransport
variable {n : β„•} {M : Type*} [MetricSpace M] [CompactSpace M]
[ChartedSpace (Model n) M] [IsManifold π“˜(ℝ,Model n) ∞ M]
[RiemannianBundle (fun x : M => TangentSpace π“˜(ℝ,Model n) x)]
[IsContMDiffRiemannianBundle π“˜(ℝ,Model n) ∞ (Model n)
(fun x : M => TangentSpace π“˜(ℝ,Model n) x)]
[IsRiemannianManifold π“˜(ℝ,Model n) M]
def scalarCostSupport (Ο† : ℝ β†’ ℝ) (v0 : ℝ) (x : M)
(p : TangentSpace π“˜(ℝ,Model n) x) (s : ℝ) (y : M) : ℝ :=
Ο† (v0+cost x (riemannianExp x (s β€’ p))/s-cost y (riemannianExp x (s β€’ p))/s)
omit [CompactSpace M] [IsManifold π“˜(ℝ,Model n) ∞ M]
[IsContMDiffRiemannianBundle π“˜(ℝ,Model n) ∞ (Model n)
(fun x : M => TangentSpace π“˜(ℝ,Model n) x)]
[IsRiemannianManifold π“˜(ℝ,Model n) M] in
lemma scalarCostSupport_self (Ο† : ℝ β†’ ℝ) (v0 : ℝ) (x : M)
(p : TangentSpace π“˜(ℝ,Model n) x) (s : ℝ) :
scalarCostSupport Ο† v0 x p s x=Ο† v0 := by simp [scalarCostSupport]
lemma scalarCostSupport_lower {u v : M β†’ ℝ} (hu : Continuous u)
(hdual : IsCostDualPair u v) {Ο† : ℝ β†’ ℝ} (hΟ† : Monotone Ο†) {x : M}
{p : TangentSpace π“˜(ℝ,Model n) x} (hp : p∈minimizingVectors x)
(hc : contactGap v u x (riemannianExp x p)=0) {s : ℝ} (hs : 0<s) (hs1 : s<1)
(y : M) : scalarCostSupport Ο† (v x) x p s y≀φ (v y) := by
have ha : contactGap (cTransform u) u x (riemannianExp x p)=0 := by rwa [←hdual.2]
have H := active_split_lower_support hu hp ha hs hs1 y
rw [←hdual.2] at H
apply hφ
rw [neg_sub,sub_div] at H
linarith only [H]
lemma scalarCostSupport_normal_jet {Ο† : ℝ β†’ ℝ} {v0 l : ℝ} {x : M}
{p : TangentSpace π“˜(ℝ,Model n) x} {s : ℝ} (hs : sβ‰ 0)
(hp : s β€’ p∈injectivityDomain x) (hΟ† : ContDiffAt ℝ 2 Ο† v0)
(hl : deriv Ο† v0=l) :
ContDiffAt ℝ 2 (fun h : TangentSpace π“˜(ℝ,Model n) x =>
scalarCostSupport Ο† v0 x p s (riemannianExp x h)) 0 ∧
HasFDerivAt (fun h : TangentSpace π“˜(ℝ,Model n) x =>
scalarCostSupport Ο† v0 x p s (riemannianExp x h)) (innerSL ℝ (l β€’ p)) 0 ∧
βˆ€ ΞΎ : TangentSpace π“˜(ℝ,Model n) x,
fderiv ℝ (fderiv ℝ (fun h => scalarCostSupport Ο† v0 x p s (riemannianExp x h))) 0 ΞΎ ΞΎ =
-(l/s)*hessianValue x (s β€’ p) ΞΎ+iteratedDeriv 2 Ο† v0*(inner ℝ p ΞΎ)^2 := by
let C := normalCost x (s β€’ p)
let f := fun h : TangentSpace π“˜(ℝ,Model n) x => v0+C 0/s+(-s⁻¹)*C h
have hf0 : f 0=v0 := by dsimp [f]; ring
have hC : ContDiffAt ℝ 2 C 0 :=
(normalCost_contDiffAt hp).of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)
have hf : ContDiffAt ℝ 2 f 0 := contDiffAt_const.add (contDiffAt_const.mul hC)
have hD : HasFDerivAt f (innerSL ℝ p) 0 := by
apply (((normalCost_hasFDerivAt_zero hp).const_mul (-s⁻¹)).const_add (v0+C 0/s)).congr_fderiv
ext h
simp only [_root_.smul_apply,smul_eq_mul,innerSL_apply_apply,inner_neg_left,real_inner_smul_left]
field_simp
have he (h : TangentSpace π“˜(ℝ,Model n) x) :
scalarCostSupport Ο† v0 x p s (riemannianExp x h)=Ο† (f h) := by
dsimp [scalarCostSupport,f,C,normalCost]
rw [riemannianExp_zero]
congr 1
ring
have heq : (fun h => scalarCostSupport Ο† v0 x p s (riemannianExp x h))=fun h => Ο† (f h) := funext he
rw [heq]
have hΟ†f : ContDiffAt ℝ 2 Ο† (f 0) := hf0.symm β–Έ hΟ†
refine ⟨hΟ†f.comp 0 hf,?_,?_⟩
· have H := (hφf.differentiableAt (by norm_num)).hasDerivAt.comp_hasFDerivAt 0 hD
rw [hf0,hl] at H
apply H.congr_fderiv
ext h
simp only [_root_.smul_apply,smul_eq_mul,innerSL_apply_apply,real_inner_smul_left]
Β· intro ΞΎ
rw [second_fderiv_scalar_comp hf hφf ξ,hf0,hl,hD.fderiv]
have H : fderiv ℝ (fderiv ℝ f) 0 ΞΎ ΞΎ=(-s⁻¹)*hessianValue x (s β€’ p) ΞΎ := by
have hd : fderiv ℝ f=fun h => (-s⁻¹) β€’ fderiv ℝ C h := by
funext h
dsimp only [f]
rw [fderiv_const_add]
exact congrFun (fderiv_const_smul_field (π•œ := ℝ) (f := C) (-s⁻¹)) h
rw [hd]
change fderiv ℝ ((-s⁻¹) β€’ fderiv ℝ C) 0 ΞΎ ΞΎ = _
rw [fderiv_const_smul_field (π•œ := ℝ) (f := fderiv ℝ C) (-s⁻¹)]
rw [hessianValue_eq_normalHessian hp]
rfl
rw [H]
simp only [innerSL_apply_apply]
ring
end WeakMTWTransport
end
end OAI

Xet Storage Details

Size:
4.62 kB
Β·
Xet hash:
9ddeb3bd41f2a9bdb26c6ed740c082d6869e27e97d093f09283d141883e08dd6

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