cfahlgren1/math / lean /OAI /Probability /Ballisticity /Renewal /PositiveOpenTest.lean
cfahlgren1's picture
download
raw
1.66 kB
import Mathlib
import OAI.Probability.Ballisticity.Model
namespace OAI
section
section
open MeasureTheory ProbabilityTheory Filter
open scoped ENNReal NNReal Topology BoundedContinuousFunction
namespace DirectionalTransience
lemma positive_bounded_test_of_open {E : Type*} [MetricSpace E] [MeasurableSpace E] [BorelSpace E]
(μ : Measure E) [IsFiniteMeasure μ] (O : Set E) (hO : IsOpen O)
(hc : Oᶜ.Nonempty) (hpos : 0 < μ O) :
∃ F : E →ᵇ ℝ, (∀ x, 0 ≤ F x ∧ F x ≤ 1) ∧
(∀ x, F x ≠ 0 → x ∈ O) ∧ 0 < ∫ x, F x ∂μ := by
let f : E → ℝ := fun x => min 1 (Metric.infDist x Oᶜ)
have hf : Continuous f := continuous_const.min (Metric.continuous_infDist_pt Oᶜ)
have hb (x : E) : 0 ≤ f x ∧ f x ≤ 1 :=
⟨le_min (by norm_num) Metric.infDist_nonneg, min_le_left _ _⟩
let F : E →ᵇ ℝ := BoundedContinuousFunction.mkOfBound ⟨f,hf⟩ 1 (fun x y => by
change |f x-f y| ≤ 1
rw [abs_le]
constructor <;> linarith [(hb x).1,(hb x).2,(hb y).1,(hb y).2])
have hs : Function.support F = O := by
ext x
change f x ≠ 0 ↔ x ∈ O
have he : 0 < Metric.infDist x Oᶜ ↔ x ∈ O := by
simpa only [Set.notMem_compl_iff] using (hO.isClosed_compl.notMem_iff_infDist_pos hc).symm
rw [← (hb x).1.lt_iff_ne']
exact (lt_min_iff.trans (and_iff_right (by norm_num))).trans he
refine ⟨F,hb,?_,?_⟩
· intro x hx
exact hs ▸ hx
· apply (integral_pos_iff_support_of_nonneg (fun x => (hb x).1)
(BoundedContinuousFunction.integrable μ F)).mpr
change 0 < μ (Function.support F)
rwa [hs]
end DirectionalTransience
end
end
end OAI

Xet Storage Details

Size:
1.66 kB
·
Xet hash:
a5b3683b539c68bec67b626ecf00cc6f648a203fdd3a611dea0258a1b5a7981c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.