Lemma 10.5 — Farkas' Lemma
ProvedVanderbeiLP.StrictComp.farkas_lemmafarkaslinear-programmingp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1theorems-of-the-alternative
Let be a real matrix and . The system of linear inequalities , in the unknown (no sign constraint on ), has no solution if and only if there is a such that
Such a is a certificate of infeasibility: a nonnegative combination of the inequalities whose left-hand side vanishes and whose right-hand side is negative. Farkas' Lemma is the tool behind the Separation Theorem for polyhedra and the strict complementarity results of the same chapter.
Formalization Note Vector inequalities are componentwise. For the system is always solvable and no with exists, consistently with the statement.
Preamble
import Mathlib open Matrix
Formal statement
namespace VanderbeiLP.StrictComp
/-- **Vanderbei, Lemma 10.5 (p. 146), Farkas' Lemma.** The system `Ax ≤ b` (with `x ∈ ℝⁿ`
unrestricted in sign) has no solution iff there is `y ∈ ℝᵐ` with `Aᵀy = 0`, `y ≥ 0`,
`bᵀy < 0` (10.8). -/
theorem farkas_lemma {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) (b : Fin m → ℝ) :
(¬ ∃ x : Fin n → ℝ, A *ᵥ x ≤ b) ↔
∃ y : Fin m → ℝ, Aᵀ *ᵥ y = 0 ∧ 0 ≤ y ∧ b ⬝ᵥ y < 0 := by sorry
end VanderbeiLP.StrictComp
Source
Vanderbei, Linear Programming: Foundations and Extensions, 4th ed., Springer 2014, p. 146, Lemma 10.5, Eq. (10.8) (PDF p. 159)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.