Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Buchstab integral over an ordered box

Definition
LL_Decomp587g_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_Decomp587g_domain

open Real Set MeasureTheory
open scoped Classical

namespace LL_Decomp587g

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_Decomp587g
Read-back

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

Declaration: LL_Decomp587g.buchstabIntegral (a noncomputable definition, returning a real number). It imports domain from another file, Definitions.Def_LL_Decomp587g_domain, which is not defined in this text. Its meaning is not visible here, so the description below treats the region domain lo hi as a set of points in Rn+2\mathbb{R}^{n+2}Rn+2 determined by the bounds lo and hi, and does not guess its exact shape.

Inputs: a function ω:R→R\omega : \mathbb{R} \to \mathbb{R}ω:R→R; a natural number nnn; two bound vectors lo,hi:Fin(n+2)→R\mathrm{lo}, \mathrm{hi} : \mathrm{Fin}(n+2) \to \mathbb{R}lo,hi:Fin(n+2)→R, meaning each is a list of n+2n+2n+2 real numbers indexed 0,1,…,n+10, 1, \dots, n+10,1,…,n+1; and a real number φ\varphiφ. Writing points as x=(x0,…,xn+1)x = (x_0, \dots, x_{n+1})x=(x0​,…,xn+1​), the value is the integral

∫x∈Dω ⁣(φ−∑j=0n+1xjxn)(∏j=0n+1xj)⋅xn  dx,\int_{x \in D} \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,∫x∈D​(∏j=0n+1​xj​)⋅xn​ω(xn​φ−∑j=0n+1​xj​​)​dx,

where D=domain(lo,hi)D = \mathrm{domain}(\mathrm{lo}, \mathrm{hi})D=domain(lo,hi) is the imported region and the integral is with respect to the ordinary Lebesgue measure on Rn+2\mathbb{R}^{n+2}Rn+2. Note the index ⟨n,⋅⟩\langle n, \cdot \rangle⟨n,⋅⟩ used for the denominator and the argument of ω\omegaω is the index nnn, which is the (n+1)(n+1)(n+1)-th of the n+2n+2n+2 coordinates, not the last coordinate xn+1x_{n+1}xn+1​. The sum and product run over all n+2n+2n+2 coordinates.

Edge cases that matter for reading the statement: in Lean, an integral of a function that is not integrable over DDD is assigned the value 000, so a result of 000 can arise from non-integrability and not from a genuine computation. Likewise, division by zero is assigned the value 000, so points where xn=0x_n = 0xn​=0 or ∏jxj=0\prod_j x_j = 0∏j​xj​=0 contribute 000 to the integrand in the formal statement. Whether these junk values arise on DDD depends on the imported domain\mathrm{domain}domain, which this file does not show. The definition is a function of ω\omegaω, nnn, the bounds and φ\varphiφ, and is not a predicate. The classical-logic opening and the noncomputable section are implementation details with no effect on the meaning.

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