Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Buchstab integral over an ordered box

Definition
LL_Decomp587j_buchstabIntegral

by sthubbar · Nov 18, 2026 · Mathlib 0df444a (Lean v4.33.1)

For ω:R→R\omega:\mathbb R\to\mathbb Rω:R→R, n∈Nn\in\mathbb Nn∈N, vectors ℓ,h∈Rn+2\ell,h\in\mathbb R^{n+2}ℓ,h∈Rn+2 with coordinates indexed by 0,…,n+10,\dots,n+10,…,n+1, and φ∈R\varphi\in\mathbb Rφ∈R, the real number ∫Dω((φ−∑jxj)/xn) ((∏jxj) xn)−1 dx\int_D \omega\bigl((\varphi-\sum_j x_j)/x_n\bigr)\,\bigl((\prod_j x_j)\,x_n\bigr)^{-1}\,dx∫D​ω((φ−∑j​xj​)/xn​)((∏j​xj​)xn​)−1dx, the integral with respect to Lebesgue measure on Rn+2\mathbb R^{n+2}Rn+2 over the set DDD of monotone xxx with ℓj≤xj≤hj\ell_j\le x_j\le h_jℓj​≤xj​≤hj​ for all jjj. Here xnx_nxn​ is the penultimate coordinate, so it appears squared in the denominator. As for every Bochner integral, the value is 000 if the integrand is not integrable on DDD.

Definition code
import Mathlib
import Definitions.Def_LL_Decomp587j_domain

open Real Set MeasureTheory
open scoped Classical

namespace LL_Decomp587j

noncomputable section

def buchstabIntegral (ω : ℝ → ℝ) (n : ℕ) (lo hi : Fin (n + 2) → ℝ) (φ : ℝ) : ℝ :=
  ∫ x in domain lo hi,
    ω ((φ - ∑ j, x j) / x ⟨n, by omega⟩) / ((∏ j, x j) * x ⟨n, by omega⟩)

end

end LL_Decomp587j
Read-back

What the Lean code literally says, in plain math · claude-haiku

Read-back of LL_Decomp587j.buchstabIntegral

This is a definition of a real number. Its inputs are a function ω:R→R\omega : \mathbb{R} \to \mathbb{R}ω:R→R, a natural number nnn, two vectors lo,hi∈R n+2\mathrm{lo}, \mathrm{hi} \in \mathbb{R}^{\,n+2}lo,hi∈Rn+2 (coordinates indexed by j∈{0,1,…,n+1}j \in \{0,1,\dots,n+1\}j∈{0,1,…,n+1}), and a real number φ\varphiφ. The definition relies on domain lo hi, a set taken from the imported file Definitions.Def_LL_Decomp587j_domain. That file is not unfolded here, so the set of integration is described only as D(lo,hi)D(\mathrm{lo},\mathrm{hi})D(lo,hi), a subset of R n+2\mathbb{R}^{\,n+2}Rn+2 determined by that imported definition.

The value is

B(ω,n,lo,hi,φ)  =  ∫x∈D(lo,hi)ω ⁣(φ−∑j=0n+1xjxn)(∏j=0n+1xj)⋅xn dx,B(\omega, n, \mathrm{lo}, \mathrm{hi}, \varphi) \;=\; \int_{x \in D(\mathrm{lo},\mathrm{hi})} \frac{\omega\!\left(\dfrac{\varphi - \sum_{j=0}^{n+1} x_j}{x_n}\right)}{\left(\prod_{j=0}^{n+1} x_j\right) \cdot x_n}\,dx,B(ω,n,lo,hi,φ)=∫x∈D(lo,hi)​(∏j=0n+1​xj​)⋅xn​ω(xn​φ−∑j=0n+1​xj​​)​dx,

where x=(x0,…,xn+1)x = (x_0,\dots,x_{n+1})x=(x0​,…,xn+1​) is the integration variable. The index nnn in the Lean code is the coordinate in position nnn (zero-based), which is the second-to-last coordinate of the n+2n+2n+2 coordinates, not the last one (n+1n+1n+1). The same coordinate xnx_nxn​ appears both in the argument of ω\omegaω and as an extra factor in the denominator.

Points worth an auditor's attention:

  • The integral is a Lean Bochner integral (∫ x in S, f x) with respect to the default measure on R n+2\mathbb{R}^{\,n+2}Rn+2 in Mathlib. The text does not name the measure explicitly.
  • Lean's real division is total: division by zero returns 000. So at points where xn=0x_n = 0xn​=0 or ∏jxj=0\prod_j x_j = 0∏j​xj​=0 the integrand takes a junk value, and these points are not excluded by the definition itself. Whether they matter depends on the imported set D(lo,hi)D(\mathrm{lo},\mathrm{hi})D(lo,hi) and on measure theory, which is not visible here.
  • Bochner integrals return 000 when the integrand is not integrable on the set. So the displayed value is 000 both for a genuinely zero integral and for a non-integrable integrand. The definition alone does not distinguish these cases.
  • The definition is not vacuous or trivially zero in its text, since it is a general formula in ω\omegaω, φ\varphiφ, lo\mathrm{lo}lo and hi\mathrm{hi}hi. Its content beyond this formula depends on the imported domain set.
  • The by omega side conditions only certify that n<n+2n < n+2n<n+2, so they are harmless.
Human review
  • Endorsed by Shuze Chen · Nov 18, 2026

    Confirmed by the moderator at approval.

  • Endorsed by sthubbar · Nov 18, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me