cfahlgren1's picture
download
raw
5.29 kB
import Mathlib
import OAI.Analysis.BiholderTransport.Regularity.SplitEndpointCost
import OAI.Analysis.BiholderTransport.Calculus.JetPullback
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]
lemma splitEndpointCost_source_hessian {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{s : โ„} (hleft : s โ€ข p โˆˆ injectivityDomain x)
(hright : (1-s) โ€ข (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
injectivityDomain (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1)
(a : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (splitEndpointCost x s)) (0,p) (a,0) (a,0) =
hessianValue x (s โ€ข p) a / s := by
have hC := (splitEndpointCost_contDiffAt hleft hright).of_le
(m := 2) (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)
have H := iteratedDeriv_two_affine_line hC (a,0)
rw [โ† H]
have he : (fun r : โ„ => splitEndpointCost x s ((0,p)+r โ€ข (a,0))) =
(fun r => cost (riemannianExp x (s โ€ข p)) (riemannianExp x p)/(1-s) +
cost (riemannianExp x (r โ€ข a)) (riemannianExp x (s โ€ข p))/s) := by
funext r
simp only [splitEndpointCost, splitNormalAction, Prod.fst_add,Prod.snd_add,
Prod.smul_fst,Prod.smul_snd,smul_zero,zero_add,add_zero]
exact add_comm _ _
rw [he,iteratedDeriv_const_add (by norm_num : 0<2),iteratedDeriv_div_const]
rfl
lemma splitEndpointCost_endpoint_gradient {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{s : โ„} (hs : 0<s) (hs1 : s<1)
(hleft : s โ€ข p โˆˆ injectivityDomain x)
(hright : (1-s) โ€ข (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
injectivityDomain (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1)
(d : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (splitEndpointCost x s) (0,p) (0,d) = inner โ„ p d := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hC := (splitEndpointCost_contDiffAt hleft hright).differentiableAt (by simp)
have hL : HasFDerivAt (fun v : V => ((0:V),v))
((0 : V โ†’L[โ„] V).prod (ContinuousLinearMap.id โ„ V)) p :=
(hasFDerivAt_const (0:V) p).prodMk (hasFDerivAt_id (๐•œ := โ„) p)
have hd := (hC.hasFDerivAt.comp (f := fun v : V => ((0:V),v)) p hL).congr_of_eventuallyEq
(splitEndpointCost_axis_near hs hs1 hleft hright).symm
have he := congrArg (fun A : V โ†’L[โ„] โ„ => A d) (hd.unique (half_norm_sq_hasFDerivAt p))
simpa only [ContinuousLinearMap.comp_apply,ContinuousLinearMap.prod_apply,zero_apply,
ContinuousLinearMap.id_apply,innerSL_apply_apply] using he
lemma splitEndpointCost_endpoint_hessian {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{s : โ„} (hs : 0<s) (hs1 : s<1)
(hleft : s โ€ข p โˆˆ injectivityDomain x)
(hright : (1-s) โ€ข (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
injectivityDomain (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1)
(d e : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (splitEndpointCost x s)) (0,p) (0,d) (0,e) = inner โ„ d e := by
let V := TangentSpace ๐“˜(โ„,Model n) x
let L : V โ†’L[โ„] Vร—V := (0 : V โ†’L[โ„] V).prod (ContinuousLinearMap.id โ„ V)
have hC := (splitEndpointCost_contDiffAt hleft hright).of_le
(m := 2) (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)
have heq := ((splitEndpointCost_axis_near hs hs1 hleft hright).fderiv (๐•œ := โ„)).fderiv_eq (๐•œ := โ„)
have he := congrArg (fun A : V โ†’L[โ„] V โ†’L[โ„] โ„ => A d e) heq
have H := second_fderiv_comp_affine L (0:Vร—V) p
(by simpa only [L,ContinuousLinearMap.prod_apply,zero_apply,
ContinuousLinearMap.id_apply,zero_add] using hC) d e
simp only [L,ContinuousLinearMap.prod_apply,zero_apply,
ContinuousLinearMap.id_apply,zero_add] at H
rw [โ† H,he,half_norm_sq_second_fderiv]
lemma splitEndpointCost_hessian_diag {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{s : โ„} (hs : 0<s) (hs1 : s<1)
(hleft : s โ€ข p โˆˆ injectivityDomain x)
(hright : (1-s) โ€ข (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).2 โˆˆ
injectivityDomain (sprayFlow s (โŸจx,pโŸฉ : TangentBundle ๐“˜(โ„,Model n) M)).1)
(a d : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (splitEndpointCost x s)) (0,p) (a,d) (a,d) =
hessianValue x (s โ€ข p) a / s - 2*inner โ„ a d + โ€–dโ€–^2 := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hsplit : (a,d)=((a,0):Vร—V)+(0,d) := by simp
have hsym := (splitEndpointCost_contDiffAt hleft hright).isSymmSndFDerivAt
(by simp)
rw [hsplit]
simp only [map_add,add_apply]
rw [splitEndpointCost_source_hessian hleft hright,
hsym.eq (a,0) (0,d),
splitEndpointCost_mixed hs.ne' hleft hright,
splitEndpointCost_endpoint_hessian hs hs1 hleft hright]
rw [real_inner_self_eq_norm_sq,real_inner_comm d a]
ring
end WeakMTWTransport
end
end OAI

Xet Storage Details

Size:
5.29 kB
ยท
Xet hash:
2e5d78793e3f5381f14f36c7474e60c4e756736d5073058d11d446cdbfcb7e2c

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