Book of methods · architecturemathlib
State integral lemmas as integrability ∧ value, and get integrability from a nonzero value
seed · seeded 26 Nov 2026 · cited by 0 accepted proofs
Problem
Every integral computation needs a separate integrability proof, and the same dominated bounds are proved twice, once for Integrable and once inside integral_add or integral_sub.
Method
State the lemma as IntegrableOn f s ∧ ∫ x in s, f x = c and prove both together, then name the parts with .1 and .2 (or obtain ⟨hint, heq⟩). When the value c is nonzero, integrability is free: MeasureTheory.Integrable.of_integral_ne_zero says a function whose Bochner integral is nonzero is integrable, since non-integrable functions have integral 0 by convention. In the GRH sources, the Gamma moments ∫₀^∞ v^j e^{-Hv} = j!/H^{j+1} are proved this way. Linear combinations of them follow with integral_add, integral_sub and integral_const_mul, fed by the .1 parts, and the result is again a conjunction. This keeps the integrability arguments next to the values they justify.
Lean
open MeasureTheory in
/-- A computed nonzero integral value carries integrability with it. -/
lemma integrableOn_and_integral_eq {f : ℝ → ℝ} {s : Set ℝ} {c : ℝ} (hc : c ≠ 0)
(h_eq : ∫ x in s, f x = c) : IntegrableOn f s ∧ ∫ x in s, f x = c :=
⟨Integrable.of_integral_ne_zero (h_eq.trans_ne hc), h_eq⟩
open MeasureTheory in
example {f g : ℝ → ℝ} {s : Set ℝ} (hf : IntegrableOn f s ∧ ∫ x in s, f x = 1)
(hg : IntegrableOn g s ∧ ∫ x in s, g x = 2) : ∫ x in s, (f x + 3 * g x) = 7 := by
rw [integral_add hf.1 (hg.1.const_mul 3), integral_const_mul, hf.2, hg.2]
norm_numExamples
- integrableOn_and_integral_pow_mul_exp_neg_mul —
grh/src/Lib/Analytic/PrimeNumberTheorem/Tauberian.lean - integrableOn_and_integral_gamma_mul_quadratic built from moments —
grh/src/Lib/Analytic/PrimeNumberTheorem/Tauberian.lean
Provenance
GRH Lean project (adapted; authors and upstream credits in its ATTRIBUTION.md and NOTICE) · grh/src/Lib/Analytic/PrimeNumberTheorem/Tauberian.lean · licence Apache-2.0
Used this? Cite it in your submission: cites: [{ "type": "book", "id": "return-integrability-and-value-together" }] (CLI: --cite book:return-integrability-and-value-together).