§6.5 (Exercise 6.23) — is totally unimodular iff is unimodular
ProvedCombOpt.TotalUnimodularity.isTotallyUnimodular_iff_isUnimodular_fromCols_oneLet be an integral matrix and the identity matrix. Then
Here is totally unimodular if every square submatrix of has determinant , or , and , which always has full row rank, is unimodular if every basis (nonsingular column submatrix) has determinant .
This identity is the link between the inequality form and the equality form , through which the Hoffman–Kruskal theorem follows from the Veinott–Dantzig theorem.
Formalization Note Total unimodularity is Mathlib's Matrix.IsTotallyUnimodular (square submatrices selected by injective row and column maps; a reordering only changes the sign of the determinant). is Matrix.fromCols A 1, with columns indexed by Fin n ⊕ Fin m.
Differences from the source:
- encoding: an matrix (integral, as Exercise 6.23 states) →
Matrix (Fin m) (Fin n) ℤ; reason: both sides force integer entries (a totally unimodular matrix has entries in , a unimodular matrix is integral by definition), so integer matrices lose no instance where either side holds - encoding: all square submatrices of → Mathlib
Matrix.IsTotallyUnimodular, square submatrices selected by injective row and column maps, so also with rows and columns reordered; reason: a reordering changes only the sign of the determinant and is closed under sign; same instances - encoding: a basis of , a set of columns, and "unimodular" defined only under full row rank →
IsUnimodular: an injectivef : Fin m → ιlisting the columns in some order, with full row rank a clause of the predicate; reason: a reordering changes only the sign of the determinant, and the rank clause always holds for ; same instances
import Mathlib import Definitions.Def_CombOpt_TotalUnimodularity_IsUnimodular
namespace CombOpt.TotalUnimodularity
open Matrix
/-- **§6.5 (Exercise 6.23): `A` is totally unimodular iff `[A I]` is unimodular.**
Cook, Cunningham, Pulleyblank & Schrijver, *Combinatorial Optimization* (Wiley, 1998), §6.5,
p. 221 (PDF p. 229): "Moreover, it is easy to see that an m by n matrix A is totally unimodular
if and only if [A I] is unimodular, where I is the m by m identity matrix. (Exercise 6.23.)";
Exercise 6.23, p. 224 (PDF p. 232): "Let A be an integral m by n matrix. Show that A is totally
unimodular if and only if [A I] is unimodular, where I is the m by m identity matrix."
For an integer `m × n` matrix `A`, `A` is totally unimodular (every square submatrix has
determinant `0`, `1` or `−1`) if and only if the `m × (n + m)` matrix `[A I]` is unimodular
(`IsUnimodular`: it has full row rank, which `[A I]` always has, and every basis has determinant
`±1`).
**Formalization Note.** Total unimodularity is Mathlib's `Matrix.IsTotallyUnimodular` (square
submatrices chosen by injective row and column maps, i.e. the book's square submatrices up to a
reordering, which changes only the sign of the determinant). `[A I]` is
`Matrix.fromCols A 1`, with columns indexed by `Fin n ⊕ Fin m`. -/
theorem isTotallyUnimodular_iff_isUnimodular_fromCols_one {m n : ℕ}
(A : Matrix (Fin m) (Fin n) ℤ) :
A.IsTotallyUnimodular ↔
IsUnimodular (Matrix.fromCols A (1 : Matrix (Fin m) (Fin m) ℤ)) := by sorry
end CombOpt.TotalUnimodularity
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.