Download data/lean/OAI/Analysis/Brenier/MapLimits.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 8.78 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Brenier/MapLimits.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Analysis/Brenier/MapLimits.lean
-
curl -L -o MapLimits.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Analysis/Brenier/MapLimits.lean
8.78 kB
| import OAI.Analysis.Brenier.MapDistance | |
| namespace OAI | |
| section | |
| open MeasureTheory Filter | |
| open scoped Topology BoundedContinuousFunction | |
| namespace Problem358 | |
| /-- Bounded continuous tests commute with almost-everywhere limits of measurable | |
| maps on a finite measure space. No uniform bound on the maps themselves is needed. -/ | |
| theorem tendsto_integral_boundedContinuous_comp_ae | |
| {X Y : Type*} [MeasurableSpace X] [TopologicalSpace Y] | |
| [MeasurableSpace Y] [OpensMeasurableSpace Y] | |
| {Ο : Measure X} [IsFiniteMeasure Ο] | |
| {Tn : β β X β Y} {T : X β Y} | |
| (hTn : β n, Measurable (Tn n)) | |
| (hlim : βα΅ x βΟ, Tendsto (fun n => Tn n x) atTop (π (T x))) | |
| (f : Y βα΅ β) : | |
| Tendsto (fun n => β« x, f (Tn n x) βΟ) atTop | |
| (π (β« x, f (T x) βΟ)) := by | |
| apply tendsto_integral_of_dominated_convergence (fun _ => βfβ) | |
| Β· intro n | |
| exact (f.continuous.measurable.comp (hTn n)).aestronglyMeasurable | |
| Β· exact integrable_const _ | |
| Β· intro n | |
| exact Filter.Eventually.of_forall fun x => f.norm_coe_le_norm (Tn n x) | |
| Β· filter_upwards [hlim] with x hx | |
| exact f.continuous.continuousAt.tendsto.comp hx | |
| /-- A candidate almost-everywhere limit has the prescribed target law whenever | |
| the approximating laws converge against bounded continuous functions. -/ | |
| theorem map_eq_of_ae_tendsto_and_test_tendsto | |
| {X Y : Type*} [MeasurableSpace X] [TopologicalSpace Y] | |
| [MeasurableSpace Y] [BorelSpace Y] [HasOuterApproxClosed Y] | |
| {Ο : Measure X} [IsFiniteMeasure Ο] | |
| {Ξ½ : Measure Y} [IsFiniteMeasure Ξ½] | |
| {Tn : β β X β Y} {T : X β Y} | |
| (hTn : β n, Measurable (Tn n)) (hT : Measurable T) | |
| (hlim : βα΅ x βΟ, Tendsto (fun n => Tn n x) atTop (π (T x))) | |
| (htest : β f : Y βα΅ β, | |
| Tendsto (fun n => β« x, f (Tn n x) βΟ) atTop (π (β« y, f y βΞ½))) : | |
| Measure.map T Ο = Ξ½ := by | |
| apply ext_of_forall_integral_eq_of_IsFiniteMeasure | |
| intro f | |
| rw [integral_map hT.aemeasurable f.continuous.measurable.aestronglyMeasurable] | |
| exact tendsto_nhds_unique (tendsto_integral_boundedContinuous_comp_ae hTn hlim f) (htest f) | |
| /-- Closed support constraints survive almost-everywhere limits. -/ | |
| theorem ae_mem_of_closed_of_ae_tendsto | |
| {X Y : Type*} [MeasurableSpace X] [TopologicalSpace Y] | |
| {Ο : Measure X} {Tn : β β X β Y} {T : X β Y} {K : Set Y} | |
| (hK : IsClosed K) (hmem : β n, βα΅ x βΟ, Tn n x β K) | |
| (hlim : βα΅ x βΟ, Tendsto (fun n => Tn n x) atTop (π (T x))) : | |
| βα΅ x βΟ, T x β K := by | |
| have hall : βα΅ x βΟ, β n, Tn n x β K := ae_all_iff.mpr hmem | |
| filter_upwards [hall, hlim] with x hx htx | |
| exact hK.mem_of_tendsto htx (Filter.Eventually.of_forall hx) | |
| /-- The limit of maps to quantized target laws has the original target law. | |
| This is the law-identification step in finite-target approximation. -/ | |
| theorem map_eq_of_ae_tendsto_quantized | |
| {X Y : Type*} [MeasurableSpace X] [TopologicalSpace Y] | |
| [MeasurableSpace Y] [BorelSpace Y] [HasOuterApproxClosed Y] | |
| {Ο : Measure X} [IsFiniteMeasure Ο] | |
| {Ξ½ : Measure Y} [IsFiniteMeasure Ξ½] | |
| {Tn : β β X β Y} {T : X β Y} {Qn : β β Y β Y} | |
| (hTn : β n, Measurable (Tn n)) (hT : Measurable T) | |
| (hQn : β n, Measurable (Qn n)) | |
| (hpush : β n, Measure.map (Tn n) Ο = Measure.map (Qn n) Ξ½) | |
| (hlim : βα΅ x βΟ, Tendsto (fun n => Tn n x) atTop (π (T x))) | |
| (hQlim : βα΅ y βΞ½, Tendsto (fun n => Qn n y) atTop (π y)) : | |
| Measure.map T Ο = Ξ½ := by | |
| apply map_eq_of_ae_tendsto_and_test_tendsto hTn hT hlim | |
| intro f | |
| have heq : β n, (β« x, f (Tn n x) βΟ) = β« y, f (Qn n y) βΞ½ := by | |
| intro n | |
| rw [β integral_map (hTn n).aemeasurable f.continuous.measurable.aestronglyMeasurable, | |
| hpush n, integral_map (hQn n).aemeasurable f.continuous.measurable.aestronglyMeasurable] | |
| simp_rw [heq] | |
| exact tendsto_integral_boundedContinuous_comp_ae hQn hQlim f | |
| /-- Almost-everywhere convergence gives convergence against bounded continuous tests. -/ | |
| theorem tendsto_integral_boundedContinuous_comp_of_ae | |
| {X V : Type*} [MeasurableSpace X] [TopologicalSpace V] | |
| [MeasurableSpace V] [BorelSpace V] | |
| {Ο : Measure X} [IsFiniteMeasure Ο] | |
| {Tn : β β X β V} {T : X β V} (hTn : β n, Measurable (Tn n)) | |
| (hlim : βα΅ x βΟ, Tendsto (fun n => Tn n x) atTop (π (T x))) | |
| (f : BoundedContinuousFunction V β) : | |
| Tendsto (fun n => β« x, f (Tn n x) βΟ) atTop (π (β« x, f (T x) βΟ)) := | |
| tendsto_integral_boundedContinuous_comp_ae hTn hlim f | |
| /-- Almost-everywhere limits with convergent approximating laws have the prescribed pushforward. -/ | |
| theorem map_eq_of_ae_limits | |
| {X V : Type*} [MeasurableSpace X] [TopologicalSpace V] | |
| [MeasurableSpace V] [BorelSpace V] [HasOuterApproxClosed V] | |
| {Ο : Measure X} {ΞΌ : Measure V} [IsFiniteMeasure Ο] [IsFiniteMeasure ΞΌ] | |
| {Tn : β β X β V} {T : X β V} {Qn : β β V β V} | |
| (hTn : β n, Measurable (Tn n)) (hT : Measurable T) | |
| (hQn : β n, Measurable (Qn n)) | |
| (hTlim : βα΅ x βΟ, Tendsto (fun n => Tn n x) atTop (π (T x))) | |
| (hQlim : βα΅ y βΞΌ, Tendsto (fun n => Qn n y) atTop (π y)) | |
| (hpush : β n, Measure.map (Tn n) Ο = Measure.map (Qn n) ΞΌ) : | |
| Measure.map T Ο = ΞΌ := | |
| map_eq_of_ae_tendsto_quantized hTn hT hQn hpush hTlim hQlim | |
| end Problem358 | |
| end | |
| noncomputable section | |
| open Filter MeasureTheory | |
| open scoped Topology | |
| namespace Problem358 | |
| /-- Almost-everywhere existence of a pointwise limit with an arbitrary extra | |
| property can be realized by one measurable function. No measurability of the | |
| extra property is required. -/ | |
| theorem exists_measurable_limit_with_property | |
| {Ξ± Ξ² : Type*} [MeasurableSpace Ξ±] [MetricSpace Ξ²] | |
| [MeasurableSpace Ξ²] [BorelSpace Ξ²] [Nonempty Ξ²] | |
| {Ο : Measure Ξ±} {f : β β Ξ± β Ξ²} {P : Ξ± β Ξ² β Prop} | |
| (hmeas : β n, AEMeasurable (f n) Ο) | |
| (hex : βα΅ x βΟ, β y, Tendsto (fun n => f n x) atTop (π y) β§ P x y) : | |
| β g : Ξ± β Ξ², Measurable g β§ βα΅ x βΟ, | |
| Tendsto (fun n => f n x) atTop (π (g x)) β§ P x (g x) := by | |
| classical | |
| let Q : Ξ± β Ξ² β Prop := fun x y => | |
| Tendsto (fun n => f n x) atTop (π y) β§ P x y | |
| let g : Ξ± β Ξ² := fun x => | |
| if h : β y, Q x y then Classical.choose h else Classical.arbitrary Ξ² | |
| have hgprop : βα΅ x βΟ, Q x (g x) := by | |
| filter_upwards [hex] with x hx | |
| dsimp only [g] | |
| rw [dite_eq_left hx] | |
| exact Classical.choose_spec hx | |
| have hgmeas : AEMeasurable g Ο := | |
| aemeasurable_of_tendsto_metrizable_ae atTop hmeas (hgprop.mono fun x hx => hx.1) | |
| refine β¨hgmeas.mk g, hgmeas.measurable_mk, ?_β© | |
| filter_upwards [hgprop, hgmeas.ae_eq_mk] with x hx heq | |
| exact heq βΈ hx | |
| end Problem358 | |
| end | |
| noncomputable section | |
| open MeasureTheory Filter | |
| open scoped Topology ENNReal BoundedContinuousFunction | |
| namespace Problem358 | |
| variable {d : β} {Ο Ξ½ : Measure (E d)} | |
| /-- An LΒ² limit has the target law when the approximating laws come from maps converging to | |
| identity on that target. -/ | |
| theorem map_eq_of_mapL2Dist_limit [IsFiniteMeasure Ο] [IsFiniteMeasure Ξ½] | |
| {T Q : β β E d β E d} {S : E d β E d} | |
| (hT : β n, Measurable (T n)) (hQ : β n, Measurable (Q n)) | |
| (hS : Measurable S) (hTmem : β n, MemLp (T n) 2 Ο) (hSmem : MemLp S 2 Ο) | |
| (hTlim : Tendsto (fun n => mapL2Dist Ο (T n) S) atTop (π 0)) | |
| (hQlim : βα΅ y βΞ½, Tendsto (fun n => Q n y) atTop (π y)) | |
| (hmap : β n, Measure.map (T n) Ο = Measure.map (Q n) Ξ½) : | |
| Measure.map S Ο = Ξ½ := by | |
| obtain β¨ns, hns, hlimβ© := | |
| exists_subseq_tendsto_ae_of_mapL2Dist_tendsto_zero hTmem hSmem hTlim | |
| apply map_eq_of_ae_limits (fun n => hT (ns n)) hS (fun n => hQ (ns n)) hlim | |
| _ (fun n => hmap (ns n)) | |
| filter_upwards [hQlim] with y hy | |
| exact hy.comp hns.tendsto_atTop | |
| /-- Completeness and target-law identification combined, without an optimality assertion. -/ | |
| theorem exists_map_of_approximating_mapL2_cauchy [IsFiniteMeasure Ο] [IsFiniteMeasure Ξ½] | |
| {T Q : β β E d β E d} | |
| (hT : β n, Measurable (T n)) (hQ : β n, Measurable (Q n)) | |
| (hTmem : β n, MemLp (T n) 2 Ο) | |
| (hC : β Ξ΅ > 0, β N, β m β₯ N, β n β₯ N, | |
| mapL2Dist Ο (T m) (T n) < Ξ΅) | |
| (hQlim : βα΅ y βΞ½, Tendsto (fun n => Q n y) atTop (π y)) | |
| (hmap : β n, Measure.map (T n) Ο = Measure.map (Q n) Ξ½) : | |
| β S : E d β E d, Measurable S β§ MemLp S 2 Ο β§ Measure.map S Ο = Ξ½ β§ | |
| Tendsto (fun n => mapL2Dist Ο (T n) S) atTop (π 0) := by | |
| obtain β¨S, hS, hSmem, hlimβ© := exists_mapL2Dist_limit hTmem hC | |
| exact β¨S, hS, hSmem, map_eq_of_mapL2Dist_limit hT hQ hS hTmem hSmem hlim hQlim hmap, | |
| hlimβ© | |
| end Problem358 | |
| end | |
| end OAI | |