Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The Buchstab integral over an ordered box

Definition
LL_Decomp587f_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_Decomp587f_domain

open Real Set MeasureTheory
open scoped Classical

namespace LL_Decomp587f

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

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

Read-back: LL_Decomp587f.buchstabIntegral

This is a definition, in the namespace LL_Decomp587f, of a real-valued function of four inputs: a function ω:R→R\omega : \mathbb{R} \to \mathbb{R}ω:R→R, a natural number nnn, two vectors lo and hi in Rn+2\mathbb{R}^{n+2}Rn+2 (indexed by Fin (n + 2)), and a real number φ\varphiφ. Its value is the Lebesgue integral (Mathlib's ∫ x in S, f x) over a region SSS, written domain lo hi in the body. The region is imported from Definitions.Def_LL_Decomp587f_domain, and its definition is not read here, so the integration region is not stated in this read-back.

For coordinates x=(x0,…,xn+1)x = (x_0, \dots, x_{n+1})x=(x0​,…,xn+1​) with x∈Sx \in Sx∈S, let s=∑j=0n+1xjs = \sum_{j=0}^{n+1} x_js=∑j=0n+1​xj​ and p=∏j=0n+1xjp = \prod_{j=0}^{n+1} x_jp=∏j=0n+1​xj​. Let k=nk = nk=n be the distinguished coordinate index. The integrand is

ω ⁣(φ−sxk)p⋅xk,k=n.\frac{\omega\!\left(\dfrac{\varphi - s}{x_k}\right)}{p \cdot x_k}, \qquad k = n.p⋅xk​ω(xk​φ−s​)​,k=n.

So the sum and product run over all n+2n+2n+2 coordinates, and the argument of ω\omegaω is (φ−s)/xn(\varphi - s)/x_n(φ−s)/xn​. The integral is over SSS with respect to the product Lebesgue measure. The definition is marked noncomputable, and open scoped Classical only affects instances and does not change the value.

With the arguments used in the theorems (the literal n=1n = 1n=1), the definition becomes an integral over three coordinates x0,x1,x2x_0, x_1, x_2x0​,x1​,x2​ of ω((φ−x0−x1−x2)/x1)/(x0x1x2⋅x1)\omega\big((\varphi - x_0 - x_1 - x_2)/x_1\big) / (x_0 x_1 x_2 \cdot x_1)ω((φ−x0​−x1​−x2​)/x1​)/(x0​x1​x2​⋅x1​), over the region SSS.

Concerns: (1) This is a Lean Bochner integral, and Lean returns 000 when the integrand is not integrable over SSS. So a theorem bounding this value can be satisfied by a junk value 000 if integrability fails, and integrability is not established here. (2) Lean's division by zero returns 000, so the expression is defined as 000 where xn=0x_n = 0xn​=0 or p=0p = 0p=0, which is a convention and not a mathematical value. (3) Whether the argument (φ−s)/xn(\varphi - s)/x_n(φ−s)/xn​ lies in the range where ω\omegaω is nontrivial depends on the region SSS and on the hypotheses, which are not visible in this file. (4) The whole meaning of the integral depends on the imported domain, which was not read.

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