Proof of Theorem 2, p. 34: (Fubini step)
ProvedLevelSetScores.lintegral_weightedMassThroughout, carries its Borel -algebra and Lebesgue measure. Let be a measurable integrable function, , let the kernel be an s-finite measure on , let be a measure on (the law of the observation ), and let be a measurable Lebesgue density of the convolution (the paper's ). For a Borel set and write , i.e. , and for the score (11).
Let be measurable (no sign or integrability condition is needed here). For every Borel set ,
This is the integrated form of the paper's identity : the expected kernel-weighted mass of is the -integral of the smoothed density over . It turns every expected score into an integral over .
Formalization Note and enter through ENNReal.ofReal, i.e. as and ; the identity is between lower Lebesgue integrals.
Differences from the source:
- reading: f_Y ∗ w, the convolution of the generalized density f_Y (PDF, pmf or mixture) with w, used both as a local Borel measure (Assumption 1(a)) and as a function (Ξ[Y] := (f_Y ∗ w)(z), p. 33) → Ξ is any measurable Lebesgue density of the measure Measure.conv P ν (hypothesis hΞ); reason: for a function kernel w and every P this density is z ↦ ∫ w(z − s) dP_Y(s), the convolution of p. 6; null-set changes of Ξ change no expected score
- reading: the pointwise identity E_{P_Y}[ϑ(•,z)] = ΞY → its integral against 1_B(z) h(z) dz for every Borel B, in ℝ≥0∞; reason: for a measure kernel ϑ(y,z) = w(z − y) has no pointwise value; the pointwise identity is the hypothesis hΞ itself, and the proof uses it only in this integrated form (passing from ∆′′ to (19))
- generalization: w a nonnegative local Borel measure (Assumption 1(a)) → ν any s-finite measure on ℝᵈ; w(z − y) is integrated as ∫ φ(y + u) dν(u); reason: locally finite Borel measures on ℝᵈ are s-finite and nonnegative; a function kernel w ≥ 0 is volume.withDensity w and δ₀ is dirac 0, so the source's kernels are instances
- generalization: P_Y a probability measure in V^d; h ≥ 0 integrable → P any measure; h only measurable (entering as max(h, 0)); reason: the identity holds without these conditions; for a probability P and h ≥ 0 it is the source's
- generalization: ℝ^d (d ≥ 1 implicitly) → EuclideanSpace ℝ (Fin d) for every d : ℕ, including d = 0; reason: the d = 0 instance (a point) is extra and the statement specializes to the source for d ≥ 1
import Mathlib import Definitions.Def_LevelSetScores_weightedMass open MeasureTheory open scoped ENNReal
namespace LevelSetScores
/-- **Fubini step: `E_{P_Y}[ϑ(•,z)] = Ξ[Y](z)` integrated over a set.**
Meng, Taylor, Ben Taieb, Li, *Scores for Multivariate Distributions and Level Sets*,
arXiv:2002.09578v6, proof of Theorem 2 (ii), unnumbered, pp. 33–34: "For notational
convenience, for any PX ∈ Vd we write ϑ(y,z) := w(z − y), and Ξ[Y](z) := (fY ∗ w)(z)."
(p. 33) and "Notice that EPY[ϑ(•,z)] = Ξ[Y](z), which implies that" (p. 34).
For every measurable `B`, the `P`-expectation of the weighted mass `µ_{y,w}(B)` is
`∫_B h(z) Ξ(z) dz`, where `Ξ` is a Lebesgue density of the convolution `P ∗ ν`.
**Formalization Note.** The kernel `w` is the s-finite measure `ν` and `f_Y ∗ w` is a Lebesgue
density `Ξ` of `Measure.conv P ν` (hypothesis `hΞ`); `P` may be any measure. The identity is in
`ℝ≥0∞`, so no integrability is needed; `h` and `Ξ` enter through `ENNReal.ofReal`. -/
theorem lintegral_weightedMass {d : ℕ} {h : EuclideanSpace ℝ (Fin d) → ℝ}
(hh_meas : Measurable h)
{ν : Measure (EuclideanSpace ℝ (Fin d))} [SFinite ν]
{P : Measure (EuclideanSpace ℝ (Fin d))}
{Ξ : EuclideanSpace ℝ (Fin d) → ℝ} (hΞ_meas : Measurable Ξ)
(hΞ : Measure.conv P ν = volume.withDensity (fun z => ENNReal.ofReal (Ξ z)))
{B : Set (EuclideanSpace ℝ (Fin d))} (hB : MeasurableSet B) :
∫⁻ y, weightedMass h ν B y ∂P =
∫⁻ z in B, ENNReal.ofReal (h z) * ENNReal.ofReal (Ξ z) := by sorry
end LevelSetScores