Box intersected with the ordered simplex
DefinitionLL_Decomp587l_domainFor and vectors , indexed by , the set of that are monotone, meaning whenever , and satisfy for every .
import Mathlib
open Real Set MeasureTheory
open scoped Classical
namespace LL_Decomp587l
def domain {n : ℕ} (lo hi : Fin n → ℝ) : Set (Fin n → ℝ) :=
{x | Monotone x ∧ ∀ j, lo j ≤ x j ∧ x j ≤ hi j}
end LL_Decomp587lRead-back
What the Lean code literally says, in plain math · claude-haiku
Definition domain (namespace LL_Decomp587l, with open Real Set MeasureTheory and open scoped Classical).
For a natural number and two families of real numbers , the definition returns the subset of
So it is the set of non-decreasing tuples whose -th coordinate lies in the closed interval . The first condition is Monotone x, which for a function on the finite ordered type Fin n means whenever .
Concerns. The set is a closed, bounded subset of , so when it is nonempty it has finite Lebesgue measure. It is nonempty only when for each , and the monotone condition is compatible with the box. If the box is incompatible with monotonicity (for example ), the set is empty and any integral over it is . The definition does not exclude coordinates equal to , so a consumer that divides by coordinates needs the box to avoid separately; this file does not do that. The definition is not vacuous in general, but whether a particular choice of and gives a nonempty region, or one avoiding , is a property of the caller's data and is not checked here.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.