Download data/lean/OAI/Geometry/CAT0Fillings/Calculus/ClosedChain.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.16 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Calculus/ClosedChain.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/CAT0Fillings/Calculus/ClosedChain.lean
-
curl -L -o ClosedChain.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/CAT0Fillings/Calculus/ClosedChain.lean
6.16 kB
| import Mathlib | |
| import OAI.Geometry.CAT0Fillings.Gradient.Multiplier | |
| import OAI.Geometry.CAT0Fillings.Sobolev.Constant | |
| namespace OAI | |
| section | |
| open Set Filter MeasureTheory | |
| open scoped Topology ENNReal NNReal | |
| namespace CAT0Fillings.ChartGeometry | |
| variable {X : Type*} [MetricSpace X] [MeasurableSpace X] [BorelSpace X] | |
| [CompactSpace X] [Nonempty X] {k : β} {T : Functional X (k+1)} | |
| {hT : IsMetricCurrent T} (q : ChartGeometry hT) | |
| lemma atlas_preserving : MeasurePreserving q.atlasParam q.atlasMeasure | |
| (MassMeasure.currentMassMeasure hT) := β¨q.measurable_atlasParam,q.map_atlasMeasureβ© | |
| noncomputable def composeValue {F : β β β} {J : ββ₯0} (hF : LipschitzWith J F) | |
| (f : Lp β 2 (MassMeasure.currentMassMeasure hT)) : Lp β 2 (MassMeasure.currentMassMeasure hT) := | |
| (hF.sub (LipschitzWith.const (F 0))).compLp (by simp) f + q.inclusion (q.constant (F 0)) | |
| lemma composeValue_ae {F : β β β} {J : ββ₯0} (hF : LipschitzWith J F) | |
| (f : Lp β 2 (MassMeasure.currentMassMeasure hT)) : | |
| q.composeValue hF f =α΅[MassMeasure.currentMassMeasure hT] (fun x => F (f x)) := by | |
| filter_upwards [Lp.coeFn_add ((hF.sub (LipschitzWith.const (F 0))).compLp (by simp) f) | |
| (value (hT := hT) (LipschitzWith.const (F 0))), | |
| (hF.sub (LipschitzWith.const (F 0))).coeFn_compLp (by simp) f, | |
| ((Foundations.boundedLip_of_lipschitz (LipschitzWith.const (F 0))).memLp | |
| (ΞΌ := MassMeasure.currentMassMeasure hT) 2).coeFn_toLp] with x ha hb hc | |
| rw [composeValue,constant,q.inclusion_lipSobolev,ha] | |
| change ((hF.sub (LipschitzWith.const (F 0))).compLp (by simp) f) x + (value (hT := hT) (LipschitzWith.const (F 0))) x = _ | |
| change (value (hT := hT) (LipschitzWith.const (F 0))) x = F 0 at hc | |
| rw [hb,hc] | |
| simp only [Function.comp_apply,sub_add_cancel] | |
| lemma continuous_composeValue {F : β β β} {J : ββ₯0} (hF : LipschitzWith J F) : | |
| Continuous (q.composeValue hF) := | |
| ((hF.sub (LipschitzWith.const (F 0))).continuous_compLp (by simp)).add continuous_const | |
| lemma composeValue_value {F : β β β} {J : ββ₯0} (hF : LipschitzWith J F) | |
| {u : X β β} {K : ββ₯0} (hu : LipschitzWith K u) : | |
| q.composeValue hF (value hu) = value (hF.comp hu) := by | |
| apply Lp.ext | |
| filter_upwards [q.composeValue_ae hF (value hu), | |
| ((Foundations.boundedLip_of_lipschitz hu).memLp (ΞΌ := MassMeasure.currentMassMeasure hT) 2).coeFn_toLp, | |
| ((Foundations.boundedLip_of_lipschitz (hF.comp hu)).memLp | |
| (ΞΌ := MassMeasure.currentMassMeasure hT) 2).coeFn_toLp] with x ha hb hc | |
| exact ha.trans ((congrArg F hb).trans hc.symm) | |
| lemma closed_chain {F F' : β β β} {J : ββ₯0} (hF : LipschitzWith J F) | |
| (hdF : β t, HasDerivAt F (F' t) t) (hcF : Continuous F') | |
| {C : β} (hC : 0 β€ C) (hbF : β t, |F' t| β€ C) (P : q.Sobolev) : | |
| β Q : q.Sobolev, | |
| (q.inclusion Q : X β β) =α΅[MassMeasure.currentMassMeasure hT] | |
| (fun x => F ((q.inclusion P) x)) β§ | |
| (q.closedGradient Q : (β Γ Euc (k+1)) β Euc (k+1)) =α΅[q.atlasMeasure] | |
| (fun w => F' ((q.inclusion P) (q.atlasParam w)) β’ (q.closedGradient P) w) := by | |
| obtain β¨u,K,hu,hlβ© := q.exists_lipschitz_approximants P | |
| have hv := (q.valueProjection.continuous.tendsto (P : q.GraphAmbient)).comp hl | |
| have hg := (q.gradientProjection.continuous.tendsto (P : q.GraphAmbient)).comp hl | |
| change Tendsto (fun j => value (hu j)) atTop (π (q.inclusion P)) at hv | |
| change Tendsto (fun j => q.gradient (hu j)) atTop (π (q.closedGradient P)) at hg | |
| obtain β¨s,hs,haeβ© := (tendstoInMeasure_of_tendsto_Lp hv).exists_seq_tendsto_ae | |
| have hnames : βα΅ x βMassMeasure.currentMassMeasure hT, β j, | |
| (value (hT := hT) (hu (s j))) x = u (s j) x := by | |
| apply ae_all_iff.mpr | |
| intro j | |
| exact ((Foundations.boundedLip_of_lipschitz (hu (s j))).memLp 2).coeFn_toLp | |
| have hae' : βα΅ x βMassMeasure.currentMassMeasure hT, | |
| Tendsto (fun j => u (s j) x) atTop (π ((q.inclusion P) x)) := by | |
| filter_upwards [hae,hnames] with x hx he | |
| simpa only [he] using hx | |
| let b (j : β) (w : β Γ Euc (k+1)) := F' (u (s j) (q.atlasParam w)) | |
| let c (w : β Γ Euc (k+1)) := F' ((q.inclusion P) (q.atlasParam w)) | |
| have hb (j : β) : AEStronglyMeasurable (b j) q.atlasMeasure := | |
| (hcF.measurable.comp ((hu (s j)).continuous.measurable.comp q.measurable_atlasParam)).aestronglyMeasurable | |
| have hc : AEStronglyMeasurable c q.atlasMeasure := | |
| hcF.comp_aestronglyMeasurable ((Lp.aestronglyMeasurable (q.inclusion P)).comp_measurePreserving q.atlas_preserving) | |
| have hbC (j : β) : βα΅ w βq.atlasMeasure, |b j w| β€ C := Eventually.of_forall fun w => hbF _ | |
| have hcC : βα΅ w βq.atlasMeasure, |c w| β€ C := Eventually.of_forall fun w => hbF _ | |
| have hbc : βα΅ w βq.atlasMeasure, Tendsto (fun j => b j w) atTop (π (c w)) := by | |
| have ha : βα΅ w βq.atlasMeasure, | |
| Tendsto (fun j => u (s j) (q.atlasParam w)) atTop (π ((q.inclusion P) (q.atlasParam w))) := by | |
| apply ae_of_ae_map (ΞΌ := q.atlasMeasure) (p := fun x => | |
| Tendsto (fun j => u (s j) x) atTop (π ((q.inclusion P) x))) q.measurable_atlasParam.aemeasurable | |
| rwa [q.map_atlasMeasure] | |
| filter_upwards [ha] with w hw | |
| exact (hcF.tendsto _).comp hw | |
| have hgl := ClosedCalculus.mulLp_tendsto hb hc hC hbC hcC hbc (hg.comp hs.tendsto_atTop) | |
| have he (j : β) : ClosedCalculus.mulLp (hb j) (hbC j) (q.gradient (hu (s j))) = | |
| q.gradient (hF.comp (hu (s j))) := by | |
| apply Lp.ext | |
| exact (ClosedCalculus.mulLp_ae (hb j) (hbC j) _).trans (q.gradient_chain_ae (hu (s j)) hF hdF).symm | |
| simp only [Function.comp_apply,he] at hgl | |
| have hvl := (q.continuous_composeValue hF).tendsto (q.inclusion P) |>.comp (hv.comp hs.tendsto_atTop) | |
| simp only [Function.comp_def,q.composeValue_value] at hvl | |
| obtain β¨Q,hQ,hGβ© := q.closedGradient_closed (q.composeValue hF (q.inclusion P)) | |
| (ClosedCalculus.mulLp hc hcC (q.closedGradient P)) | |
| (fun j => q.lipSobolev (hF.comp (hu (s j)))) hvl hgl | |
| refine β¨Q,?_,?_β© | |
| Β· rw [hQ] | |
| exact q.composeValue_ae hF (q.inclusion P) | |
| Β· rw [hG] | |
| exact ClosedCalculus.mulLp_ae hc hcC _ | |
| end CAT0Fillings.ChartGeometry | |
| end | |
| end OAI | |