Buckets:
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Convexity.AlexandrovDerivative | |
| import OAI.Analysis.BiholderTransport.Contact.AEContacts | |
| import OAI.Analysis.BiholderTransport.Contact.ContactSelection | |
| import OAI.Analysis.BiholderTransport.Convexity.CoordinateSemiconvex | |
| import OAI.Analysis.BiholderTransport.Calculus.Gradient | |
| import OAI.Analysis.BiholderTransport.LinearAlgebra.Aggregate | |
| namespace OAI | |
| section | |
| section | |
| noncomputable section | |
| open Set Filter Manifold Bundle | |
| open scoped Topology ContDiff | |
| namespace WeakMTWTransport | |
| section ContactDifferential | |
| variable {n : โ} {M : Type*} [MetricSpace M] [CompactSpace M] [Nonempty M] | |
| [MeasurableSpace M] [BorelSpace 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 [Nonempty M] [MeasurableSpace M] [BorelSpace M] in | |
| lemma exists_normal_local_inverse_at {x : M} {p : TangentSpace ๐(โ,Model n) x} | |
| (hp : pโinjectivityDomain x) : | |
| โ ฮบ : M โ TangentSpace ๐(โ,Model n) x, | |
| ฮบ (riemannianExp x p)=p โง | |
| ContMDiffAt ๐(โ,Model n) ๐(โ,TangentSpace ๐(โ,Model n) x) โ ฮบ (riemannianExp x p) โง | |
| โแถ y in ๐ (riemannianExp x p), riemannianExp x (ฮบ y)=y := by | |
| let V := TangentSpace ๐(โ,Model n) x | |
| let y := riemannianExp x p | |
| let d := extChartAt ๐(โ,Model n) y | |
| obtain โจe,he,hp',hcโฉ := exists_coordinate_exp_inverse hp | |
| let ฮบ : M โ V := fun z => e.symm (d z) | |
| have hep : e p=d y := congrFun he p | |
| have hฮบp : ฮบ y=p := by change e.symm _=p; rw [โhep]; exact e.left_inv hp' | |
| have hฮบ : ContMDiffAt ๐(โ,Model n) ๐(โ,V) โ ฮบ y := by | |
| apply ContMDiffAt.comp y _ contMDiffAt_extChartAt | |
| rw [โhep] | |
| exact hc.contMDiffAt | |
| refine โจฮบ,hฮบp,hฮบ,?_โฉ | |
| have hct : โแถ z in ๐ y, d zโe.target := | |
| (contMDiffAt_extChartAt (I := ๐(โ,Model n)) (n := โ) (x := y)).continuousAt.preimage_mem_nhds | |
| (by rw [โhep]; exact e.open_target.mem_nhds (e.map_source hp')) | |
| have hcs : โแถ z in ๐ y, zโd.source := extChartAt_source_mem_nhds (I := ๐(โ,Model n)) y | |
| have hes : โแถ z in ๐ y, riemannianExp x (ฮบ z)โd.source := | |
| (((contMDiff_riemannianExp_fiber x).continuous.continuousAt).comp hฮบ.continuousAt).preimage_mem_nhds | |
| (by simp only [Function.comp_apply,hฮบp]; exact extChartAt_source_mem_nhds (I := ๐(โ,Model n)) y) | |
| filter_upwards [hct,hcs,hes] with z hzt hzs hzes | |
| apply d.injOn hzes hzs | |
| change (fun q => d (riemannianExp x q)) (ฮบ z)=_ | |
| rw [โhe] | |
| exact e.right_inv hzt | |
| def normalHessianOperator (x : M) (p : TangentSpace ๐(โ,Model n) x) : | |
| TangentSpace ๐(โ,Model n) x โL[โ] TangentSpace ๐(โ,Model n) x := | |
| (InnerProductSpace.toDual โ _).symm.toContinuousLinearEquiv.toContinuousLinearMap.comp | |
| (normalHessian x p) | |
| omit [CompactSpace M] [Nonempty M] [MeasurableSpace M] [BorelSpace M] | |
| [IsContMDiffRiemannianBundle ๐(โ,Model n) โ (Model n) | |
| (fun x : M => TangentSpace ๐(โ,Model n) x)] | |
| [IsRiemannianManifold ๐(โ,Model n) M] in | |
| lemma inner_normalHessianOperator (x : M) (p u v : TangentSpace ๐(โ,Model n) x) : | |
| inner โ (normalHessianOperator x p u) v=normalHessian x p u v := by | |
| exact InnerProductSpace.toDual_symm_apply | |
| omit [Nonempty M] [MeasurableSpace M] [BorelSpace M] in | |
| lemma prefixNormalCost_source_hessian_full {x : M} {p : TangentSpace ๐(โ,Model n) x} | |
| (hp : pโinjectivityDomain x) (u v : TangentSpace ๐(โ,Model n) x) : | |
| fderiv โ (fderiv โ (prefixNormalCost x 1)) (0,p) (u,0) (v,0)=normalHessian x p u v := by | |
| let V := TangentSpace ๐(โ,Model n) x | |
| have hp1 : (1:โ) โข pโinjectivityDomain x := by simpa only [one_smul] using hp | |
| have hsym := (prefixNormalCost_contDiffAt hp1).isSymmSndFDerivAt | |
| (by simp) | |
| have heq := symmetric_bilinear_eq_of_diagonal | |
| (A := (fderiv โ (fderiv โ (prefixNormalCost x 1)) (0,p)).bilinearComp | |
| (ContinuousLinearMap.inl โ V V) (ContinuousLinearMap.inl โ V V)) | |
| (B := normalHessian x p) | |
| (fun a b => hsym.eq (a,0) (b,0)) (normalHessian_symm hp) | |
| (fun a => by simpa only [ContinuousLinearMap.bilinearComp_apply, | |
| ContinuousLinearMap.inl_apply,one_smul,div_one] using prefixNormalCost_source_hessian hp1 a) | |
| exact congrArg (fun D : V โL[โ] V โL[โ] โ => D u v) heq | |
| omit [MeasurableSpace M] [BorelSpace M] [IsManifold ๐(โ,Model n) โ M] | |
| [IsContMDiffRiemannianBundle ๐(โ,Model n) โ (Model n) | |
| (fun x : M => TangentSpace ๐(โ,Model n) x)] | |
| [IsRiemannianManifold ๐(โ,Model n) M] in | |
| lemma normal_contact_twist {v : M โ โ} (hv : Continuous v) {x : M} | |
| {a p : TangentSpace ๐(โ,Model n) x} | |
| (hB : DifferentiableAt โ (prefixNormalCost x 1) (a,p)) | |
| (hcontact : contactGap (cTransform v) v (riemannianExp x a) (riemannianExp x p)=0) | |
| {g : TangentSpace ๐(โ,Model n) x} | |
| (hg : HasFDerivAt (fun h => cTransform v (riemannianExp x h)) (innerSL โ g) a) : | |
| (fderiv โ (prefixNormalCost x 1) (a,p)).comp | |
| (ContinuousLinearMap.inl โ _ _)= -(innerSL โ g) := by | |
| let V := TangentSpace ๐(โ,Model n) x | |
| have hmin : IsLocalMin (fun h : V => cTransform v (riemannianExp x h)+ | |
| prefixNormalCost x 1 (h,p)) a := by | |
| apply Filter.Eventually.of_forall | |
| intro h | |
| have H := cTransform_gap_nonneg hv (riemannianExp x h) (riemannianExp x p) | |
| simp only [contactGap] at H hcontact | |
| simp only [prefixNormalCost,one_smul,div_one] | |
| linarith | |
| have hd := hB.hasFDerivAt.comp (f := fun h : V => (h,p)) a | |
| ((hasFDerivAt_id a).prodMk (hasFDerivAt_const p a)) | |
| have hz := hmin.hasFDerivAt_eq_zero (hg.add hd) | |
| have H : innerSL โ g+(fderiv โ (prefixNormalCost x 1) (a,p)).comp | |
| (ContinuousLinearMap.inl โ V V)=0 := by simpa only [ContinuousLinearMap.inl] using hz | |
| exact eq_neg_of_add_eq_zero_right H | |
| omit [MeasurableSpace M] [BorelSpace M] in | |
| lemma contact_selection_normal_differential {v : M โ โ} (hv : Continuous v) {x : M} | |
| {p : TangentSpace ๐(โ,Model n) x} (hp : pโactiveLogs (n := n) v x) | |
| (hpI : pโinjectivityDomain x) | |
| (hDiff : MDifferentiableAt ๐(โ,Model n) ๐(โ,โ) (cTransform v) x) | |
| {A : TangentSpace ๐(โ,Model n) x โL[โ] TangentSpace ๐(โ,Model n) x} | |
| (hA : โ u w, inner โ (A u) w=inner โ u (A w)) | |
| (hexp : HasQuadraticExpansion (fun h => cTransform v (riemannianExp x h)) p A) | |
| {T : M โ M} (hT : โ z, contactGap (cTransform v) v z (T z)=0) : | |
| โ r>0, โ q : TangentSpace ๐(โ,Model n) x โ TangentSpace ๐(โ,Model n) x, | |
| q 0=p โง ContinuousAt q 0 โง | |
| (โแถ h in ๐ 0, riemannianExp x (q h)=T (riemannianExp x h)) โง | |
| HasFDerivWithinAt q (normalHessianOperator x p+A) | |
| {h | hโMetric.ball 0 r โง DifferentiableAt โ (fun z => cTransform v (riemannianExp x z)) h} 0 := by | |
| let V := TangentSpace ๐(โ,Model n) x | |
| let f : V โ โ := fun h => cTransform v (riemannianExp x h) | |
| have hTx : T x=riemannianExp x p := contact_unique_of_mdifferentiable hv hDiff (hT x) hp.2 | |
| have hTc : ContinuousAt T x := contact_selection_continuousAt (continuous_cTransform hv) hv hT | |
| (fun y hy => contact_unique_of_mdifferentiable hv hDiff hy (hT x)) | |
| obtain โจฮบ,hฮบ0,hฮบ,hฮบrightโฉ := exists_normal_local_inverse_at hpI | |
| let q : V โ V := fun h => ฮบ (T (riemannianExp x h)) | |
| have hq0 : q 0=p := by simp only [q,riemannianExp_zero,hTx,hฮบ0] | |
| have hTc' : ContinuousAt T (riemannianExp (n := n) x (0:V)) := by | |
| simpa only [riemannianExp_zero] using hTc | |
| have hcT : ContinuousAt (fun h : V => T (riemannianExp x h)) 0 := | |
| hTc'.comp (contMDiff_riemannianExp_fiber x 0).continuousAt | |
| have hฮบ' : ContinuousAt ฮบ (T (riemannianExp (n := n) x (0:V))) := by | |
| simpa only [riemannianExp_zero,hTx] using hฮบ.continuousAt | |
| have hqc : ContinuousAt q 0 := hฮบ'.comp (f := fun h : V => T (riemannianExp x h)) hcT | |
| have hqright : โแถ h in ๐ (0:V), riemannianExp x (q h)=T (riemannianExp x h) := | |
| (show Tendsto (fun h : V => T (riemannianExp x h)) (๐ 0) (๐ (riemannianExp x p)) from by | |
| simpa only [ContinuousAt,riemannianExp_zero,hTx] using hcT).eventually hฮบright | |
| obtain โจr,hr,K,hK,hconvโฉ := cTransform_uniform_smooth_coordinate_semiconvex | |
| (contMDiff_riemannianExp_fiber (n := n) x 0) | |
| let s : Set V := {h | hโMetric.ball 0 r โง DifferentiableAt โ f h} | |
| let g : V โ V := fun h => (InnerProductSpace.toDual โ V).symm (fderiv โ f h) | |
| have hg0 : g 0=p := by | |
| change (InnerProductSpace.toDual โ V).symm (fderiv โ f 0)=p | |
| rw [hexp.hasFDerivAt.fderiv] | |
| exact (InnerProductSpace.toDual โ V).symm_apply_apply p | |
| have hgD (h : V) (hh : hโs) : HasFDerivAt f (innerSL โ (g h)) h := by | |
| apply hh.2.hasFDerivAt.congr_fderiv | |
| exact ((InnerProductSpace.toDual โ V).apply_symm_apply _).symm | |
| have hg := semiconvex_gradient_hasFDerivWithinAt hA hexp hr (K := 2*K) | |
| (by simpa only [mul_div_cancel_leftโ K (show (2:โ)โ 0 by norm_num)] using hconv v hv) | |
| have hp1 : (1:โ) โข pโinjectivityDomain x := by simpa only [one_smul] using hpI | |
| have hB := (prefixNormalCost_contDiffAt hp1).of_le (m := 2) | |
| (ENat.natCast_le_of_coe_top_le_withTop le_rfl 2) | |
| have hnearB : โแถ h in ๐ (0:V), DifferentiableAt โ (prefixNormalCost x 1) (h,q h) := by | |
| have H := (hB.eventually (by norm_num)).mono | |
| (fun z hz => hz.differentiableAt (by norm_num)) | |
| apply (continuousAt_id.prodMk hqc).tendsto.eventually | |
| simpa only [hq0,id_eq] using H | |
| refine โจr,hr,q,hq0,hqc,hqright,?_โฉ | |
| apply twist_hasFDerivWithinAt hB | |
| ยท intro u w | |
| rw [prefixNormalCost_source_hessian_full hpI,inner_normalHessianOperator] | |
| ยท intro u w | |
| rw [hB.isSymmSndFDerivAt (by norm_num) |>.eq] | |
| simpa only [real_inner_comm] using (prefixNormalCost_hessian_blocks (show (0:โ)<1 by norm_num) hp1 w u).1 | |
| ยท exact hq0 | |
| ยท exact hqc | |
| ยท exact hg | |
| ยท filter_upwards [self_mem_nhdsWithin,mem_nhdsWithin_of_mem_nhds hqright, | |
| mem_nhdsWithin_of_mem_nhds hnearB] with h hh he hB' | |
| apply normal_contact_twist hv hB' _ (hgD h hh) | |
| rw [he] | |
| exact hT _ | |
| ยท apply normal_contact_twist hv (hB.differentiableAt (by norm_num)) | |
| ยท simpa only [riemannianExp_zero] using hp.2 | |
| ยท change HasFDerivAt f (innerSL โ (g 0)) 0 | |
| rw [hg0] | |
| exact hexp.hasFDerivAt | |
| end ContactDifferential | |
| end WeakMTWTransport | |
| end | |
| end | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 10.7 kB
- Xet hash:
- 395858255a3bc5736894d5c08963756f6a0467a5c87205d04a36174bcae0b8bc
ยท
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.