English
For a measurable ENNReal density f and g: X → E integrable w.r.t. μ, ∫ g d(μ.withDensity f) = ∫ f(x)·g(x) dμ (via smul).
Русский
Пусть плотность f: X → ENNReal измерима и g: X → E интегрируема по μ; тогда интеграл по μ.withDensity f равен интегралу f(x)·g(x) по μ.
LaTeX
$$$\\int_X g(x) \\,d(\\mu.withDensity f) = \\int_X f(x)\\,g(x) \\,d\\mu$$$
Lean4
theorem integral_withDensity_eq_integral_smul {f : X → ℝ≥0} (f_meas : Measurable f) (g : X → E) :
∫ x, g x ∂μ.withDensity (fun x => f x) = ∫ x, f x • g x ∂μ :=
by
by_cases hE : CompleteSpace E; swap; · simp [integral, hE]
by_cases hg : Integrable g (μ.withDensity fun x => f x); swap
· rw [integral_undef hg, integral_undef]
rwa [← integrable_withDensity_iff_integrable_smul f_meas]
refine Integrable.induction (P := fun g => ∫ x, g x ∂μ.withDensity (fun x => f x) = ∫ x, f x • g x ∂μ) ?_ ?_ ?_ ?_ hg
· intro c s s_meas hs
rw [integral_indicator s_meas]
simp_rw [← Set.indicator_smul_apply, integral_indicator s_meas]
simp only [s_meas, integral_const, Measure.restrict_apply', Set.univ_inter, withDensity_apply, measureReal_def]
rw [lintegral_coe_eq_integral, ENNReal.toReal_ofReal, ← integral_smul_const]
· rfl
· exact integral_nonneg fun x => NNReal.coe_nonneg _
· refine ⟨f_meas.coe_nnreal_real.aemeasurable.aestronglyMeasurable, ?_⟩
simpa [withDensity_apply _ s_meas, hasFiniteIntegral_iff_enorm] using hs
· intro u u' _ u_int u'_int h h'
change (∫ x : X, u x + u' x ∂μ.withDensity fun x : X => ↑(f x)) = ∫ x : X, f x • (u x + u' x) ∂μ
simp_rw [smul_add]
rw [integral_add u_int u'_int, h, h', integral_add]
· exact (integrable_withDensity_iff_integrable_smul f_meas).1 u_int
· exact (integrable_withDensity_iff_integrable_smul f_meas).1 u'_int
· have C1 : Continuous fun u : Lp E 1 (μ.withDensity fun x => f x) => ∫ x, u x ∂μ.withDensity fun x => f x :=
continuous_integral
have C2 : Continuous fun u : Lp E 1 (μ.withDensity fun x => f x) => ∫ x, f x • u x ∂μ :=
by
have : Continuous ((fun u : Lp E 1 μ => ∫ x, u x ∂μ) ∘ withDensitySMulLI (E := E) μ f_meas) :=
continuous_integral.comp (withDensitySMulLI (E := E) μ f_meas).continuous
convert this with u
simp only [Function.comp_apply, withDensitySMulLI_apply]
exact integral_congr_ae (memL1_smul_of_L1_withDensity f_meas u).coeFn_toLp.symm
exact isClosed_eq C1 C2
· intro u v huv _ hu
rw [← integral_congr_ae huv, hu]
apply integral_congr_ae
filter_upwards [(ae_withDensity_iff f_meas.coe_nnreal_ennreal).1 huv] with x hx
rcases eq_or_ne (f x) 0 with (h'x | h'x)
· simp only [h'x, zero_smul]
· rw [hx _]
simpa only [Ne, ENNReal.coe_eq_zero] using h'x