Download data/lean/OAI/Geometry/RCD/Metric/BoundedPositiveMeasure.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 4.43 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/RCD/Metric/BoundedPositiveMeasure.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Geometry/RCD/Metric/BoundedPositiveMeasure.lean
-
curl -L -o BoundedPositiveMeasure.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Geometry/RCD/Metric/BoundedPositiveMeasure.lean
4.43 kB
| import Mathlib.Analysis.Convex.Cone.Extension | |
| import Mathlib.MeasureTheory.Integral.RieszMarkovKakutani.Real | |
| namespace OAI | |
| /-! # A finite measure from a bounded local positive functional | |
| The one-sided bound by the positive part preserves positivity under the | |
| Hahn--Banach extension. Riesz--Markov then gives a finite positive measure. | |
| -/ | |
| open Set MeasureTheory TopologicalSpace | |
| open scoped CompactlySupported BoundedContinuousFunction | |
| noncomputable section | |
| namespace RegularPointCoordinates | |
| variable {X : Type*} [TopologicalSpace X] [T2Space X] [LocallyCompactSpace X] | |
| [MeasurableSpace X] [BorelSpace X] | |
| theorem exists_finite_measure_of_positive_bound | |
| (S : Submodule β (X βα΅ β)) (F : S ββ[β] β) {M : β} (hM : 0 β€ M) | |
| (hF : β f : S, F f β€ M * β(f : X βα΅ β) β 0β) : | |
| β Ο : Measure X, IsFiniteMeasure Ο β§ | |
| β (f : S) (_hf : HasCompactSupport (f : X β β)), | |
| (β« x, (f : X βα΅ β) x βΟ) = F f := by | |
| let P (f : X βα΅ β) := M * βf β 0β | |
| have hPmul (c : β) (hc : 0 < c) (f : X βα΅ β) : P (c β’ f) = c * P f := by | |
| have heq : (c β’ f) β 0 = c β’ (f β 0) := by | |
| ext x | |
| change max (c * f x) 0 = c * max (f x) 0 | |
| rw [mul_max_of_nonneg _ _ hc.le, mul_zero] | |
| simp only [P, heq, norm_smul, Real.norm_of_nonneg hc.le] | |
| ring | |
| have hPadd (f g : X βα΅ β) : P (f + g) β€ P f + P g := by | |
| have hn : β(f + g) β 0β β€ βf β 0β + βg β 0β := by | |
| apply (BoundedContinuousFunction.norm_le (add_nonneg (norm_nonneg _) (norm_nonneg _))).mpr | |
| intro x | |
| have hf := (f β 0).apply_le_norm x | |
| have hg := (g β 0).apply_le_norm x | |
| change max (f x) 0 β€ _ at hf | |
| change max (g x) 0 β€ _ at hg | |
| change βmax (f x + g x) 0β β€ _ | |
| rw [Real.norm_of_nonneg (le_max_right _ _)] | |
| exact max_le (by linarith [le_max_left (f x) 0, le_max_left (g x) 0]) | |
| (add_nonneg (norm_nonneg _) (norm_nonneg _)) | |
| dsimp only [P] | |
| nlinarith [mul_le_mul_of_nonneg_left hn hM] | |
| obtain β¨G, hG, hGPβ© := exists_extension_of_le_sublinear β¨S, Fβ© P hPmul hPadd hF | |
| have hGpos {f : X βα΅ β} (hf : 0 β€ f) : 0 β€ G f := by | |
| have hn : (-f) β 0 = 0 := sup_eq_right.mpr (neg_nonpos.mpr hf) | |
| have hh := hGP (-f) | |
| simpa only [P, hn, norm_zero, mul_zero, map_neg, neg_nonpos] using hh | |
| let Ξ : C_c(X, β) ββ[β] β := | |
| { toFun := fun f => G f.toBoundedContinuousFunction | |
| map_add' := fun f g => by | |
| rw [show (f + g).toBoundedContinuousFunction = | |
| f.toBoundedContinuousFunction + g.toBoundedContinuousFunction by ext x; rfl] | |
| exact G.map_add _ _ | |
| map_smul' := fun c f => by | |
| rw [show (c β’ f).toBoundedContinuousFunction = c β’ f.toBoundedContinuousFunction by ext x; rfl] | |
| exact G.map_smul c _ | |
| monotone' := fun f g hfg => by | |
| have hh := hGpos (f := g.toBoundedContinuousFunction - f.toBoundedContinuousFunction) | |
| (sub_nonneg.mpr hfg) | |
| simpa only [map_sub, sub_nonneg] using hh } | |
| let Ο := RealRMK.rieszMeasure Ξ | |
| have hmass : Ο univ β€ ENNReal.ofReal M := by | |
| rw [isOpen_univ.measure_eq_iSup_isCompact] | |
| refine iSup_le fun K => iSup_le fun _ => iSup_le fun hK => ?_ | |
| obtain β¨f, hf, hfc, _, hfrangeβ© := | |
| exists_continuousMap_one_of_isCompact_subset_isOpen hK isOpen_univ (subset_univ K) | |
| let u : C_c(X, β) := β¨f, hfcβ© | |
| have hm := RealRMK.rieszMeasure_le_of_eq_one Ξ (f := u) | |
| (fun x => (hfrange x).1) hK hf | |
| have hn : βu.toBoundedContinuousFunction β 0β β€ 1 := by | |
| apply (BoundedContinuousFunction.norm_le (by norm_num : (0 : β) β€ 1)).mpr | |
| intro x | |
| change βmax (f x) 0β β€ 1 | |
| rw [max_eq_left (hfrange x).1, Real.norm_of_nonneg (hfrange x).1] | |
| exact (hfrange x).2 | |
| have hu : Ξ u β€ M := (hGP u.toBoundedContinuousFunction).trans (by | |
| dsimp only [P] | |
| nlinarith [mul_le_mul_of_nonneg_left hn hM]) | |
| exact hm.trans (ENNReal.ofReal_le_ofReal hu) | |
| refine β¨Ο, β¨hmass.trans_lt ENNReal.ofReal_lt_topβ©, ?_β© | |
| intro f hf | |
| let u : C_c(X, β) := β¨(f : X βα΅ β).toContinuousMap, hfβ© | |
| have hu : u.toBoundedContinuousFunction = (f : X βα΅ β) := by ext x; rfl | |
| change (β« x, u x βΟ) = F f | |
| rw [RealRMK.integral_rieszMeasure] | |
| change G u.toBoundedContinuousFunction = F f | |
| rw [hu] | |
| exact hG f | |
| end RegularPointCoordinates | |
| end | |
| end OAI | |