Lemma 7.2, p. 16 — Gaussian elimination on a Z₊-matrix: T′ = YT, Y ≥ 0, T′ upper triangular with 0/1 diagonal
ProvedLinExchangeSP.ZPlus.lemma_7_2Let be a -matrix and let be the output of the Gaussian elimination of the proof of Lemma 7.2 (step : if the pivot is nonzero, divide row by it and add times row to every row ; records the row operations). Then:
- ;
- every entry of is nonnegative;
- is upper triangular: for ;
- every diagonal entry of is or ;
- every off-diagonal entry of is nonpositive;
- if for some and , then :
Gaussian elimination on a -matrix thus only adds nonnegative multiples of rows to other rows. This is what lets the proof of Theorem 6.4 derive valid two-variable constraints for from and .
Formalization Note The statement is about the specific elimination procedure of the paper's proof (p. 17), defined in the construction module, not about the existence of some : the existential form would be nearly trivial ( meets every clause but the last). The paper writes , ; for rational the elimination stays rational and is computed in . Indices are 0-based.
import Mathlib import Definitions.Def_LinExchangeSP_ZPlus_Setting import Definitions.Def_LinExchangeSP_ZPlus_Construction
namespace LinExchangeSP.ZPlus
/-- Lemma 7.2 (p. 16), about the output `(Y, T') = gaussElim T` of the elimination of its proof
(p. 17): `T' = YT`, `Y ≥ 0` entrywise, `T'` is upper triangular with diagonal entries `0` or `1`
and nonpositive off-diagonal entries, and `T'_kk = 1` whenever `T_ik < 0` for some `i > k`.
Indices are 0-based. -/
theorem lemma_7_2 {l t : ℕ} (T : Matrix (Fin l) (Fin t) ℚ) (hT : IsZPlus T) :
(gaussElim T).2 = (gaussElim T).1 * T ∧
(∀ i j, 0 ≤ (gaussElim T).1 i j) ∧
(∀ (i : Fin l) (j : Fin t), (j : ℕ) < (i : ℕ) → (gaussElim T).2 i j = 0) ∧
(∀ (i : Fin l) (j : Fin t), (i : ℕ) = (j : ℕ) →
(gaussElim T).2 i j = 0 ∨ (gaussElim T).2 i j = 1) ∧
(∀ (i : Fin l) (j : Fin t), (i : ℕ) ≠ (j : ℕ) → (gaussElim T).2 i j ≤ 0) ∧
(∀ (k : Fin t) (i : Fin l), (k : ℕ) < (i : ℕ) → T i k < 0 →
∀ hk : (k : ℕ) < l, (gaussElim T).2 ⟨k, hk⟩ k = 1) := by sorry
end LinExchangeSP.ZPlus
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.