Fourier-Motzkin Elimination and Farkas' Lemma over ℚ #
Fourier-Motzkin (FM) elimination is a variable-elimination procedure for rational linear inequalities: given a system Ax ≤ b in n+1 variables, eliminate the last variable by combining pairs of constraints (one with positive last coefficient, one with negative) to produce an equisatisfiable system in n variables.
From FM equisatisfiability we derive Farkas' lemma over ℚ: a rational linear system is either feasible or admits a nonneg certificate of infeasibility. This is the core duality theorem for rational linear programming — no topology, no completeness, no ℝ detour.
The conceptual backbone is the Minkowski-Weyl theorem for rational cones (H-cone = V-cone), of which Farkas is an immediate corollary.
Main results #
fmElim— one step of FM elimination (eliminate last variable)fmElim_equisat— FM step preserves feasibilityfarkas— Farkas' lemma: feasible ∨ infeasibility certificateminkowskiWeyl_VtoH— every finitely generated rational cone is polyhedralminkowskiWeyl_HtoV— every rational polyhedral cone is finitely generated
A system of linear inequalities (a list of constraints).
Equations
Instances For
Combine a positive-last and negative-last constraint, eliminating the last variable.
Equations
Instances For
FM equisatisfiability: the original system (n+1 variables) is feasible iff the reduced system (n variables) is feasible.
Forward: project out last coordinate. Backward: find t in the interval defined by positive (upper bound) and negative (lower bound) constraints; the P×N combinations guarantee the interval is nonempty.
An infeasibility certificate: nonneg weights (indexed by constraint position) such that the weighted combination of constraints yields 0·x ≤ negative.
- ws : Fin (List.length S) → ℚ
Instances For
Farkas' lemma over ℚ: a rational linear system is either feasible or has a nonneg certificate of infeasibility.
Proof by induction on n (number of variables), using FM elimination. Base case (0 variables): each constraint is 0 ≤ rhs. Inductive step: FM-eliminate → IH → extend backward or lift certificate.