math / data /lean /OAI /Geometry /RCD /Metric /BoundedPositiveMeasure.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
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