Download data/lean/OAI/Analysis/BiholderTransport/Regularity/FixedJoinUpper.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 10.3 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/Regularity/FixedJoinUpper.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/BiholderTransport/Regularity/FixedJoinUpper.lean
-
curl -L -o FixedJoinUpper.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/BiholderTransport/Regularity/FixedJoinUpper.lean
10.3 kB
| import Mathlib | |
| import OAI.Analysis.BiholderTransport.Calculus.PartialDerivatives | |
| import OAI.Analysis.BiholderTransport.Coordinates.NormalCoordinates3 | |
| import OAI.Analysis.BiholderTransport.Coordinates.FixedJoinSmooth | |
| 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 tangentFiniteProfile (x : M) : | |
| FiniteDimensional β (TangentSpace π(β,Model n) x) := | |
| inferInstanceAs (FiniteDimensional β (Model n)) | |
| end WeakMTWTransport | |
| end | |
| noncomputable section | |
| open Set Filter Manifold Bundle | |
| 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] | |
| def movingFixedJoinAction (a : M) (h : β) (q : βΓ(Model nΓModel n)) (z : Model n) : β := | |
| cost (movingNormal a (q.2.1,0)) (movingNormal a (q.2.1,h β’ (q.2.2+z)))/h+ | |
| cost (movingNormal a (q.2.1,h β’ (q.2.2+z))) (movingNormal a (q.2.1,q.1 β’ q.2.2))/(q.1-h) | |
| def movingFixedJoinMiddle (a : M) (h : β) (q : βΓ(Model nΓModel n)) : | |
| Model n βL[β] Model n βL[β] β := | |
| fderiv β (fderiv β (movingFixedJoinAction a h q)) 0 | |
| omit [CompactSpace M] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] in | |
| lemma movingFixedJoinAction_eq {a : M} {b : Model n} | |
| (hb : bβ(extChartAt π(β,Model n) a).target) (h T : β) (p z : Model n) : | |
| movingFixedJoinAction a h (T,(b,p)) z= | |
| fixedJoinAction ((extChartAt π(β,Model n) a).symm b) h T | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) p) | |
| (0,((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) p)+ | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) z)) := by | |
| simp only [movingFixedJoinAction,fixedJoinAction,movingNormal_eq hb,map_smul,map_add,map_zero] | |
| lemma movingFixedJoinAction_contDiffAt {a : M} {b p : Model n} {h T : β} | |
| (hb : bβ(extChartAt π(β,Model n) a).target) (hTh : Tβ h) | |
| (hleft : h β’ (trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) pβ | |
| injectivityDomain ((extChartAt π(β,Model n) a).symm b)) | |
| (hright : (T-h) β’ (sprayFlow h | |
| (β¨((extChartAt π(β,Model n) a).symm b), | |
| (trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) pβ© : TangentBundle π(β,Model n) M)).2β | |
| injectivityDomain (sprayFlow h | |
| (β¨((extChartAt π(β,Model n) a).symm b), | |
| (trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) pβ© : TangentBundle π(β,Model n) M)).1) : | |
| ContDiffAt β β (Function.uncurry (movingFixedJoinAction a h)) ((T,(b,p)),0) := by | |
| let x := (extChartAt π(β,Model n) a).symm b | |
| let L := (trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β x | |
| let q := ((T,(b,p)),(0 : Model n)) | |
| let Q := (βΓ(Model nΓModel n))ΓModel n | |
| have hA : ContMDiffAt π(β,Q) π(β,Model n) β | |
| (fun z : Q => movingNormal a (z.1.2.1,0)) q := | |
| (movingNormal_contMDiffAt (q := (b,0)) hb).comp q | |
| (contDiffAt_fst.snd.fst.prodMk contDiffAt_const).contMDiffAt | |
| have hB : ContMDiffAt π(β,Q) π(β,Model n) β | |
| (fun z : Q => movingNormal a (z.1.2.1,h β’ (z.1.2.2+z.2))) q := | |
| (movingNormal_contMDiffAt (q := (b,h β’ (p+0))) hb).comp q | |
| (contDiffAt_fst.snd.fst.prodMk | |
| ((contDiffAt_const (c := h)).smul (contDiffAt_fst.snd.snd.add contDiffAt_snd))).contMDiffAt | |
| have hC : ContMDiffAt π(β,Q) π(β,Model n) β | |
| (fun z : Q => movingNormal a (z.1.2.1,z.1.1 β’ z.1.2.2)) q := | |
| (movingNormal_contMDiffAt (q := (b,T β’ p)) hb).comp q | |
| (contDiffAt_fst.snd.fst.prodMk | |
| (contDiffAt_fst.fst.smul contDiffAt_fst.snd.snd)).contMDiffAt | |
| have hcβ := cost_contMDiffAt_of_injectivityDomain | |
| (β¨x,h β’ L pβ© : TangentBundle π(β,Model n) M) hleft | |
| have hcβ := cost_contMDiffAt_of_injectivityDomain | |
| (β¨(sprayFlow h (β¨x,L pβ© : TangentBundle π(β,Model n) M)).1, | |
| (T-h) β’ (sprayFlow h (β¨x,L pβ© : TangentBundle π(β,Model n) M)).2β© : | |
| TangentBundle π(β,Model n) M) hright | |
| have hcβ' : ContMDiffAt (π(β,Model n).prod π(β,Model n)) π(β,β) β | |
| (fun z : MΓM => cost z.1 z.2) | |
| (movingNormal a (b,0),movingNormal a (b,h β’ (p+0))) := by | |
| simpa only [movingNormal_eq hb,map_zero,riemannianExp_zero,add_zero,map_smul] using hcβ | |
| have hcβ' : ContMDiffAt (π(β,Model n).prod π(β,Model n)) π(β,β) β | |
| (fun z : MΓM => cost z.1 z.2) | |
| (movingNormal a (b,h β’ (p+0)),movingNormal a (b,T β’ p)) := by | |
| dsimp only at hcβ | |
| rw [shifted_exp_time] at hcβ | |
| simpa only [movingNormal_eq hb,add_zero,map_smul,riemannianExp_smul] using hcβ | |
| exact ((hcβ'.comp q (hA.prodMk hB)).contDiffAt.div_const h).add | |
| (((hcβ'.comp q (hB.prodMk hC)).contDiffAt).div | |
| (contDiffAt_fst.fst.sub contDiffAt_const) (sub_ne_zero.mpr hTh)) | |
| omit [CompactSpace M] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] in | |
| lemma movingFixedJoinMiddle_contDiffAt {a : M} {h T : β} {b p : Model n} | |
| (H : ContDiffAt β β (Function.uncurry (movingFixedJoinAction a h)) ((T,(b,p)),0)) : | |
| ContDiffAt β β (movingFixedJoinMiddle a h) (T,(b,p)) := | |
| (ContDiffAt.partial_snd_fderiv_two H).comp (T,(b,p)) | |
| (contDiffAt_id.prodMk contDiffAt_const) | |
| omit [CompactSpace M] | |
| [IsContMDiffRiemannianBundle π(β,Model n) β (Model n) | |
| (fun x : M => TangentSpace π(β,Model n) x)] | |
| [IsRiemannianManifold π(β,Model n) M] | |
| lemma movingFixedJoinMiddle_eq {a : M} {b : Model n} | |
| (hb : bβ(extChartAt π(β,Model n) a).target) (h T : β) (p v w : Model n) | |
| (H : ContDiffAt β 2 (fixedJoinAction ((extChartAt π(β,Model n) a).symm b) h T | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) p)) | |
| (0,((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) p))) : | |
| movingFixedJoinMiddle a h (T,(b,p)) v w= | |
| fixedJoinMiddle ((extChartAt π(β,Model n) a).symm b) h T | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) p) | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) v) | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β | |
| ((extChartAt π(β,Model n) a).symm b) w) := by | |
| let x := (extChartAt π(β,Model n) a).symm b | |
| let L := (trivializationAt (Model n) (TangentSpace π(β,Model n)) a).symmL β x | |
| let I := (0 : Model n βL[β] TangentSpace π(β,Model n) x).prod L | |
| have he : movingFixedJoinAction a h (T,(b,p))= | |
| (fun z => fixedJoinAction x h T (L p) ((0,L p)+I z)) := by | |
| ext z | |
| simpa only [I,ContinuousLinearMap.prod_apply,zero_apply, | |
| Prod.mk_add_mk,add_zero] using movingFixedJoinAction_eq hb h T p z | |
| rw [movingFixedJoinMiddle,he] | |
| have H' := second_fderiv_comp_affine I (0,L p) 0 (by simpa only [map_zero,add_zero] using H) v w | |
| simpa only [I,ContinuousLinearMap.prod_apply,zero_apply,map_zero, | |
| add_zero,fixedJoinMiddle_apply] using H' | |
| lemma movingFixedJoinMiddle_trivialization {a x : M} | |
| (hx : xβ(extChartAt π(β,Model n) a).source) (h T : β) | |
| (p v w : TangentSpace π(β,Model n) x) | |
| (H : ContDiffAt β 2 (fixedJoinAction x h T p) (0,p)) : | |
| movingFixedJoinMiddle a h (T,(extChartAt π(β,Model n) a x, | |
| (trivializationAt (Model n) (TangentSpace π(β,Model n)) a).continuousLinearMapAt β x p)) | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).continuousLinearMapAt β x v) | |
| ((trivializationAt (Model n) (TangentSpace π(β,Model n)) a).continuousLinearMapAt β x w)= | |
| fixedJoinMiddle x h T p v w := by | |
| let e := trivializationAt (Model n) (TangentSpace π(β,Model n)) a | |
| have hx' : xβe.baseSet := by simpa only [e,TangentBundle.trivializationAt_baseSet,extChartAt_source] using hx | |
| have HL : β v : TangentSpace π(β,Model n) x, e.symmL β x (e.continuousLinearMapAt β x v)=v := | |
| fun v => e.symmL_continuousLinearMapAt hx' v | |
| have HB : ContDiffAt β 2 | |
| (fixedJoinAction ((extChartAt π(β,Model n) a).symm (extChartAt π(β,Model n) a x)) h T | |
| (e.symmL β ((extChartAt π(β,Model n) a).symm (extChartAt π(β,Model n) a x)) | |
| (e.continuousLinearMapAt β x p))) | |
| (0,e.symmL β ((extChartAt π(β,Model n) a).symm (extChartAt π(β,Model n) a x)) | |
| (e.continuousLinearMapAt β x p)) := by | |
| rw [(extChartAt π(β,Model n) a).left_inv hx,HL] | |
| exact H | |
| have HE := movingFixedJoinMiddle_eq ((extChartAt π(β,Model n) a).map_source hx) h T | |
| (e.continuousLinearMapAt β x p) (e.continuousLinearMapAt β x v) | |
| (e.continuousLinearMapAt β x w) HB | |
| dsimp only [e] at HL HE | |
| rw [(extChartAt π(β,Model n) a).left_inv hx] at HE | |
| simpa only [HL] using HE | |
| end WeakMTWTransport | |
| end | |
| end OAI | |