Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§3, p. 212 — a closed, linearly ordered, bounded-below subset of Rn\mathbb{R}^nRn has a minimal element

Proved
VeinottBaseStock.closed_chain_has_least

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

base-stockinventoryorder-theoryp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1

Order Rn\mathbb{R}^nRn componentwise. A set A⊆RnA \subseteq \mathbb{R}^nA⊆Rn is linearly ordered by ≤\le≤ if any two of its elements y,y′y, y'y,y′ satisfy y≤y′y \le y'y≤y′ or y′≤yy' \le yy′≤y, and y∗∈Ay^* \in Ay∗∈A is a minimal element of AAA if y∗≤yy^* \le yy∗≤y for every y∈Ay \in Ay∈A.

Let A⊆RnA \subseteq \mathbb{R}^nA⊆Rn be nonempty, closed, linearly ordered by ≤\le≤ and bounded below. Then

∃ y∗∈A  such that  y∗≤y  for all y∈A.\exists\, y^* \in A \ \text{ such that } \ y^* \le y \ \text{ for all } y \in A.∃y∗∈A  such that  y∗≤y  for all y∈A.

This is the order-theoretic fact behind the definition of wi(x)w_i(x)wi​(x), the minimal feasible inventory level used by the base stock policy.

Formalization Note. The paper's "minimal element" is a least element (IsLeast), not Mathlib's Minimal. The paper omits nonemptiness; the statement is false for the empty set, so A.Nonempty is added.

Preamble
import Mathlib
Formal statement
namespace VeinottBaseStock

/-- §3, p. 212: every nonempty closed subset of `ℝⁿ` that is linearly ordered by the
componentwise order and bounded below has a least ("minimal") element. -/
theorem closed_chain_has_least {n : ℕ} (A : Set (Fin n → ℝ)) (hA : IsClosed A)
    (hchain : IsChain (· ≤ ·) A) (hne : A.Nonempty) (hbdd : BddBelow A) :
    ∃ a, IsLeast A a := by sorry

end VeinottBaseStock
Source
Veinott, Optimal Policy for a Multi-Product, Dynamic, Nonstationary Inventory Problem, Management Science 12(3):206–222 (1965), p. 212, §3 (sentence before the definition of w_i(x))
Read-back

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

Let n∈Nn\in\mathbb{N}n∈N and A⊆RnA\subseteq\mathbb{R}^nA⊆Rn, ordered componentwise. Assume:

  • AAA is closed;
  • any two elements of AAA are comparable (a≤ba\le ba≤b or b≤ab\le ab≤a);
  • AAA is nonempty;
  • AAA is bounded below, i.e. there is a vector ℓ\ellℓ with ℓ≤a\ell\le aℓ≤a for all a∈Aa\in Aa∈A.

Then AAA has a least element: there is a∗∈Aa^*\in Aa∗∈A with a∗≤aa^*\le aa∗≤a for every a∈Aa\in Aa∈A.

Degenerate case: for n=0n=0n=0, R0\mathbb{R}^0R0 is a single point, so AAA is that point and it is its own least element. Without nonemptiness the conclusion would fail, but nonemptiness is assumed.

Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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