Buckets:
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.MinimizingVectors | |
| import OAI.Analysis.BiholderTransport.Geodesics.MetricGeodesicLift | |
| namespace OAI | |
| noncomputable section | |
| open Set MeasureTheory Manifold Bundle | |
| open scoped ContDiff Manifold ENNReal NNReal Topology | |
| open Set Filter | |
| open scoped Topology NNReal | |
| open Set Filter | |
| open scoped Topology | |
| open Set Manifold MeasureTheory Bundle | |
| open scoped ENNReal ContDiff Topology | |
| open Set | |
| open scoped Topology | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter ContinuousLinearMap InnerProductSpace | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open scoped NNReal | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| open Set Filter ContinuousLinearMap | |
| open scoped Topology | |
| open MeasureTheory | |
| open scoped ContDiff ENNReal | |
| open Set Filter Manifold Bundle ContinuousLinearMap MeasureTheory | |
| open scoped Topology ContDiff Manifold Bundle ENNReal | |
| open Set Filter Manifold MeasureTheory Bundle | |
| open scoped ENNReal ContDiff Topology Manifold | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter Manifold Bundle | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter Manifold Bundle | |
| open scoped Topology ContDiff Manifold Bundle | |
| open Set Filter Bundle | |
| open scoped Topology Bundle | |
| open scoped Topology | |
| open Function Manifold Set | |
| open Manifold Bundle | |
| open scoped Manifold Bundle | |
| open Set | |
| namespace WeakMTWTransport | |
| section | |
| variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| [FiniteDimensional β E] | |
| {M : Type*} [MetricSpace M] [CompactSpace M] [ChartedSpace E M] | |
| [IsManifold π(β,E) β M] | |
| [RiemannianBundle (fun x : M => TangentSpace π(β,E) x)] | |
| [IsContMDiffRiemannianBundle π(β,E) β E (fun x : M => TangentSpace π(β,E) x)] | |
| [IsRiemannianManifold π(β,E) M] | |
| omit [IsRiemannianManifold π(β,E) M] in | |
| lemma sprayFlow_pathELength (z : TangentBundle π(β,E) M) (s t : β) : | |
| pathELength π(β,E) (fun u => (sprayFlow u z).1) s t = | |
| ENNReal.ofReal ((t-s)*βz.2β) := by | |
| rw [pathELength_eq_lintegral_mfderiv_Icc] | |
| calc | |
| _ = β«β» _ in Icc s t, ENNReal.ofReal βz.2β := by | |
| apply setLIntegral_congr_fun measurableSet_Icc | |
| intro u _ | |
| have H := congrArg (fun v : TangentSpace π(β,E) (sprayFlow u z).1 => ENNReal.ofReal βvβ) | |
| (spray_velocity_eq_mfderiv ((sprayFlow_curve z).isMIntegralCurveAt u)) | |
| have H' := H.trans (congrArg ENNReal.ofReal (sprayFlow_speed u z)) | |
| convert! H' using 1 | |
| exact (ofReal_norm _).symm | |
| _ = _ := by | |
| rw [setLIntegral_const,Real.volume_Icc,ENNReal.ofReal_mul' (norm_nonneg _),mul_comm] | |
| lemma dist_sprayFlow_le (z : TangentBundle π(β,E) M) (s t : β) : | |
| dist (sprayFlow s z).1 (sprayFlow t z).1 β€ |s-t| * βz.2β := by | |
| have hsm : ContMDiff π(β,β) π(β,E) β (fun u => (sprayFlow u z).1) := | |
| (Bundle.contMDiff_proj (fun x : M => TangentSpace π(β,E) x)).comp | |
| (contMDiff_sprayFlow.comp (contMDiff_id.prodMk contMDiff_const)) | |
| have H : β s t : β, s β€ t β dist (sprayFlow s z).1 (sprayFlow t z).1 β€ (t-s)*βz.2β := by | |
| intro s t hst | |
| have he := riemannianEDist_le_pathELength (I := π(β,E)) | |
| (hsm.of_le (by simp)).contMDiffOn rfl rfl hst | |
| rw [βIsRiemannianManifold.out,sprayFlow_pathELength,edist_dist] at he | |
| exact (ENNReal.ofReal_le_ofReal_iff (mul_nonneg (sub_nonneg.mpr hst) (norm_nonneg _))).mp he | |
| rcases le_total s t with hst | hts | |
| Β· rw [abs_of_nonpos (sub_nonpos.mpr hst)] | |
| simpa only [neg_sub] using H s t hst | |
| Β· rw [dist_comm,abs_of_nonneg (sub_nonneg.mpr hts)] | |
| exact H t s hts | |
| end | |
| 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] | |
| lemma continuous_riemannianExp (x : M) : Continuous (riemannianExp (n := n) x) := | |
| contMDiff_riemannianExp.continuous.comp (FiberBundle.continuous_totalSpaceMk _ _ x) | |
| lemma dist_riemannianExp_smul_le (x : M) (v : TangentSpace π(β,Model n) x) (s t : β) : | |
| dist (riemannianExp x (s β’ v)) (riemannianExp x (t β’ v)) β€ |s - t| * βvβ := by | |
| simp only [riemannianExp_smul] | |
| exact dist_sprayFlow_le β¨x,vβ© s t | |
| lemma dist_riemannianExp_le (x : M) (v : TangentSpace π(β,Model n) x) : | |
| dist x (riemannianExp x v) β€ βvβ := by | |
| have H := dist_sprayFlow_le (β¨x,vβ© : TangentBundle π(β,Model n) M) 0 1 | |
| simpa only [sprayFlow_zero,riemannianExp_eq_sprayFlow,zero_sub,abs_neg,abs_one,one_mul] using H | |
| lemma minimizingVectors_smul {x : M} {p : TangentSpace π(β,Model n) x} | |
| (hp : p β minimizingVectors x) {t : β} (ht0 : 0 β€ t) (ht1 : t β€ 1) : | |
| t β’ p β minimizingVectors x := by | |
| change dist x (riemannianExp x (t β’ p)) = βt β’ pβ | |
| apply le_antisymm (dist_riemannianExp_le _ _) | |
| have H := dist_triangle x (riemannianExp x (t β’ p)) (riemannianExp x p) | |
| have Hb := dist_riemannianExp_smul_le x p t 1 | |
| rw [one_smul,abs_of_nonpos (sub_nonpos.mpr ht1)] at Hb | |
| change dist x (riemannianExp x p) = βpβ at hp | |
| rw [hp] at H | |
| rw [norm_smul,Real.norm_eq_abs,abs_of_nonneg ht0] | |
| nlinarith | |
| lemma injectivityDomain_subset_minimizingVectors (x : M) : | |
| injectivityDomain (n := n) x β minimizingVectors x := by | |
| rintro p β¨a,ha,heβ© | |
| have ha0 : 0 < a := lt_trans zero_lt_one ha | |
| have hmin : a β’ p β minimizingVectors x := by | |
| change dist x (riemannianExp x (a β’ p)) = βa β’ pβ | |
| rw [he,norm_smul,Real.norm_eq_abs,abs_of_pos ha0] | |
| have H := minimizingVectors_smul hmin (inv_nonneg.mpr ha0.le) | |
| (inv_le_one_of_one_leβ ha.le) | |
| simpa only [smul_smul,inv_mul_cancelβ ha0.ne',one_smul] using H | |
| 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 contracted_minimizer_mem_injectivityDomain {x : M} | |
| {p : TangentSpace π(β,Model n) x} (hp : p β minimizingVectors x) | |
| {t : β} (ht0 : 0 < t) (ht1 : t < 1) : t β’ p β injectivityDomain x := by | |
| refine β¨tβ»ΒΉ,(one_lt_invβ ht0).mpr ht1,?_β© | |
| rw [smul_smul,inv_mul_cancelβ ht0.ne',one_smul] | |
| rw [hp,norm_smul,Real.norm_eq_abs,abs_of_pos ht0,βmul_assoc,inv_mul_cancelβ ht0.ne',one_mul] | |
| lemma isClosed_minimizingVectors (x : M) : IsClosed (minimizingVectors (n := n) x) := | |
| isClosed_eq (continuous_const.dist (continuous_riemannianExp x)) continuous_norm | |
| lemma isCompact_minimizingVectors (x : M) : IsCompact (minimizingVectors (n := n) x) := by | |
| let : FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| apply (isCompact_closedBall (0 : TangentSpace π(β,Model n) x) (Metric.diam (univ : Set M))).of_isClosed_subset | |
| (isClosed_minimizingVectors x) | |
| intro p hp | |
| rw [Metric.mem_closedBall,dist_zero_right,βhp] | |
| exact Metric.dist_le_diam_of_mem isCompact_univ.isBounded (mem_univ x) (mem_univ _) | |
| lemma closure_injectivityDomain (x : M) : | |
| closure (injectivityDomain (n := n) x) = minimizingVectors x := by | |
| apply subset_antisymm | |
| Β· exact closure_minimal (injectivityDomain_subset_minimizingVectors x) (isClosed_minimizingVectors x) | |
| Β· intro p hp | |
| apply closure_mono (s := openSegment β 0 p) ?_ (segment_subset_closure_openSegment (right_mem_segment β 0 p)) | |
| rintro q β¨a,b,ha,hb,hab,rflβ© | |
| rw [smul_zero,zero_add] | |
| exact contracted_minimizer_mem_injectivityDomain hp hb (by linarith) | |
| lemma isCompact_total_minimizingVectors : | |
| IsCompact {z : TangentBundle π(β,Model n) M | z.2 β minimizingVectors z.1} := by | |
| have : IsContinuousRiemannianBundle (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x) := | |
| continuousRiemannianBundle_of_smooth (IB := π(β,Model n)) | |
| apply (isCompact_bundle_disk (F := Model n) | |
| (E := fun x : M => TangentSpace π(β,Model n) x) (Metric.diam (univ : Set M))).of_isClosed_subset | |
| Β· exact isClosed_eq ((FiberBundle.continuous_proj _ _).dist contMDiff_riemannianExp.continuous) | |
| continuous_bundle_norm | |
| Β· intro z hz | |
| change βz.2β β€ _ | |
| rw [βhz] | |
| exact Metric.dist_le_diam_of_mem isCompact_univ.isBounded (mem_univ _) (mem_univ _) | |
| end WeakMTWTransport | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 8.79 kB
- Xet hash:
- 7518786a50d97427205ede4bcb4cbe1e8f93f8419aaf84b6c382c1e01fcbf36f
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.