Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2.1 — base sets are the integer points of integral submodular/supermodular systems

Proved
SteinitzExchange.LocalSupermod.baseSet_iff_submodular_system

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

base-polytopeintegral-base-setp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1submodularsupermodular

Let VVV be a finite nonempty set and B⊆ZVB\subseteq\mathbb Z^VB⊆ZV a finite nonempty set. The following are equivalent:

  1. BBB satisfies the exchange axiom (B1);
  2. there is an integer-valued submodular f:2V→Zf:2^V\to\mathbb Zf:2V→Z with f(∅)=0f(\emptyset)=0f(∅)=0 such that B={x∈ZV∣x(X)≤f(X) ∀X⊆V, x(V)=f(V)}B=\{x\in\mathbb Z^V\mid x(X)\le f(X)\ \forall X\subseteq V,\ x(V)=f(V)\}B={x∈ZV∣x(X)≤f(X) ∀X⊆V, x(V)=f(V)};
  3. there is an integer-valued supermodular g:2V→Zg:2^V\to\mathbb Zg:2V→Z with g(∅)=0g(\emptyset)=0g(∅)=0 such that B={x∈ZV∣x(X)≥g(X) ∀X⊆V, x(V)=g(V)}B=\{x\in\mathbb Z^V\mid x(X)\ge g(X)\ \forall X\subseteq V,\ x(V)=g(V)\}B={x∈ZV∣x(X)≥g(X) ∀X⊆V, x(V)=g(V)}.

Moreover, any fff as in 2 and any ggg as in 3 are given by

f(X)=max⁡{x(X)∣x∈B},g(X)=min⁡{x(X)∣x∈B}(X⊆V).f(X)=\max\{x(X)\mid x\in B\},\qquad g(X)=\min\{x(X)\mid x\in B\}\qquad(X\subseteq V).f(X)=max{x(X)∣x∈B},g(X)=min{x(X)∣x∈B}(X⊆V).

This folklore theorem identifies finite integral base sets with the integer points of integral base polytopes; the supermodular function ggg is the function X↦ψ∘(χX)X\mapsto\psi^\circ(\chi_X)X↦ψ∘(χX​) appearing in condition (C1).

Formalization Note. The paper writes "∀X⊂V\forall X\subset V∀X⊂V"; this is read as all X⊆VX\subseteq VX⊆V (the constraint at X=VX=VX=V is implied by the equality). The paper intersects ZV\mathbb Z^VZV with a polyhedron in RV\mathbb R^VRV; for integer xxx and integer fff the real inequalities coincide with the integer ones, so the sets are described in ZV\mathbb Z^VZV directly. "Moreover" is stated in its strong reading: every fff (resp. ggg) satisfying 2 (resp. 3) equals the displayed max (resp. min) function; together with 1 ⇒ 2 this shows that the displayed functions work under (B1).

Preamble
import Mathlib
import Definitions.Def_SteinitzExchange_LocalSupermod_IntegralBaseSet
import Definitions.Def_SteinitzExchange_LocalSupermod_Matroidal
Formal statement
namespace SteinitzExchange.LocalSupermod

/-- Murota 1996, p. 277, Theorem 2.1. For a finite nonempty `B ⊆ ℤ^V`:
(a) (B1) ⇔ (b) `B = {x ∈ ℤ^V | x(X) ≤ f(X) ∀ X ⊆ V, x(V) = f(V)}` for an integer-valued
submodular `f` with `f(∅) = 0`; (a) ⇔ (c) the same with a supermodular `g` and `≥`.
Moreover any such `f` is `X ↦ max{x(X) | x ∈ B}` and any such `g` is `X ↦ min{x(X) | x ∈ B}`.
The page's "∀X ⊂ V" is read as all `X ⊆ V`. -/
theorem baseSet_iff_submodular_system {V : Type*} [Fintype V] [DecidableEq V] [Nonempty V]
    (B : Finset (V → ℤ)) (hne : B.Nonempty) :
    (IsIntegralBaseSet B ↔
      ∃ f : Finset V → ℤ, IsSubmodular f ∧ f ∅ = 0 ∧
        ∀ x : V → ℤ, x ∈ B ↔
          (∀ X : Finset V, sumOn x X ≤ f X) ∧ sumOn x Finset.univ = f Finset.univ) ∧
    (IsIntegralBaseSet B ↔
      ∃ g : Finset V → ℤ, IsSupermodular g ∧ g ∅ = 0 ∧
        ∀ x : V → ℤ, x ∈ B ↔
          (∀ X : Finset V, g X ≤ sumOn x X) ∧ sumOn x Finset.univ = g Finset.univ) ∧
    (∀ f : Finset V → ℤ, IsSubmodular f → f ∅ = 0 →
      (∀ x : V → ℤ, x ∈ B ↔
          (∀ X : Finset V, sumOn x X ≤ f X) ∧ sumOn x Finset.univ = f Finset.univ) →
      ∀ X : Finset V, f X = B.sup' hne (fun x => sumOn x X)) ∧
    (∀ g : Finset V → ℤ, IsSupermodular g → g ∅ = 0 →
      (∀ x : V → ℤ, x ∈ B ↔
          (∀ X : Finset V, g X ≤ sumOn x X) ∧ sumOn x Finset.univ = g Finset.univ) →
      ∀ X : Finset V, g X = B.inf' hne (fun x => sumOn x X)) := by sorry

end SteinitzExchange.LocalSupermod
Source
Murota, Convexity and Steinitz's Exchange Property, Adv. Math. 124 (1996), p. 277, Theorem 2.1
Read-back

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

Setting.

  • VVV is a finite, nonempty type with decidable equality.
  • B⊆ZVB \subseteq \mathbb{Z}^VB⊆ZV is a finite set, and the hypothesis says B≠∅B \neq \emptysetB=∅.
  • For x∈ZVx \in \mathbb{Z}^Vx∈ZV and X⊆VX \subseteq VX⊆V, x(X)=∑v∈Xx(v)x(X) = \sum_{v \in X} x(v)x(X)=∑v∈X​x(v).
  • "Integral base set" means: B≠∅B \neq \emptysetB=∅, and for all x,y∈Bx, y \in Bx,y∈B and every uuu with (x−y)(u)>0(x-y)(u) > 0(x−y)(u)>0, there is vvv with (x−y)(v)<0(x-y)(v) < 0(x−y)(v)<0 and x−χu+χv∈Bx - \chi_u + \chi_v \in Bx−χu​+χv​∈B. Here χu\chi_uχu​ is the integer unit vector at uuu.
  • A set function f:2V→Zf : 2^V \to \mathbb{Z}f:2V→Z is submodular if f(X∪Y)+f(X∩Y)≤f(X)+f(Y)f(X \cup Y) + f(X \cap Y) \le f(X) + f(Y)f(X∪Y)+f(X∩Y)≤f(X)+f(Y) for all X,Y⊆VX, Y \subseteq VX,Y⊆V. A set function ggg is supermodular if g(X)+g(Y)≤g(X∪Y)+g(X∩Y)g(X) + g(Y) \le g(X \cup Y) + g(X \cap Y)g(X)+g(Y)≤g(X∪Y)+g(X∩Y) for all X,YX, YX,Y.

The theorem asserts four statements at once.

  1. BBB is an integral base set if and only if there is a submodular f:2V→Zf : 2^V \to \mathbb{Z}f:2V→Z with f(∅)=0f(\emptyset) = 0f(∅)=0 such that, for every x∈ZVx \in \mathbb{Z}^Vx∈ZV,
x∈B  ⟺  (x(X)≤f(X) for all X⊆V) and x(V)=f(V).x \in B \iff \big(x(X) \le f(X) \text{ for all } X \subseteq V\big) \text{ and } x(V) = f(V).x∈B⟺(x(X)≤f(X) for all X⊆V) and x(V)=f(V).
  1. BBB is an integral base set if and only if there is a supermodular g:2V→Zg : 2^V \to \mathbb{Z}g:2V→Z with g(∅)=0g(\emptyset) = 0g(∅)=0 such that, for every x∈ZVx \in \mathbb{Z}^Vx∈ZV,
x∈B  ⟺  (g(X)≤x(X) for all X⊆V) and x(V)=g(V).x \in B \iff \big(g(X) \le x(X) \text{ for all } X \subseteq V\big) \text{ and } x(V) = g(V).x∈B⟺(g(X)≤x(X) for all X⊆V) and x(V)=g(V).
  1. For every submodular integer-valued fff with f(∅)=0f(\emptyset) = 0f(∅)=0 that describes BBB exactly as in statement 1,
f(X)=max⁡x∈Bx(X)for all X⊆V.f(X) = \max_{x \in B} x(X) \quad \text{for all } X \subseteq V.f(X)=x∈Bmax​x(X)for all X⊆V.
  1. For every supermodular integer-valued ggg with g(∅)=0g(\emptyset) = 0g(∅)=0 that describes BBB exactly as in statement 2,
g(X)=min⁡x∈Bx(X)for all X⊆V.g(X) = \min_{x \in B} x(X) \quad \text{for all } X \subseteq V.g(X)=x∈Bmin​x(X)for all X⊆V.

Statements 3 and 4 do not assume that BBB is an integral base set. They assume only that BBB is nonempty and that fff (respectively ggg) has the stated properties. The descriptions in 1 and 2 require that BBB be exactly the set of integer points satisfying the constraints.

Degenerate cases.

  • Empty VVV and empty BBB are excluded by the hypotheses. The maxima and minima are therefore taken over a nonempty finite set and are genuine.
  • If BBB has one element, the exchange condition holds vacuously, so BBB is an integral base set. Statements 1 and 2 then assert that there is a submodular fff and a supermodular ggg (each vanishing on ∅\emptyset∅) whose integer solution set is exactly that single point.
  • For X=∅X = \emptysetX=∅, the constraint reads 0≤00 \le 00≤0, and statements 3 and 4 give 0=00 = 00=0.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

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