cfahlgren1's picture
download
raw
10.7 kB
import Mathlib
import OAI.Analysis.BiholderTransport.Convexity.AlexandrovDerivative
import OAI.Analysis.BiholderTransport.Contact.AEContacts
import OAI.Analysis.BiholderTransport.Contact.ContactSelection
import OAI.Analysis.BiholderTransport.Convexity.CoordinateSemiconvex
import OAI.Analysis.BiholderTransport.Calculus.Gradient
import OAI.Analysis.BiholderTransport.LinearAlgebra.Aggregate
namespace OAI
section
section
noncomputable section
open Set Filter Manifold Bundle
open scoped Topology ContDiff
namespace WeakMTWTransport
section ContactDifferential
variable {n : โ„•} {M : Type*} [MetricSpace M] [CompactSpace M] [Nonempty M]
[MeasurableSpace M] [BorelSpace 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]
local instance (x : M) : FiniteDimensional โ„ (TangentSpace ๐“˜(โ„,Model n) x) :=
inferInstanceAs (FiniteDimensional โ„ (Model n))
omit [Nonempty M] [MeasurableSpace M] [BorelSpace M] in
lemma exists_normal_local_inverse_at {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
(hp : pโˆˆinjectivityDomain x) :
โˆƒ ฮบ : M โ†’ TangentSpace ๐“˜(โ„,Model n) x,
ฮบ (riemannianExp x p)=p โˆง
ContMDiffAt ๐“˜(โ„,Model n) ๐“˜(โ„,TangentSpace ๐“˜(โ„,Model n) x) โˆž ฮบ (riemannianExp x p) โˆง
โˆ€แถ  y in ๐“ (riemannianExp x p), riemannianExp x (ฮบ y)=y := by
let V := TangentSpace ๐“˜(โ„,Model n) x
let y := riemannianExp x p
let d := extChartAt ๐“˜(โ„,Model n) y
obtain โŸจe,he,hp',hcโŸฉ := exists_coordinate_exp_inverse hp
let ฮบ : M โ†’ V := fun z => e.symm (d z)
have hep : e p=d y := congrFun he p
have hฮบp : ฮบ y=p := by change e.symm _=p; rw [โ†hep]; exact e.left_inv hp'
have hฮบ : ContMDiffAt ๐“˜(โ„,Model n) ๐“˜(โ„,V) โˆž ฮบ y := by
apply ContMDiffAt.comp y _ contMDiffAt_extChartAt
rw [โ†hep]
exact hc.contMDiffAt
refine โŸจฮบ,hฮบp,hฮบ,?_โŸฉ
have hct : โˆ€แถ  z in ๐“ y, d zโˆˆe.target :=
(contMDiffAt_extChartAt (I := ๐“˜(โ„,Model n)) (n := โˆž) (x := y)).continuousAt.preimage_mem_nhds
(by rw [โ†hep]; exact e.open_target.mem_nhds (e.map_source hp'))
have hcs : โˆ€แถ  z in ๐“ y, zโˆˆd.source := extChartAt_source_mem_nhds (I := ๐“˜(โ„,Model n)) y
have hes : โˆ€แถ  z in ๐“ y, riemannianExp x (ฮบ z)โˆˆd.source :=
(((contMDiff_riemannianExp_fiber x).continuous.continuousAt).comp hฮบ.continuousAt).preimage_mem_nhds
(by simp only [Function.comp_apply,hฮบp]; exact extChartAt_source_mem_nhds (I := ๐“˜(โ„,Model n)) y)
filter_upwards [hct,hcs,hes] with z hzt hzs hzes
apply d.injOn hzes hzs
change (fun q => d (riemannianExp x q)) (ฮบ z)=_
rw [โ†he]
exact e.right_inv hzt
def normalHessianOperator (x : M) (p : TangentSpace ๐“˜(โ„,Model n) x) :
TangentSpace ๐“˜(โ„,Model n) x โ†’L[โ„] TangentSpace ๐“˜(โ„,Model n) x :=
(InnerProductSpace.toDual โ„ _).symm.toContinuousLinearEquiv.toContinuousLinearMap.comp
(normalHessian x p)
omit [CompactSpace M] [Nonempty M] [MeasurableSpace M] [BorelSpace M]
[IsContMDiffRiemannianBundle ๐“˜(โ„,Model n) โˆž (Model n)
(fun x : M => TangentSpace ๐“˜(โ„,Model n) x)]
[IsRiemannianManifold ๐“˜(โ„,Model n) M] in
lemma inner_normalHessianOperator (x : M) (p u v : TangentSpace ๐“˜(โ„,Model n) x) :
inner โ„ (normalHessianOperator x p u) v=normalHessian x p u v := by
exact InnerProductSpace.toDual_symm_apply
omit [Nonempty M] [MeasurableSpace M] [BorelSpace M] in
lemma prefixNormalCost_source_hessian_full {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
(hp : pโˆˆinjectivityDomain x) (u v : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (prefixNormalCost x 1)) (0,p) (u,0) (v,0)=normalHessian x p u v := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hp1 : (1:โ„) โ€ข pโˆˆinjectivityDomain x := by simpa only [one_smul] using hp
have hsym := (prefixNormalCost_contDiffAt hp1).isSymmSndFDerivAt
(by simp)
have heq := symmetric_bilinear_eq_of_diagonal
(A := (fderiv โ„ (fderiv โ„ (prefixNormalCost x 1)) (0,p)).bilinearComp
(ContinuousLinearMap.inl โ„ V V) (ContinuousLinearMap.inl โ„ V V))
(B := normalHessian x p)
(fun a b => hsym.eq (a,0) (b,0)) (normalHessian_symm hp)
(fun a => by simpa only [ContinuousLinearMap.bilinearComp_apply,
ContinuousLinearMap.inl_apply,one_smul,div_one] using prefixNormalCost_source_hessian hp1 a)
exact congrArg (fun D : V โ†’L[โ„] V โ†’L[โ„] โ„ => D u v) heq
omit [MeasurableSpace M] [BorelSpace M] [IsManifold ๐“˜(โ„,Model n) โˆž M]
[IsContMDiffRiemannianBundle ๐“˜(โ„,Model n) โˆž (Model n)
(fun x : M => TangentSpace ๐“˜(โ„,Model n) x)]
[IsRiemannianManifold ๐“˜(โ„,Model n) M] in
lemma normal_contact_twist {v : M โ†’ โ„} (hv : Continuous v) {x : M}
{a p : TangentSpace ๐“˜(โ„,Model n) x}
(hB : DifferentiableAt โ„ (prefixNormalCost x 1) (a,p))
(hcontact : contactGap (cTransform v) v (riemannianExp x a) (riemannianExp x p)=0)
{g : TangentSpace ๐“˜(โ„,Model n) x}
(hg : HasFDerivAt (fun h => cTransform v (riemannianExp x h)) (innerSL โ„ g) a) :
(fderiv โ„ (prefixNormalCost x 1) (a,p)).comp
(ContinuousLinearMap.inl โ„ _ _)= -(innerSL โ„ g) := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hmin : IsLocalMin (fun h : V => cTransform v (riemannianExp x h)+
prefixNormalCost x 1 (h,p)) a := by
apply Filter.Eventually.of_forall
intro h
have H := cTransform_gap_nonneg hv (riemannianExp x h) (riemannianExp x p)
simp only [contactGap] at H hcontact
simp only [prefixNormalCost,one_smul,div_one]
linarith
have hd := hB.hasFDerivAt.comp (f := fun h : V => (h,p)) a
((hasFDerivAt_id a).prodMk (hasFDerivAt_const p a))
have hz := hmin.hasFDerivAt_eq_zero (hg.add hd)
have H : innerSL โ„ g+(fderiv โ„ (prefixNormalCost x 1) (a,p)).comp
(ContinuousLinearMap.inl โ„ V V)=0 := by simpa only [ContinuousLinearMap.inl] using hz
exact eq_neg_of_add_eq_zero_right H
omit [MeasurableSpace M] [BorelSpace M] in
lemma contact_selection_normal_differential {v : M โ†’ โ„} (hv : Continuous v) {x : M}
{p : TangentSpace ๐“˜(โ„,Model n) x} (hp : pโˆˆactiveLogs (n := n) v x)
(hpI : pโˆˆinjectivityDomain x)
(hDiff : MDifferentiableAt ๐“˜(โ„,Model n) ๐“˜(โ„,โ„) (cTransform v) x)
{A : TangentSpace ๐“˜(โ„,Model n) x โ†’L[โ„] TangentSpace ๐“˜(โ„,Model n) x}
(hA : โˆ€ u w, inner โ„ (A u) w=inner โ„ u (A w))
(hexp : HasQuadraticExpansion (fun h => cTransform v (riemannianExp x h)) p A)
{T : M โ†’ M} (hT : โˆ€ z, contactGap (cTransform v) v z (T z)=0) :
โˆƒ r>0, โˆƒ q : TangentSpace ๐“˜(โ„,Model n) x โ†’ TangentSpace ๐“˜(โ„,Model n) x,
q 0=p โˆง ContinuousAt q 0 โˆง
(โˆ€แถ  h in ๐“ 0, riemannianExp x (q h)=T (riemannianExp x h)) โˆง
HasFDerivWithinAt q (normalHessianOperator x p+A)
{h | hโˆˆMetric.ball 0 r โˆง DifferentiableAt โ„ (fun z => cTransform v (riemannianExp x z)) h} 0 := by
let V := TangentSpace ๐“˜(โ„,Model n) x
let f : V โ†’ โ„ := fun h => cTransform v (riemannianExp x h)
have hTx : T x=riemannianExp x p := contact_unique_of_mdifferentiable hv hDiff (hT x) hp.2
have hTc : ContinuousAt T x := contact_selection_continuousAt (continuous_cTransform hv) hv hT
(fun y hy => contact_unique_of_mdifferentiable hv hDiff hy (hT x))
obtain โŸจฮบ,hฮบ0,hฮบ,hฮบrightโŸฉ := exists_normal_local_inverse_at hpI
let q : V โ†’ V := fun h => ฮบ (T (riemannianExp x h))
have hq0 : q 0=p := by simp only [q,riemannianExp_zero,hTx,hฮบ0]
have hTc' : ContinuousAt T (riemannianExp (n := n) x (0:V)) := by
simpa only [riemannianExp_zero] using hTc
have hcT : ContinuousAt (fun h : V => T (riemannianExp x h)) 0 :=
hTc'.comp (contMDiff_riemannianExp_fiber x 0).continuousAt
have hฮบ' : ContinuousAt ฮบ (T (riemannianExp (n := n) x (0:V))) := by
simpa only [riemannianExp_zero,hTx] using hฮบ.continuousAt
have hqc : ContinuousAt q 0 := hฮบ'.comp (f := fun h : V => T (riemannianExp x h)) hcT
have hqright : โˆ€แถ  h in ๐“ (0:V), riemannianExp x (q h)=T (riemannianExp x h) :=
(show Tendsto (fun h : V => T (riemannianExp x h)) (๐“ 0) (๐“ (riemannianExp x p)) from by
simpa only [ContinuousAt,riemannianExp_zero,hTx] using hcT).eventually hฮบright
obtain โŸจr,hr,K,hK,hconvโŸฉ := cTransform_uniform_smooth_coordinate_semiconvex
(contMDiff_riemannianExp_fiber (n := n) x 0)
let s : Set V := {h | hโˆˆMetric.ball 0 r โˆง DifferentiableAt โ„ f h}
let g : V โ†’ V := fun h => (InnerProductSpace.toDual โ„ V).symm (fderiv โ„ f h)
have hg0 : g 0=p := by
change (InnerProductSpace.toDual โ„ V).symm (fderiv โ„ f 0)=p
rw [hexp.hasFDerivAt.fderiv]
exact (InnerProductSpace.toDual โ„ V).symm_apply_apply p
have hgD (h : V) (hh : hโˆˆs) : HasFDerivAt f (innerSL โ„ (g h)) h := by
apply hh.2.hasFDerivAt.congr_fderiv
exact ((InnerProductSpace.toDual โ„ V).apply_symm_apply _).symm
have hg := semiconvex_gradient_hasFDerivWithinAt hA hexp hr (K := 2*K)
(by simpa only [mul_div_cancel_leftโ‚€ K (show (2:โ„)โ‰ 0 by norm_num)] using hconv v hv)
have hp1 : (1:โ„) โ€ข pโˆˆinjectivityDomain x := by simpa only [one_smul] using hpI
have hB := (prefixNormalCost_contDiffAt hp1).of_le (m := 2)
(ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)
have hnearB : โˆ€แถ  h in ๐“ (0:V), DifferentiableAt โ„ (prefixNormalCost x 1) (h,q h) := by
have H := (hB.eventually (by norm_num)).mono
(fun z hz => hz.differentiableAt (by norm_num))
apply (continuousAt_id.prodMk hqc).tendsto.eventually
simpa only [hq0,id_eq] using H
refine โŸจr,hr,q,hq0,hqc,hqright,?_โŸฉ
apply twist_hasFDerivWithinAt hB
ยท intro u w
rw [prefixNormalCost_source_hessian_full hpI,inner_normalHessianOperator]
ยท intro u w
rw [hB.isSymmSndFDerivAt (by norm_num) |>.eq]
simpa only [real_inner_comm] using (prefixNormalCost_hessian_blocks (show (0:โ„)<1 by norm_num) hp1 w u).1
ยท exact hq0
ยท exact hqc
ยท exact hg
ยท filter_upwards [self_mem_nhdsWithin,mem_nhdsWithin_of_mem_nhds hqright,
mem_nhdsWithin_of_mem_nhds hnearB] with h hh he hB'
apply normal_contact_twist hv hB' _ (hgD h hh)
rw [he]
exact hT _
ยท apply normal_contact_twist hv (hB.differentiableAt (by norm_num))
ยท simpa only [riemannianExp_zero] using hp.2
ยท change HasFDerivAt f (innerSL โ„ (g 0)) 0
rw [hg0]
exact hexp.hasFDerivAt
end ContactDifferential
end WeakMTWTransport
end
end
end
end OAI

Xet Storage Details

Size:
10.7 kB
ยท
Xet hash:
395858255a3bc5736894d5c08963756f6a0467a5c87205d04a36174bcae0b8bc

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