Proposition 6.23 — is integral for all integral iff
ProvedCombOpt.TotalUnimodularity.inv_mulVec_integral_iff_detintegral-polyhedralinear-optimizationp2o-gran-per-chapterp2o-plan-bookp2o-v1polyhedral-combinatoricstotal-unimodularity
Let be an integral, nonsingular matrix. Then
This is the square case of unimodularity: a basis with determinant is exactly one whose basic solutions are integral for all integral right-hand sides. It is the key step in both directions of the Veinott–Dantzig theorem.
Formalization Note has integer entries; nonsingularity and refer to its real cast. An integral is the cast of , and " is integral" means it is the cast of some .
Differences from the source:
- encoding: integral matrix , integral vectors →
Matrix (Fin m) (Fin m) ℤ, its real cast, and real casts ofFin m → ℤ; reason: Lean convention for integral data; same instances
Preamble
import Mathlib
Formal statement
namespace CombOpt.TotalUnimodularity
open Matrix
/-- **Proposition 6.23 (square unimodular matrices).**
Cook, Cunningham, Pulleyblank & Schrijver, *Combinatorial Optimization* (Wiley, 1998),
Proposition 6.23, p. 220 (PDF p. 228): "Let A be an integral, nonsingular, m by m matrix. Then
A⁻¹b is integral for every integral vector b ∈ Rᵐ if and only if det(A) = 1 or −1."
For an integer `m × m` matrix `A` that is nonsingular (its real cast has nonzero determinant),
the real vector `A⁻¹ b` has integer coordinates for every `b ∈ ℤᵐ` if and only if
`det A = 1` or `det A = −1`.
**Formalization Note.** `A` has entries in `ℤ`; the inverse is taken of its real cast
`A.map (Int.cast)`, and an integral vector `b ∈ ℝᵐ` is the real cast of some `b : Fin m → ℤ`.
"`A⁻¹ b` is integral" means it is the real cast of some `z : Fin m → ℤ`. -/
theorem inv_mulVec_integral_iff_det {m : ℕ} (A : Matrix (Fin m) (Fin m) ℤ)
(hA : (A.map (Int.cast : ℤ → ℝ)).det ≠ 0) :
(∀ b : Fin m → ℤ, ∃ z : Fin m → ℤ,
(A.map (Int.cast : ℤ → ℝ))⁻¹ *ᵥ (fun i => (b i : ℝ)) = fun i => (z i : ℝ)) ↔
(A.det = 1 ∨ A.det = -1) := by sorry
end CombOpt.TotalUnimodularity
Source
Cook, Cunningham, Pulleyblank & Schrijver, Combinatorial Optimization (Wiley, 1998), Proposition 6.23, p. 220 (PDF p. 228)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.