Buckets:
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Coordinates.ChartCostJets | |
| import OAI.Analysis.BiholderTransport.LinearAlgebra.CompactCrossing | |
| namespace OAI | |
| noncomputable section | |
| open Set Filter Manifold Bundle Module | |
| 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] | |
| local instance tangentFiniteUniformExpJac (x : M) : | |
| FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| end WeakMTWTransport | |
| end | |
| noncomputable section | |
| open Set Filter Metric | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| variable {Q E : Type*} [NormedAddCommGroup Q] [NormedSpace β Q] | |
| [NormedAddCommGroup E] [NormedSpace β E] [FiniteDimensional β E] | |
| lemma compact_bilinear_interval_crossing {K : Set Q} (hK : IsCompact K) | |
| {H : βΓQ β E βL[β] E βL[β] β} | |
| (hH : β qβK, ContDiffAt β β H (1,q)) | |
| (hneg : β qβK, β v:E, βvβ=1 β 0 < -(fderiv β H (1,q) (1,0) v v)) : | |
| β c > 0, β C > 0, β Ξ΅ > 0, | |
| β s t : β, sβball 1 Ξ΅ β tβball 1 Ξ΅ β sβ€t β β qβK, β v:E, | |
| c*(t-s)*βvβ^2 β€ H (s,q) v v-H (t,q) v v β§ | |
| H (s,q) v v-H (t,q) v v β€ C*(t-s)*βvβ^2 := by | |
| let J : βΓQ β E βL[β] E βL[β] β := fun z => fderiv β H z (1,0) | |
| have hJ : β qβK, ContinuousAt J (1,q) := by | |
| intro q hq | |
| exact ((hH q hq).continuousAt_fderiv (by simp)).clm_apply continuousAt_const | |
| let S : Set (QΓE) := K ΓΛ’ sphere (0:E) 1 | |
| have hS : IsCompact S := hK.prod (isCompact_sphere _ _) | |
| let F : βΓ(QΓE) β β := fun z => -(J (z.1,z.2.1) z.2.2 z.2.2) | |
| have hF : β zβS, ContinuousAt F (1,z) := by | |
| intro z hz | |
| exact ((((hJ z.1 hz.1).comp (x := (1,z)) | |
| (continuousAt_fst.prodMk continuousAt_snd.fst)).clm_apply | |
| continuousAt_snd.snd).clm_apply continuousAt_snd.snd).neg | |
| have hFc : ContinuousOn (fun z => F (1,z)) S := by | |
| intro z hz | |
| exact ((hF z hz).comp (x := z) (continuousAt_const.prodMk continuousAt_id)).continuousWithinAt | |
| obtain β¨c,hc,HSβ© : β c>0, β zβS, c < F (1,z) := by | |
| by_cases hne : S.Nonempty | |
| Β· obtain β¨z,hz,hminβ© := hS.exists_isMinOn hne hFc | |
| have hp : 0 < F (1,z) := hneg z.1 hz.1 z.2 | |
| (by simpa only [mem_sphere,dist_zero_right] using hz.2) | |
| exact β¨F (1,z)/2,half_pos hp,fun y hy => (half_lt_self hp).trans_le (hmin hy)β© | |
| Β· exact β¨1,zero_lt_one,fun z hz => (hne β¨z,hzβ©).elimβ© | |
| have HF : βαΆ t in π (1:β), β zβS, c < F (t,z) := | |
| hS.eventually_forall_of_forall_eventually (fun z hz => | |
| (continuousAt_const.eventually_lt (hF z hz) (HS z hz))) | |
| obtain β¨C,hC,HCβ© := compact_eventually_fiberwise_bound hK | |
| (f := fun _ : Q => ()) continuous_const (g := fun _ : β => ()) | |
| (continuousAt_const (x := 1)) (h := J) (fun q hq _ => hJ q hq) | |
| have HD : βαΆ t in π (1:β), β qβK, DifferentiableAt β H (t,q) := | |
| hK.eventually_forall_of_forall_eventually (fun q hq => | |
| (((hH q hq).of_le (m := 1) (ENat.natCast_le_of_coe_top_le_withTop le_rfl 1)).eventually (by simp)).mono (fun z hz => hz.differentiableAt (by norm_num))) | |
| obtain β¨Ξ΅,hΞ΅,HΞ΅β© := Metric.mem_nhds_iff.mp (HF.and (HC.and HD)) | |
| refine β¨c,hc,C,hC,Ξ΅,hΞ΅,?_β© | |
| intro tβ tβ htβ htβ htt q hq v | |
| have hall : β sβIcc tβ tβ, | |
| DifferentiableAt β (fun s => H (s,q) v v) s β§ | |
| deriv (fun s => H (s,q) v v) s β€ -c*βvβ^2 β§ | |
| -C*βvβ^2 β€ deriv (fun s => H (s,q) v v) s := by | |
| intro s hs | |
| have hsb : sβball (1:β) Ξ΅ := by | |
| rw [mem_ball,Real.dist_eq,abs_lt] at htβ htβ β’ | |
| constructor <;> linarith only [htβ.1,htβ.2,htβ.1,htβ.2,hs.1,hs.2] | |
| have HE := HΞ΅ hsb | |
| have HDs := bilinear_time_hasDerivAt (HE.2.2 q hq) v | |
| refine β¨HDs.differentiableAt,?_,?_β© | |
| Β· rw [HDs.deriv] | |
| have HL := bilinear_lower_of_unit (-J (s,q)) (c := c) (by | |
| intro w hw | |
| have H := (HE.1 (q,w) β¨hq,by simpa only [mem_sphere,dist_zero_right] using hwβ©).le | |
| exact H) v | |
| change c*βvβ^2 β€ -(J (s,q) v v) at HL | |
| change J (s,q) v v β€ -c*βvβ^2 | |
| linarith only [HL] | |
| Β· rw [HDs.deriv] | |
| have HL := (bilinear_diag_abs_le (J (s,q)) v).trans | |
| (mul_le_mul_of_nonneg_right (HE.2.1 q hq rfl) (sq_nonneg βvβ)) | |
| have HL' := (abs_le.mp HL).1 | |
| change -C*βvβ^2 β€ J (s,q) v v | |
| linarith only [HL'] | |
| have Hcont : ContinuousOn (fun s => H (s,q) v v) (Icc tβ tβ) := | |
| fun s hs => (hall s hs).1.continuousAt.continuousWithinAt | |
| have HDiff : DifferentiableOn β (fun s => H (s,q) v v) (interior (Icc tβ tβ)) := | |
| fun s hs => (hall s (interior_subset hs)).1.differentiableWithinAt | |
| have HU := (convex_Icc tβ tβ).image_sub_le_mul_sub_of_deriv_le Hcont HDiff | |
| (fun s hs => (hall s (interior_subset hs)).2.1) tβ β¨le_rfl,httβ© tβ β¨htt,le_rflβ© htt | |
| have HL := (convex_Icc tβ tβ).mul_sub_le_image_sub_of_le_deriv Hcont HDiff | |
| (fun s hs => (hall s (interior_subset hs)).2.2) tβ β¨le_rfl,httβ© tβ β¨htt,le_rflβ© htt | |
| constructor <;> nlinarith only [HU,HL] | |
| end WeakMTWTransport | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 5.49 kB
- Xet hash:
- 7a0634fa6dab806bb790e2f15f1f36d994876ee1ff0361e95c43e33a202cdb80
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.