Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Box intersected with the ordered simplex

Definition
LL_Decomp587g_domain

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

For n∈Nn\in\mathbb Nn∈N and vectors ℓ,h∈Rn\ell,h\in\mathbb R^nℓ,h∈Rn, indexed by {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}, the set of x∈Rnx\in\mathbb R^nx∈Rn that are monotone, meaning xi≤xjx_i\le x_jxi​≤xj​ whenever i≤ji\le ji≤j, and satisfy ℓj≤xj≤hj\ell_j\le x_j\le h_jℓj​≤xj​≤hj​ for every jjj.

Definition code
import Mathlib

open Real Set MeasureTheory
open scoped Classical

namespace LL_Decomp587g

def domain {n : ℕ} (lo hi : Fin n → ℝ) : Set (Fin n → ℝ) :=
  {x | Monotone x ∧ ∀ j, lo j ≤ x j ∧ x j ≤ hi j}

end LL_Decomp587g
Read-back

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

Read-back of LL_Decomp587g.domain (namespace LL_Decomp587g, definition).

Inputs: a natural number nnn (implicit), and two vectors lo,hi∈Rn\mathrm{lo},\mathrm{hi}\in\mathbb{R}^{n}lo,hi∈Rn indexed by {0,…,n−1}\{0,\dots,n-1\}{0,…,n−1}. Output: the subset of Rn\mathbb{R}^{n}Rn

D(lo,hi)={ x=(x0,…,xn−1)∈Rn  :  x0≤x1≤⋯≤xn−1  and  loj≤xj≤hij for every j }.D(\mathrm{lo},\mathrm{hi}) = \Big\{\, x=(x_0,\dots,x_{n-1})\in\mathbb{R}^n \;:\; x_0\le x_1\le\cdots\le x_{n-1}\ \text{ and }\ \mathrm{lo}_j\le x_j\le \mathrm{hi}_j \text{ for every } j \,\Big\}.D(lo,hi)={x=(x0​,…,xn−1​)∈Rn:x0​≤x1​≤⋯≤xn−1​  and  loj​≤xj​≤hij​ for every j}.

That is, the box ∏j[loj,hij]\prod_j[\mathrm{lo}_j,\mathrm{hi}_j]∏j​[loj​,hij​] intersected with the set of non-decreasing coordinate sequences. The ordering is non-strict (≤\le≤), and the coordinates are ordered by their index.

Concerns: (1) The monotonicity constraint means DDD is a proper subset of the box, not the box itself. This matters because buchstabIntegral integrates over domain, so the integral is over the ordered part only. (2) If loi>hij\mathrm{lo}_i > \mathrm{hi}_jloi​>hij​ for some i<ji<ji<j, or loj>hij\mathrm{lo}_j > \mathrm{hi}_jloj​>hij​ for some jjj, then DDD is empty and any integral over it is 000. Nothing in this file rules that out. (3) The definition is a def, with no theorem attached.

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