Buckets:
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.LinearAlgebra.CompactQuadratic | |
| import OAI.Analysis.BiholderTransport.Regularity.NormMinMax | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| section MiddleScaling | |
| 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 (x : M) : FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| omit [IsRiemannianManifold π(β,Model n) M] in | |
| lemma middleHessian_scaled_ray (z : TangentBundle π(β,Model n) M) | |
| (h T : β) (hT : T β 0) : | |
| HEq (middleHessian (tangentScale T z) (h/T) 1) (T β’ middleHessian z h T) := by | |
| unfold middleHessian | |
| rw [sprayFlow_scale,mul_div_cancelβ _ hT] | |
| change HEq | |
| ((h/T)β»ΒΉ β’ normalHessian (sprayFlow h z).1 (-(h/T) β’ (T β’ (sprayFlow h z).2)) + | |
| (1-h/T)β»ΒΉ β’ normalHessian (sprayFlow h z).1 ((1-h/T) β’ (T β’ (sprayFlow h z).2))) | |
| (T β’ (hβ»ΒΉ β’ normalHessian (sprayFlow h z).1 ((-h) β’ (sprayFlow h z).2) + | |
| (T-h)β»ΒΉ β’ normalHessian (sprayFlow h z).1 ((T-h) β’ (sprayFlow h z).2))) | |
| simp only [smul_smul] | |
| have h1 : -(h/T)*T = -h := by field_simp | |
| have h2 : (1-h/T)*T = T-h := by field_simp | |
| rw [h1,h2] | |
| apply heq_of_eq | |
| ext v w | |
| simp only [add_apply,smul_apply,smul_eq_mul] | |
| have h3 : (h/T)β»ΒΉ = T*hβ»ΒΉ := by simp [div_eq_mul_inv] | |
| have h4 : (1-h/T)β»ΒΉ = T*(T-h)β»ΒΉ := by | |
| rw [show 1-h/T=(T-h)/T by field_simp] | |
| simp [div_eq_mul_inv] | |
| rw [h3,h4] | |
| ring | |
| end MiddleScaling | |
| end WeakMTWTransport | |
| end | |
| end | |
| section | |
| noncomputable section | |
| namespace WeakMTWTransport | |
| section SpectralScaling | |
| variable {E F : Type*} [NormedAddCommGroup E] [InnerProductSpace β E] | |
| [FiniteDimensional β E] [NormedAddCommGroup F] [InnerProductSpace β F] | |
| [FiniteDimensional β F] | |
| lemma ordered_singularValues_positive_smul (A : E ββ[β] F) {t : β} (ht : 0 < t) | |
| {n : β} (hn : Module.finrank β E = n) (i : Fin n) : | |
| (t β’ A).singularValues i = t * A.singularValues i := by | |
| have h1 := ordered_singularValues_pullback (A := t β’ A) (B := A) | |
| (LinearMap.id) ht.le (by norm_num : (0:β) β€ 1) | |
| (fun v => by change βvβ β€ 1*βvβ; simp) | |
| (fun v => by simp only [LinearMap.smul_apply,norm_smul,Real.norm_eq_abs, | |
| abs_of_pos ht,LinearMap.id_apply]; exact le_rfl) hn hn i | |
| have h2 := ordered_singularValues_pullback (A := A) (B := t β’ A) | |
| (LinearMap.id) (inv_nonneg.mpr ht.le) (by norm_num : (0:β) β€ 1) | |
| (fun v => by change βvβ β€ 1*βvβ; simp) | |
| (fun v => by simp only [LinearMap.smul_apply,norm_smul,Real.norm_eq_abs, | |
| abs_of_pos ht,LinearMap.id_apply]; rw [βmul_assoc,inv_mul_cancelβ ht.ne',one_mul]) hn hn i | |
| simp only [mul_one] at h1 h2 | |
| apply le_antisymm h1 | |
| have H := mul_le_mul_of_nonneg_left h2 ht.le | |
| simpa only [βmul_assoc,mul_inv_cancelβ ht.ne',one_mul] using H | |
| end SpectralScaling | |
| end WeakMTWTransport | |
| end | |
| end | |
| section | |
| noncomputable section | |
| open Set Filter Manifold Bundle ContinuousLinearMap | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| section MiddleSingular | |
| 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 (x : M) : FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| def intrinsicBilinearOperator (y : M) | |
| (B : TangentSpace π(β,Model n) y βL[β] TangentSpace π(β,Model n) y βL[β] β) : | |
| TangentSpace π(β,Model n) y βL[β] TangentSpace π(β,Model n) y := | |
| (InnerProductSpace.toDual β _).symm.toContinuousLinearEquiv.toContinuousLinearMap.comp B | |
| def intrinsicBilinearSingular (y : M) | |
| (B : TangentSpace π(β,Model n) y βL[β] TangentSpace π(β,Model n) y βL[β] β) | |
| (i : β) : β := (intrinsicBilinearOperator y B).toLinearMap.singularValues i | |
| omit [CompactSpace M] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] in | |
| lemma intrinsicBilinearSingular_heq {x y : M} (hxy : x=y) | |
| {B : TangentSpace π(β,Model n) x βL[β] TangentSpace π(β,Model n) x βL[β] β} | |
| {C : TangentSpace π(β,Model n) y βL[β] TangentSpace π(β,Model n) y βL[β] β} | |
| (hBC : HEq B C) (i : β) : | |
| intrinsicBilinearSingular x B i=intrinsicBilinearSingular y C i := by | |
| subst y | |
| cases hBC | |
| rfl | |
| omit [CompactSpace M] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] in | |
| lemma intrinsicBilinearOperator_smul (y : M) | |
| (B : TangentSpace π(β,Model n) y βL[β] TangentSpace π(β,Model n) y βL[β] β) | |
| (t : β) : intrinsicBilinearOperator y (t β’ B)=t β’ intrinsicBilinearOperator y B := by | |
| ext v | |
| simp only [intrinsicBilinearOperator,comp_apply,smul_apply,map_smul] | |
| omit [CompactSpace M] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] in | |
| lemma intrinsicBilinearSingular_pos_smul (y : M) | |
| (B : TangentSpace π(β,Model n) y βL[β] TangentSpace π(β,Model n) y βL[β] β) | |
| {t : β} (ht : 0 < t) (i : Fin (Module.finrank β (Model n))) : | |
| intrinsicBilinearSingular y (t β’ B) i=t*intrinsicBilinearSingular y B i := by | |
| unfold intrinsicBilinearSingular | |
| rw [intrinsicBilinearOperator_smul] | |
| exact ordered_singularValues_positive_smul (intrinsicBilinearOperator y B).toLinearMap ht rfl i | |
| def middleSingularValue (z : TangentBundle π(β,Model n) M) (h T : β) (i : β) : β := | |
| intrinsicBilinearSingular (sprayFlow h z).1 (middleHessian z h T) i | |
| omit [IsRiemannianManifold π(β,Model n) M] in | |
| lemma middleSingularValue_scaled_ray (z : TangentBundle π(β,Model n) M) | |
| (h T : β) (hT : 0 < T) (i : Fin (Module.finrank β (Model n))) : | |
| middleSingularValue (tangentScale T z) (h/T) 1 i = T*middleSingularValue z h T i := by | |
| have hbase : (sprayFlow (h/T) (tangentScale T z)).1=(sprayFlow h z).1 := by | |
| rw [sprayFlow_scale,mul_div_cancelβ _ hT.ne'] | |
| rfl | |
| have H := intrinsicBilinearSingular_heq hbase (middleHessian_scaled_ray z h T hT.ne') i | |
| change middleSingularValue (tangentScale T z) (h/T) 1 i = _ at H | |
| rw [H,intrinsicBilinearSingular_pos_smul _ _ hT] | |
| rfl | |
| end MiddleSingular | |
| end WeakMTWTransport | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 7.16 kB
- Xet hash:
- c3e56efb993795e371bc05feeb3cd43deb84f9ca0dcabd0a8ce8feefac55205b
Β·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.