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