cfahlgren1's picture
download
raw
4.2 kB
import Mathlib
import OAI.Analysis.BiholderTransport.Calculus.JetPullback
import OAI.Analysis.BiholderTransport.Regularity.PrefixAction
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 prefixAction_source_hessian {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{t : โ„} (hp : t โ€ข p โˆˆ injectivityDomain x)
(a : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (prefixAction x t)) (0,p) (a,0) (a,0) =
hessianValue x (t โ€ข p) a/t := by
have hC := (prefixAction_contDiffAt hp).of_le
(m := 2) (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)
rw [โ†iteratedDeriv_two_affine_line hC (a,0)]
simp only [prefixAction,Prod.fst_add,Prod.snd_add,Prod.smul_fst,Prod.smul_snd,
smul_zero,zero_add,add_zero]
change iteratedDeriv 2 (fun r : โ„ =>
cost (riemannianExp x (r โ€ข a)) (riemannianExp x (t โ€ข p))/t) 0 = _
rw [iteratedDeriv_div_const]
rfl
lemma prefixAction_endpoint_gradient {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{t : โ„} (hp : t โ€ข p โˆˆ injectivityDomain x)
(d : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (prefixAction x t) (0,p) (0,d) = t*inner โ„ p d := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hD := (prefixAction_contDiffAt hp).differentiableAt (by simp)
have hL := (hasFDerivAt_const (0:V) p).prodMk (hasFDerivAt_id (๐•œ := โ„) p)
have H := (hD.hasFDerivAt.comp (f := fun v : V => ((0:V),v)) p hL).congr_of_eventuallyEq
(prefixAction_axis_near hp).symm
have he := congrArg (fun A : V โ†’L[โ„] โ„ => A d)
(H.unique ((half_norm_sq_hasFDerivAt p).const_smul t))
simp only [ContinuousLinearMap.comp_apply,ContinuousLinearMap.prod_apply,
zero_apply,smul_apply,smul_eq_mul,innerSL_apply_apply] at he
exact he
lemma prefixAction_endpoint_hessian {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{t : โ„} (hp : t โ€ข p โˆˆ injectivityDomain x)
(d e : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (prefixAction x t)) (0,p) (0,d) (0,e) = t*inner โ„ d e := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hC := (prefixAction_contDiffAt hp).of_le
(m := 2) (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2)
have he := ((prefixAction_axis_near hp).fderiv (๐•œ := โ„)).fderiv_eq (๐•œ := โ„)
let L : V โ†’L[โ„] Vร—V := (0:V โ†’L[โ„] V).prod (ContinuousLinearMap.id โ„ V)
have H := second_fderiv_comp_affine L 0 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]
have hg : fderiv โ„ (fun v : V => t*(โ€–vโ€–^2/2)) =
(fun v => t โ€ข innerSL โ„ v) := by
funext v
exact ((half_norm_sq_hasFDerivAt v).const_smul t).fderiv
rw [hg]
have hD : HasFDerivAt (fun v : V => t โ€ข innerSL โ„ v) (t โ€ข innerSL โ„) p := by
convert! ((innerSL โ„).hasFDerivAt (x := p)).const_smul t using 1
rw [hD.fderiv]
rfl
lemma prefixAction_hessian_diag {x : M} {p : TangentSpace ๐“˜(โ„,Model n) x}
{t : โ„} (ht : tโ‰ 0) (hp : t โ€ข p โˆˆ injectivityDomain x)
(a d : TangentSpace ๐“˜(โ„,Model n) x) :
fderiv โ„ (fderiv โ„ (prefixAction x t)) (0,p) (a,d) (a,d) =
hessianValue x (t โ€ข p) a/t-2*inner โ„ a d+t*โ€–dโ€–^2 := by
let V := TangentSpace ๐“˜(โ„,Model n) x
have hsplit : (a,d)=((a,0):Vร—V)+(0,d) := by simp
have hsym := (prefixAction_contDiffAt hp).isSymmSndFDerivAt
(by simp)
rw [hsplit]
simp only [map_add,add_apply]
rw [prefixAction_source_hessian hp,hsym.eq (a,0) (0,d),
prefixAction_mixed ht hp,prefixAction_endpoint_hessian hp]
rw [real_inner_self_eq_norm_sq,real_inner_comm d a]
ring
end WeakMTWTransport
end
end OAI

Xet Storage Details

Size:
4.2 kB
ยท
Xet hash:
e1b965ac4a2359ecd88995bb10122f5522cab5b4bae7c0ff0dd90fa55ed14d66

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