Download data/lean/OAI/Probability/PosteriorReplicas/Regression/LimitSet.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 2.35 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/PosteriorReplicas/Regression/LimitSet.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Probability/PosteriorReplicas/Regression/LimitSet.lean
-
curl -L -o LimitSet.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Probability/PosteriorReplicas/Regression/LimitSet.lean
2.35 kB
| import OAI.Probability.PosteriorReplicas.Model | |
| namespace OAI | |
| open MeasureTheory ProbabilityTheory Set Filter | |
| open scoped ENNReal NNReal RealInnerProductSpace | |
| noncomputable section | |
| universe u | |
| namespace PosteriorRegression | |
| open scoped Topology | |
| open InnerProductSpace | |
| section LimitSet | |
| variable {X Y : Type*} [MeasurableSpace X] [MeasurableSpace Y] | |
| [TopologicalSpace Y] [BorelSpace Y] | |
| (Ο : Measure X) (Ο : Measure Y) | |
| lemma map_apply_open_le_of_tendsto (F : X β Y) (Fβ : β β X β Y) | |
| (hF : Measurable F) (hFβ : β k, Measurable (Fβ k)) | |
| (ht : β x, Tendsto (fun k => Fβ k x) atTop (π (F x))) | |
| (C : ββ₯0β) (Ξ± : β) | |
| (hbound : β k U, IsOpen U β (Ο.map (Fβ k)) U β€ C * (Ο U)^Ξ±) | |
| (U : Set Y) (hU : IsOpen U) : | |
| (Ο.map F) U β€ C * (Ο U)^Ξ± := by | |
| let f : β β X β ββ₯0β := fun k => (Fβ k β»ΒΉ' U).indicator (fun _ => 1) | |
| have hf : β k, Measurable (f k) := fun k => | |
| measurable_const.indicator (hU.measurableSet.preimage (hFβ k)) | |
| have hind : β x, (F β»ΒΉ' U).indicator (fun _ => (1 : ββ₯0β)) x β€ | |
| atTop.liminf (fun k => f k x) := by | |
| intro x | |
| by_cases hx : F x β U | |
| Β· rw [Set.indicator_of_mem (show x β F β»ΒΉ' U from hx)] | |
| apply le_liminf_of_le (by isBoundedDefault) | |
| filter_upwards [(ht x).eventually (hU.mem_nhds hx)] with k hk | |
| change 1 β€ (Fβ k β»ΒΉ' U).indicator (fun _ => (1 : ββ₯0β)) x | |
| rw [Set.indicator_of_mem (show x β Fβ k β»ΒΉ' U from hk)] | |
| Β· rw [Set.indicator_of_notMem (show x β F β»ΒΉ' U from hx)] | |
| exact zero_le | |
| calc | |
| (Ο.map F) U = β«β» x, (F β»ΒΉ' U).indicator (fun _ => (1 : ββ₯0β)) x βΟ := by | |
| rw [Measure.map_apply hF hU.measurableSet, | |
| lintegral_indicator (hU.measurableSet.preimage hF)] | |
| simp | |
| _ β€ β«β» x, atTop.liminf (fun k => f k x) βΟ := lintegral_mono hind | |
| _ β€ atTop.liminf (fun k => β«β» x, f k x βΟ) := lintegral_liminf_le hf | |
| _ β€ _ := by | |
| apply liminf_le_of_frequently_le (hu_le := by isBoundedDefault) | |
| apply Filter.Eventually.frequently | |
| filter_upwards [] with k | |
| have hk := hbound k U hU | |
| simpa [f, lintegral_indicator (hU.measurableSet.preimage (hFβ k)), | |
| Measure.map_apply (hFβ k) hU.measurableSet] using hk | |
| end LimitSet | |
| end PosteriorRegression | |
| end | |
| end OAI | |