Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 6.6 — column-partition test for total unimodularity

Proved
PochetWolsey.Decomposition.tu_column_partition

by Shuze Chen · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

decompositioninteger-programmingp2o-gran-per-chapterp2o-plan-bookp2o-v1polyhedra

Let A∈{0,1,−1}m×nA\in\{0,1,-1\}^{m\times n}A∈{0,1,−1}m×n. Suppose that every subset JJJ of its columns can be partitioned into disjoint sets J1,J2J_1,J_2J1​,J2​ such that, for each row iii,

∣∑j∈J1aij−∑j∈J2aij∣≤1.\left|\sum_{j\in J_1}a_{ij}-\sum_{j\in J_2}a_{ij}\right|\le1.​j∈J1​∑​aij​−j∈J2​∑​aij​​≤1.

Then AAA is totally unimodular: every square submatrix has determinant in {0,1,−1}\{0,1,-1\}{0,1,−1}. This is a sufficient recognition criterion used in integral formulation arguments.

Formalization Note Matrices have real entries with the displayed entry restriction. Finite indices start at zero; an empty row or column family is allowed and satisfies the usual determinant convention.

Preamble
import Mathlib
Formal statement
namespace PochetWolsey.Decomposition

theorem tu_column_partition {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ)
    (hentries : ∀ i j, A i j = 0 ∨ A i j = 1 ∨ A i j = -1)
    (hpartition : ∀ J : Finset (Fin n), ∃ J₁ J₂ : Finset (Fin n),
      Disjoint J₁ J₂ ∧ J₁ ∪ J₂ = J ∧
      ∀ i, |(∑ j ∈ J₁, A i j) - ∑ j ∈ J₂, A i j| ≤ 1) :
    A.IsTotallyUnimodular := by sorry

end PochetWolsey.Decomposition
Source
Pochet and Wolsey, Production Planning by Mixed Integer Programming, Springer 2006, DOI 10.1007/0-387-33477-7, p. 204 (PDF 218), Proposition 6.6
Read-back

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

Let m,nm,nm,n be natural numbers and AAA a real m×nm\times nm×n matrix. The hypotheses are:

  1. Every entry AijA_{ij}Aij​ is 000, 111 or −1-1−1.
  2. For every subset J⊆{1,…,n}J\subseteq\{1,\dots,n\}J⊆{1,…,n} of columns there exist disjoint subsets J1,J2J_1, J_2J1​,J2​ with J1∪J2=JJ_1\cup J_2=JJ1​∪J2​=J such that, for every row iii,
∣∑j∈J1Aij−∑j∈J2Aij∣≤1.\Bigl|\sum_{j\in J_1}A_{ij}-\sum_{j\in J_2}A_{ij}\Bigr|\le 1.​j∈J1​∑​Aij​−j∈J2​∑​Aij​​≤1.

The conclusion is that AAA is totally unimodular. This means: for every k∈Nk\in\mathbb{N}k∈N, every injective choice of kkk rows f(1),…,f(k)f(1),\dots,f(k)f(1),…,f(k) and every injective choice of kkk columns g(1),…,g(k)g(1),\dots,g(k)g(1),…,g(k), the k×kk\times kk×k matrix with entries Af(ℓ) g(ℓ′)A_{f(\ell)\,g(\ell')}Af(ℓ)g(ℓ′)​ has determinant in {−1,0,1}\{-1,0,1\}{−1,0,1}. The rows and columns may be chosen in any order.

Degenerate cases:

  • k=0k=0k=0. The 0×00\times 00×0 submatrix has determinant 111, which lies in {−1,0,1}\{-1,0,1\}{−1,0,1}.
  • m=0m=0m=0 or n=0n=0n=0. Then k=0k=0k=0 is the only possible square submatrix size, and the row condition in hypothesis 2 is vacuous when m=0m=0m=0.
  • J=∅J=\emptysetJ=∅. Hypothesis 2 is satisfied by J1=J2=∅J_1=J_2=\emptysetJ1​=J2​=∅, which gives difference 000.
Human review
  • Endorsed by Community (Bot) · Oct 29, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 29, 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