Buckets:
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Regularity.NormLower | |
| import OAI.Analysis.BiholderTransport.Coordinates.CoordinateTrueLog | |
| import OAI.Analysis.BiholderTransport.LinearAlgebra.BranchDividedBaseline | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open Set Filter Manifold Bundle | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| section BranchChartBaseline | |
| variable {n : β} {M : Type*} [MetricSpace M] [CompactSpace M] [Nonempty 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] | |
| omit [Nonempty M] in | |
| lemma exists_branch_chart_baseline {a:M} {r : TangentSpace π(β,Model n) a} | |
| (hr : rβminimizingVectors a) {G : MΓM β β} | |
| (hG : ContMDiffAt (π(β,Model n).prod π(β,Model n)) π(β,β) β G | |
| (a,riemannianExp a r)) | |
| (hagree : βαΆ z in π (β¨a,rβ© : TangentBundle π(β,Model n) M), | |
| z.2βinjectivityDomain z.1 β | |
| (fun q:MΓM => cost q.1 q.2) =αΆ [π (z.1,riemannianExp z.1 z.2)] G) | |
| {l:β} (hl : 1<l) : | |
| let z := extChartAt π(β,Model n) a a | |
| let c := fun w:Model n => G ((extChartAt π(β,Model n) a).symm w,riemannianExp a r) | |
| ContDiffAt β 2 c z β§ | |
| β L:Model n βL[β] β, fderiv β c z= -l β’ L β§ | |
| chartGradientVector a z LβinjectivityDomain ((extChartAt π(β,Model n) a).symm z) β§ | |
| β m>0,β d:Model n,m*βdβ^2β€ | |
| l*fderiv β (fderiv β (chartCost a (coordinateBackward a (-1,z,L)))) z d d- | |
| fderiv β (fderiv β c) z d d := by | |
| dsimp only | |
| let z := extChartAt π(β,Model n) a a | |
| let V := TangentSpace π(β,Model n) a | |
| let c := fun w:Model n => G ((extChartAt π(β,Model n) a).symm w,riemannianExp a r) | |
| let b := riemannianExp a (lβ»ΒΉ β’ r) | |
| let cN : V β β := fun v => G (riemannianExp a v,riemannianExp a r) | |
| let cT := normalCost a (lβ»ΒΉ β’ r) | |
| have hlp : 0<l := zero_lt_one.trans hl | |
| have ht : 0<lβ»ΒΉ := inv_pos.mpr hlp | |
| have ht1 : lβ»ΒΉ<1 := (inv_lt_oneβ hlp).mpr hl | |
| have hp := contracted_minimizer_mem_injectivityDomain hr ht ht1 | |
| obtain β¨m,hm,Hmβ© := exists_branch_divided_baseline hr ht ht1 hG hagree | |
| have hCJ := cost_branch_normal_jets (r := r) (T := (1:β)) (by norm_num) | |
| (by simpa only [one_smul] using hG) (by simpa only [one_smul] using hagree) | |
| (fun s hs => contracted_minimizer_mem_injectivityDomain hr hs.1 hs.2) | |
| have hcN : ContDiffAt β 2 cN 0 := by | |
| have hh : ContDiffAt β β cN 0 := by simpa only [cN,one_smul] using hCJ.1 | |
| exact hh.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) | |
| have hcND : fderiv β cN 0=innerSL β (-r) := by simpa only [cN,one_smul] using hCJ.2.1.fderiv | |
| have hcT : ContDiffAt β 2 cT 0 := | |
| (normalCost_contDiffAt hp).of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) | |
| obtain β¨L,hLreg,hLb,hLDβ© := exists_chart_covector_for_log hp | |
| obtain β¨e,he,he0,hei,hiβ© := exists_smooth_chart_fiber_log (a := a) | |
| (zero_mem_injectivityDomain (n := n) a) | |
| (by simpa only [riemannianExp_zero] using mem_extChartAt_source (I := π(β,Model n)) a) | |
| simp only [riemannianExp_zero] at he he0 hei hi | |
| change ContDiffAt β β e z at he | |
| change e z=0 at he0 | |
| change Function.Injective (fderiv β e z) at hi | |
| have he2 : ContDiffAt β 2 e z := he.of_le (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) | |
| obtain β¨k,hk,Hkβ© := exists_norm_sq_lower_of_injective (fderiv β e z) hi | |
| have hce : c =αΆ [π z] (fun w => cN (e w)) := by | |
| filter_upwards [hei] with w hw | |
| simp only [c,cN,hw] | |
| have hTe : chartCost a b =αΆ [π z] (fun w => cT (e w)) := by | |
| filter_upwards [hei] with w hw | |
| simp only [cT,b,normalCost,chartCost,hw] | |
| have hc : ContDiffAt β 2 c z := ((he0.symm βΈ hcN).comp z he2).congr_of_eventuallyEq hce | |
| have hT : ContDiffAt β 2 (chartCost a b) z := ((he0.symm βΈ hcT).comp z he2).congr_of_eventuallyEq hTe | |
| have hstat : fderiv β (fun v => l*cT v-cN v) 0=0 := by | |
| rw [fderiv_fun_sub ((hcT.differentiableAt (by norm_num)).const_mul _) (hcN.differentiableAt (by norm_num))] | |
| change fderiv β (l β’ cT) 0-fderiv β cN 0=0 | |
| rw [fderiv_const_smul_field,Pi.smul_apply,hcND,(normalCost_hasFDerivAt_zero hp).fderiv] | |
| simp only [map_neg,map_smul,smul_neg,smul_smul,mul_inv_cancelβ hlp.ne',one_smul,sub_self] | |
| have hstatC : fderiv β (fun w => l*chartCost a b w-c w) z=0 := by | |
| have H : (fun w => l*chartCost a b w-c w)=αΆ [π z] (fun w => l*cT (e w)-cN (e w)) := by | |
| filter_upwards [hTe,hce] with w hw hw' | |
| rw [hw,hw'] | |
| rw [H.fderiv_eq,fderiv_fun_comp z (g := fun v:V => l*cT v-cN v) | |
| (by simpa only [he0] using (((contDiffAt_const (c := l)).mul hcT).sub hcN).differentiableAt (by norm_num)) | |
| (he2.differentiableAt (by norm_num)),he0,hstat,ContinuousLinearMap.zero_comp] | |
| have hcD : fderiv β c z= -l β’ L := by | |
| rw [fderiv_fun_sub ((hT.differentiableAt (by norm_num)).const_mul _) (hc.differentiableAt (by norm_num))] at hstatC | |
| change fderiv β (l β’ chartCost a b) z-fderiv β c z=0 at hstatC | |
| rw [fderiv_const_smul_field,Pi.smul_apply,hLD.fderiv] at hstatC | |
| calc | |
| _ = l β’ (-L) := (sub_eq_zero.mp hstatC).symm | |
| _ = -l β’ L := by ext d; simp only [smul_apply,neg_apply,smul_eq_mul,mul_neg,neg_mul] | |
| refine β¨hc,L,hcD,hLreg,m*k,mul_pos hm hk,?_β© | |
| intro d | |
| have HF := second_fderiv_comp_stationary (f := fun v => l*cT v-cN v) (g := e) | |
| (he0.symm βΈ (contDiffAt_const.mul hcT).sub hcN) he2 (by rwa [he0]) d d | |
| rw [he0,second_fderiv_sub (contDiffAt_const.mul hcT) hcN,second_fderiv_const_mul] at HF | |
| have H : (fun w => l*chartCost a b w-c w)=αΆ [π z] (fun w => l*cT (e w)-cN (e w)) := by | |
| filter_upwards [hTe,hce] with w hw hw' | |
| rw [hw,hw'] | |
| have HH := congrArg (fun A:Model n βL[β] Model n βL[β] β => A d d) H.fderiv.fderiv_eq | |
| rw [second_fderiv_sub (contDiffAt_const.mul hT) hc,second_fderiv_const_mul] at HH | |
| rw [hLb,HH,HF] | |
| have Hb := Hm (fderiv β e z d) | |
| rw [hessianValue_eq_normalHessian hp] at Hb | |
| change m*βfderiv β e z dβ^2β€ | |
| fderiv β (fderiv β cT) 0 (fderiv β e z d) (fderiv β e z d)/lβ»ΒΉ- | |
| fderiv β (fderiv β cN) 0 (fderiv β e z d) (fderiv β e z d) at Hb | |
| rw [div_inv_eq_mul] at Hb | |
| nlinarith only [Hb,mul_le_mul_of_nonneg_left (Hk d) hm.le] | |
| end BranchChartBaseline | |
| end WeakMTWTransport | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 6.56 kB
- Xet hash:
- ea235f0e474ea160ee796b94c96ab90a6582ea5b014ae3c76691bdc75ad27f1b
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.