Farkas certificate for linear inequalities Created 2026-10-07 Updated 2026-10-14
Let and . For unrestricted , the system of linear inequalities has no feasible point if and only if there is a vector withThe entries are nonnegative Lagrange multipliers for the rows. Multiplying inequalities by them preserves their direction; the condition cancels every variable, leaving the contradictionThis is a Farkas' lemma alternative for non-strict inequalities; no strict-feasibility assumption is needed. See Boyd and Vandenberghe, Convex Optimization (2004), §5.8.3, pp. 261–262.
Three individually possible requirements, jointly impossible. Suppose two unrestricted real coordinates , drawn as in the diagram, must satisfyWrite every row in the same direction:Then and . The nonnegative weighted sum, with Lagrange multipliers , is visiblyEach individual requirement defines a half-space in the plane. Even every pair has a feasible point: satisfies the first two, the first and third, and the second and third. Their common intersection is empty, because the first two force , while the third demands at most .
Why cancellation is necessary for unrestricted variables. A nonzero linear functional can be made arbitrarily positive or negative by varying unrestricted , so alone would not yield a contradiction. Equality is essential here. If is also imposed, the sufficient certificate becomes , , , because then . This is the sign convention used in robust infeasibility under uniform constraint relaxation. One can instead append the rows and use the equality certificate on the enlarged system. Reversing all constraints to reverses the scalar sign to , as in the normalized integer Farkas infeasibility gap.
Checking a solver's infeasibility claim. A returned Farkas certificate for linear inequalities gives a short verification procedure: compute and , and check the three displayed conditions against the original constraints. Any positive multiple is another certificate; division by normalizes to . With rational numbers as data and certificate, the tests can be exact. With floating-point arithmetic, a small residual is a diagnostic rather than an exact cancellation: unrestricted can amplify a nonzero residual without bound. A rigorous certificate therefore needs exact cancellation or justified error bounds and additional bounds on the variables. The strict negative scalar is the margin of contradiction.
The same weighted sums give dual bounds. For the linear program maximizing over unrestricted with , any satisfying givesfor every feasible point. Minimizing over these multipliers is the dual linear program; the bound itself is weak duality. For example, maximize subject to , , . The multipliers give the upper bound , attained at . The infeasibility example above uses the same row directions, but lower bounds of on both coordinates. Its multipliers cancel the objective function as well as the variables: with would bound zero by a negative number. Thus impossibility and linear programming optimality certificates use the same arithmetic. See Boyd and Vandenberghe, Convex Optimization slides, §§5.32–5.35 for infeasibility as a dual alternative.
Why every inconsistent system has such a certificate. Introduce a slack variable vector and write . Split the unrestricted vector as with . Applying Farkas' lemma to the column matrix gives , , and . The first two conditions together are exactly . This reduction explains both the equality and the nonnegative row multipliers.
Farkas' lemma Created 2026-10-07 Updated 2026-10-14
For a real matrix and a vector , exactly one of the following systems has a solution:The linear inequalities here are componentwise. In the first system is nonnegative; in the second system is unrestricted in sign. The second system is a certificate that the first has no feasible point. This nonnegative-equations alternative is developed in Boyd and Vandenberghe, Convex Optimization slides, §5.34.
Build the target, or separate it. Write the columns of as . Then is a conic combination: its coefficients must be nonnegative, but need not sum to one. The obtainable targets form the finitely generated coneA solution explains how to build from those columns. A certificate instead defines a linear functional . The condition says that its dot product with every generating column is nonnegative, and hence with every point of . But places the target strictly on the other side of the hyperplane . Thus belongs to the dual cone of and rules out every allowed conic combination at once.
A certificate that can be checked by eye. Take the identity matrixHere is the nonnegative orthant. The equation forces , violating . The certificate givesThe linear functional simply reads the first coordinate: all allowed column combinations have a nonnegative first coordinate, while has first coordinate . For comparison, the target is obtained with .
Why this is useful and striking. A successful search can exhibit one feasible point; an unsuccessful search alone cannot explain why every candidate fails. Farkas' lemma guarantees an equally concrete witness of impossibility for this finite linear problem. Once is supplied, verification needs only matrix multiplication, sign tests and one dot product. The same idea gives a Farkas certificate for linear inequalities and underlies linear programming duality.
Brief geometric proof. The two systems cannot both hold, because they would implyFor existence of a certificate when , closedness of finitely generated cones makes a closed convex cone, so separation from a closed convex cone supplies and for every . Testing each column gives . Concretely, let be the Euclidean projection onto a convex set of onto and set . The projection inequality gives for . Testing and gives , whence . In the example, and . Alternatively, the Fenchel-Moreau theorem applied to the cone's indicator functional proves the same separation through its polar cone.
Homogeneous self-dual embedding of a linear program Created 2026-10-14 Updated 2026-10-25
For a linear program and its dual linear program, write , , , and . Introduce , , and a free multiplier satisfyingThe point , , is strictly positive in all constrained coordinates. Multiplying the first three equations by respectively and adding gives the displayed identity. Minimizing has value zero: primal-dual optimal solutions or certificates from Farkas' lemma give zero- solutions after selecting positive and scaling. At , gives an optimal primal-dual pair by division by , while gives a primal infeasibility or dual infeasibility certificate. A point with is not decisive; choosing a relative interior point of the optimal face of a linear program avoids that degeneracy because the face contains a point with .
Past exam of the computer science course of the University of Oxford 2019 Algorithms 2 c Solution 2026-10-25
First suppose the stated nonnegative vectors exist. If , multiply by and by . Since and , this gives the contradictionThus the certificate implies .
For the converse, putA common feasible point exists exactly when , . Introducing a nonnegative vector of slack variables makes this equivalent toIf this system is infeasible, the nonnegative-equations version of Farkas' lemma supplies an unrestricted vector such thatSplit according to the original two blocks of inequalities. The three conditions become , and , exactly the desired certificate. Both directions are proved. The role of is essential: it is why the combined normal need only be nonnegative rather than zero.[ref]
Convex Optimization by Stephen Boyd and Lieven Vandenberghe. §5.8.3, printed pp. 261–262, linear-inequality alternatives and Farkas' lemma
Past exam of the mathematics course of the University of Cambridge 2002 iii Paper 4 6 ii Solution 2026-10-14
A concrete model of the two-generated free Abelian lattice-ordered group is the lattice subgroup of real-valued functions on generated by the coordinate projections , . Its elements are finite joins of finite meets of integer linear forms . Thus they are continuous positively homogeneous piecewise linear functions, with pointwise addition and lattice operations. This is the piecewise integer-linear representation of a free Abelian lattice-ordered group.
For the construction, first form the term algebra on two symbols using addition, negation, zero, join and meet, then identify terms that agree in every Abelian lattice-ordered group. Evaluation under any assignment of the two generators factors through this quotient, proving its universal property. To obtain the concrete function model, use the identity-detection theorem that the real line generates the variety of Abelian lattice-ordered groups. Its proof passes a failed identity to a prime ordered quotient, chooses its finitely many active linear pieces, and uses the rational-inequality alternative underlying Farkas' lemma to find a real witness. This makes evaluation on injective as well as surjective onto the generated function group.
Its underlying group is not for any finite . The integer-linear hinge functions have infinite independent rank: are integer-linearly independent for distinct integers . On , only has a slope jump at , so each coefficient in a finite relation must vanish. The underlying group therefore has infinite rank of an abelian group despite having two lattice generators.
Past exam of the mathematics course of the University of Cambridge 2008 iii Paper 38 1 Solution 2026-10-14
The dual linear program is the minimization problemIndeed, for the optimization Lagrangian bounds the primal objective above on its feasible points. Its supremum over is finite precisely when , and then equals . The two labelled parts below establish the relevant weak duality and strong duality conclusions.
For the subsequent infeasibility argument, introduce nonnegative slack variables and the convex coneThis is generated by the columns of and the coordinate vectors. Here is why this finitely generated cone is closed. Any representation with a minimal number of positive coefficients uses linearly independent generators: otherwise subtract a suitable multiple of a dependence until one positive coefficient vanishes, preserving nonnegativity. For each fixed independent selection of generators, its nonnegative combinations form a closed set, because the inverse coordinate map on its span is continuous. There are finitely many selections, so their union is closed. This is the closedness of finitely generated cones used in Farkas' lemma.
When the primal linear program is infeasible, . Let be the nearest point of to , and set . The minimizing property gives for every . Taking gives . ConsequentlyIn particular and . Rescaling by the positive number produces the requested Farkas' lemma certificate:Now a feasible point of the relaxed inequalities would satisfySince , the sum of the nonnegative is positive. Thus robust infeasibility under uniform constraint relaxation givesThe ellipsoid method makes progress by reducing the volume of a containing ellipsoid. A nonempty linear polyhedron may have empty interior, so small volume alone cannot certify that the original system is infeasible. Relaxing the inequalities remedies this difficulty, but must not make an infeasible system appear feasible. The displayed positive gap proves exactly that sufficiently small relaxations preserve infeasibility. For rational input, determinant bounds give a Farkas' lemma certificate of polynomial encoding length, so a sufficiently small rational relaxation can be chosen from the input encoding length. Together with a bounding box and bounds on the volume of a relaxed feasible system, this lets the ellipsoid method distinguish infeasibility from a feasible system of very small or zero original volume in polynomial time. The certificate argument alone does not assert a polynomial precision bound for arbitrary unencoded real coefficients.
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 62 3 a Solution Created 2026-10-03 Updated 2026-10-14
One form of Farkas' lemma states that exactly one of the following holds:Their mutual exclusion is immediate: if both held, .
For existence of the alternative certificate, let , the finitely generated cone of the columns of . It is convex. It is also closed, a fact that must be justified rather than assumed for arbitrary linear images of closed cones. In a representation with dependent active generators, choose a nonzero dependence with at least one . Subtractfrom the nonnegative coefficient vector. The represented point is unchanged, all coefficients remain nonnegative, and at least one active coefficient disappears. Iteration produces a representation with independent active columns. For a convergent sequence in , pass to a subsequence using the same independent set, possible because there are finitely many sets. Its coefficients converge through a fixed left inverse, and their limits remain nonnegative. This proves closedness of finitely generated cones.
The indicator functional is therefore proper, lower semicontinuous and convex. Its Legendre-Fenchel transform isIndeed a positive pairing with a cone generator can be scaled arbitrarily, while all nonpositive pairings give supremum zero. The Fenchel-Moreau theorem now givesIf , the left side is infinite, so some feasible has . Taking gives and . If , the first alternative holds. The biconjugation theorem applied to a closed finitely generated cone proves the alternative.
For inequalities with unrestricted , split and add nonnegative slack:The equivalent Farkas certificate for linear inequalities is
Past exam of the mathematics course of the University of Cambridge 2013 iii Paper 62 3 b Solution Created 2026-10-03 Updated 2026-10-14
Use the standard form with unrestricted :The nonnegative multipliersatisfies and . This is a Farkas certificate for linear inequalities, so the system is infeasible by Farkas' lemma. In scalar form, adding twice the first inequality to the other two produceswhich directly exhibits the contradiction.
Evaluate the generators as coordinate projections on . The lattice-ordered group they generate consists of continuous positively homogeneous piecewise linear functions with finitely many integer-linear pieces. Equivalently its elements are finite joins of finite meets of integer linear forms. The universal property follows because the real line detects every identity of Abelian lattice-ordered groups: if an identity fails, pass to a prime ordered quotient and select the finitely many active linear pieces. The resulting rational linear inequalities have a real solution by the alternative underlying Farkas' lemma, giving a real witness to failure. This is a statement about integer coefficients and positive homogeneity, not arbitrary real coefficients or affine constant terms.
Suppose a linear program has a Farkas' lemma certificate , , . A purported feasible point of , would imply . Hence every relaxation below the displayed positive threshold remains infeasible. For rational inputs, bounds on the encoding length of a certificate supply the precision gap used by the ellipsoid method.
Stiemke theorem Created 2026-09-24 Updated 2026-10-14
For a real matrix , exactly one of the following holds: there is with and , or there is with . Separating from the standard simplex proves the result; may then be normalized to sum to one.

