math / data /lean /OAI /Analysis /BiholderTransport /Calculus /SampleJetData.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
5.55 kB
import Mathlib
import OAI.Analysis.BiholderTransport.Geodesics.UniformFixedCrossing
import OAI.Analysis.BiholderTransport.Calculus.SamplePoleDerivative
import OAI.Analysis.BiholderTransport.Regularity.NonnegativeTransfer
namespace OAI
noncomputable section
open Set Filter Manifold Bundle
open scoped Topology ContDiff
namespace WeakMTWTransport
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_actual_uniform_regular_split_after {t:ℝ} (ht : 0<t) (ht1 : t<1) :
βˆƒ s:ℝ,t<s ∧ s<1 ∧ βˆ€ x:M,βˆ€ p:TangentSpace π“˜(ℝ,Model n) x,
p∈minimizingVectors x β†’ s β€’ p∈injectivityDomain x ∧
(1-s) β€’ (sprayFlow s (⟨x,p⟩:TangentBundle π“˜(ℝ,Model n) M)).2∈
injectivityDomain (sprayFlow s (⟨x,p⟩:TangentBundle π“˜(ℝ,Model n) M)).1 := by
have H : βˆ€αΆ  s in 𝓝[<] (1:ℝ),t<s ∧ s<1 ∧ βˆ€ x:M,
βˆ€ p:TangentSpace π“˜(ℝ,Model n) x,β€–p‖≀Metric.diam (univ:Set M) β†’
(1-s) β€’ (sprayFlow s (⟨x,p⟩:TangentBundle π“˜(ℝ,Model n) M)).2∈
injectivityDomain (sprayFlow s (⟨x,p⟩:TangentBundle π“˜(ℝ,Model n) M)).1 := by
filter_upwards [(uniformly_shifted_injectivityDomain_near_one
(n := n) (M := M) (Metric.diam (univ:Set M))).filter_mono nhdsWithin_le_nhds,
(eventually_gt_nhds ht1).filter_mono nhdsWithin_le_nhds,self_mem_nhdsWithin]
with s hs hst hs1
exact ⟨hst,hs1,hs⟩
obtain ⟨s,hst,hs1,hs⟩ := H.exists
exact ⟨s,hst,hs1,fun x p hp=>⟨contracted_minimizer_mem_injectivityDomain hp
(ht.trans hst) hs1,hs x p (minimizing_norm_le_diam hp)⟩⟩
lemma WeakMTW.actual_sample_pole_matrix (hmtw : WeakMTW (n := n) (M := M))
{v : M β†’ ℝ} (hv : Continuous v) {t : ℝ} (ht : 0<t) (ht1 : t<1)
{x a c : M} {p : TangentSpace π“˜(ℝ,Model n) x}
(hp : p∈normalSubdifferential (n := n) (cTransform v) x)
(hz : riemannianExp x (t β€’ p)∈(extChartAt π“˜(ℝ,Model n) a).source)
(hx : x∈(extChartAt π“˜(ℝ,Model n) c).source)
(hD : DifferentiableAt ℝ
(fun w : Model n => extChartAt π“˜(ℝ,Model n) c
(hopfPole (n := n) t (cTransform v) ((extChartAt π“˜(ℝ,Model n) a).symm w)))
(extChartAt π“˜(ℝ,Model n) a (riemannianExp x (t β€’ p)))) :
let V := TangentSpace π“˜(ℝ,Model n) x
let I : V β†’L[ℝ] V β†’L[ℝ] ℝ := innerSL ℝ
let L : V β†’L[ℝ] V β†’L[ℝ] ℝ := t β€’ I - fderiv ℝ (fderiv ℝ
(fun q:V=>hopfLax t (cTransform v) (riemannianExp x (t β€’ q)))) p
DifferentiableAt ℝ (fderiv ℝ
(fun q:V=>hopfLax t (cTransform v) (riemannianExp x (t β€’ q)))) p ∧
(βˆ€ d:V,0≀L d d) ∧ (βˆ€ d e:V,L d e=L e d) ∧
(βˆ€ q∈activeLogs v x,βˆ€ d:V,L (q-p) d=0) ∧
(βˆ€ (ΞΉ:Type) [Fintype ΞΉ] (pj:ΞΉ β†’ V) (w:ΞΉ β†’ ℝ),
(βˆ€ j,0≀w j) β†’ (βˆ‘ j,w j=1) β†’ (βˆ‘ j,w j β€’ pj j=p) β†’
(βˆ€ j,pj j∈activeLogs v x) β†’ βˆ€ i,0<w i β†’
HasLowerSecondTaylor (fun d:V=>v (riemannianExp x (pj i+d))+β€–pj i+dβ€–^2/2)
0 (w i β€’ L)) := by
dsimp only
let V := TangentSpace π“˜(ℝ,Model n) x
let : NormedAddCommGroup (V β†’L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup
let : NormedSpace ℝ (V β†’L[ℝ] ℝ) := ContinuousLinearMap.toNormedSpace
let : NormedAddCommGroup (V β†’L[ℝ] V β†’L[ℝ] ℝ) := ContinuousLinearMap.toNormedAddCommGroup
let q : subgradientGraph (n := n) (cTransform v) := ⟨⟨x,p⟩,hp⟩
have hpole : hopfPole (n := n) t (cTransform v) (riemannianExp x (t β€’ p))=x := by
exact congrArg Bundle.TotalSpace.proj (hmtw.hopfLax_backward_flow hv ht ht1 q)
obtain ⟨e,R,he,he0,herep⟩ := hmtw.exists_actual_normal_pole_derivative hv ht ht1 hz hx hpole hD
have hpre := hmtw.active_hull_precut hv ht ht1 x p
(normalSubdifferential_subset_active_hull hv x hp)
have hdual : IsCostDualPair (cTransform v) (cTransform (cTransform v)) :=
⟨(cTransform_triple hv).symm,rfl⟩
have HD' := hmtw.actualPole_second_derivative (continuous_cTransform hv)
(continuous_cTransform (continuous_cTransform hv)) hdual ht ht1 hpre he he0 herep
have HD := HD'.fderiv
rw [HD,sub_sub_cancel]
have H := hmtw.actualPole_taylor (continuous_cTransform hv)
(continuous_cTransform (continuous_cTransform hv)) hdual ht ht1 hpre he he0 herep
obtain ⟨s,hts,hs1,hs⟩ := exists_actual_uniform_regular_split_after (n := n) (M := M) ht ht1
refine ⟨HD'.differentiableAt,H.2.1,?_,?_,?_⟩
Β· intro d f
change inner ℝ (R d) f=inner ℝ (R f) d
exact (H.2.2 d f).trans (real_inner_comm (R f) d)
Β· intro r hr d
have hk := hmtw.actualPole_kernel (continuous_cTransform hv)
(continuous_cTransform (continuous_cTransform hv)) hdual ht ht1 (ht.trans hts) hs1
hpre hr.1 (active_contact_biconjugate hv hr.2).2 (hs x r hr.1).1 (hs x r hr.1).2
he he0 herep
simp only [ContinuousLinearMap.comp_apply,hk,map_zero,zero_apply]
Β· intro ΞΉ _ pj w hw hw1 hbar ha i hi
exact hmtw.modified_active_lower_jet_nonneg hv ht hts hs1 pj w hw hw1 i hi
(fun j=>(ha j).1) (fun j=>(ha j).2) (fun j=>(hs x (pj j) (ha j).1).1)
(fun j=>(hs x (pj j) (ha j).1).2) (hbar β–Έ he) (hbar β–Έ he0) (hbar β–Έ herep)
end WeakMTWTransport
end
end OAI