cfahlgren1/math / lean /OAI /Analysis /BiholderTransport /Volume /UniformExpJacobian.lean
cfahlgren1's picture
download
raw
5.49 kB
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.