Buckets:
| 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.