Proof of Lemma 3, §C.3, p. 40 — the matrix with rows e_{i,t}, −e_{i,t}, e′_t, −e′_t is totally unimodular
ProvedMonoApport.Flow.lemma_3_tuFix states and seats, and index coordinates by pairs (the variable ). For and let be the 0/1 vector with exactly when and (the prefix sum of state up to seat ), and the 0/1 vector with exactly when (the column of seat ). Let be the integer matrix whose rows are
Claim (proof of Lemma 3). is totally unimodular: every square submatrix has determinant , or .
These are the constraint rows of the linear program (1)-(4) in the form ; total unimodularity is the step from which the paper derives the integrality of (1)-(4) (Lemma 3).
Formalization Note. Rows are indexed by the disjoint sum and columns by , instead of and with the paper's ordering; total unimodularity is invariant under such relabellings. Mathlib's Matrix.IsTotallyUnimodular is used.
Differences from the source:
- generalization: an instance (p, H) ∈ ℕⁿ × ℕ, so n ≥ 1 and H ≥ 1 seats → every n, L : ℕ, including 0; reason: the matrix does not depend on p, and for n = 0 or L = 0 it has no columns or no rows; the statement specializes to the source's at n ≥ 1, L = H ≥ 1
- encoding: rows indexed by k ∈ [2(n + 1)H] in the order e_{i,t}, −e_{i,t}, e′_t, −e′_t, columns by j ∈ [nH] listing x(1,1), …, x(n,H) → rows indexed by a sum type (Fin n × Fin L) ⊕ (Fin n × Fin L) ⊕ Fin L ⊕ Fin L, columns by Fin n × Fin L, with 0-indexed seats; reason: a relabelling of rows and columns; total unimodularity is invariant under it
import Mathlib import Definitions.Def_MonoApport_Flow_Setting
namespace MonoApport.Flow
/-- Proof of Lemma 3 (§C.3, p. 40): the matrix with rows `e_{i,t}`, `−e_{i,t}`, `e′_t`, `−e′_t`
is totally unimodular. -/
theorem lemma_3_tu (n L : ℕ) : (constraintMatrix n L).IsTotallyUnimodular := by sorry
end MonoApport.Flow
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.