Farkas' lemma

From Wikipedia, the free encyclopedia
(Redirected from Theorem of alternatives)
Jump to navigation Jump to search

In mathematics, Farkas' lemma is a solvability theorem for a finite system of linear inequalities. It was originally proven by the Hungarian mathematician Gyula Farkas.[1] Farkas' lemma is the key result underpinning the linear programming duality and has played a central role in the development of mathematical optimization (alternatively, mathematical programming).[citation needed] Remarkably, in the area of the foundations of quantum theory, the lemma also underlies the complete set of Bell inequalities in the form of necessary and sufficient conditions for the existence of a local hidden-variable theory, given data from any specific set of measurements.[2]

Generalizations of the Farkas' lemma are about the solvability theorem for convex inequalities,[3] i.e., infinite system of linear inequalities. Farkas' lemma belongs to a class of statements called "theorems of the alternative": a theorem stating that exactly one of two systems has a solution.[4]

Statement of the lemma

[edit | edit source]

There are a number of slightly different (but equivalent) formulations of the lemma in the literature. The one given here is due to Gale, Kuhn and Tucker (1951).[5]

Farkas' lemmaโ€” Let ๐€โˆˆโ„mร—n and ๐›โˆˆโ„m. Then exactly one of the following two assertions is true:

  1. There exists an ๐ฑโˆˆโ„n such that ๐€๐ฑ=๐› and ๐ฑโ‰ฅ0.
  2. There exists a ๐ฒโˆˆโ„m such that ๐€โŠค๐ฒโ‰ฅ0 and ๐›โŠค๐ฒ<0.

Here, the notation ๐ฑโ‰ฅ0 means that all components of the vector ๐ฑ are nonnegative.

Example

[edit | edit source]

Let m, n = 2, ๐€=[6430], and ๐›=[b1b2]. The lemma says that exactly one of the following two statements must be true (depending on b1 and b2):

  1. There exist x1 โ‰ฅ 0, x2 โ‰ฅ 0 such that 6x1 + 4x2 = b1 and 3x1 = b2, or
  2. There exist y1, y2 such that 6y1 + 3y2 โ‰ฅ 0, 4y1 โ‰ฅ 0, and b1 y1 + b2 y2 < 0.

Here is a proof of the lemma in this special case:

  • If b2 โ‰ฅ 0 and b1 โˆ’ 2b2 โ‰ฅ 0, then option 1 is true, since the solution of the linear equations is x1=b23 and x2=b1โˆ’2b24. Option 2 is false, since b1y1+b2y2โ‰ฅb2(2y1+y2)=b26y1+3y23, so if the right-hand side is positive, the left-hand side must be positive too.
  • Otherwise, option 1 is false, since the unique solution of the linear equations is not weakly positive. But in this case, option 2 is true:
    • If b2 < 0, then we can take e.g. y1 = 0 and y2 = 1.
    • If b1 โˆ’ 2b2 < 0, then, for some number B > 0, b1 = 2b2 โˆ’ B, so: b1y1+b2y2=2b2y1+b2y2โˆ’By1=b26y1+3y23โˆ’By1. Thus we can take, for example, y1 = 1, y2 = โˆ’2.

Geometric interpretation

[edit | edit source]

Consider the closed convex cone C(๐€) spanned by the columns of A; that is,

C(๐€)={๐€๐ฑโˆฃ๐ฑโ‰ฅ0}.

Observe that C(๐€) is the set of the vectors b for which the first assertion in the statement of Farkas' lemma holds. On the other hand, the vector y in the second assertion is orthogonal to a hyperplane that separates b and C(๐€). The lemma follows from the observation that b belongs to C(๐€) if and only if there is no hyperplane that separates it from C(๐€).

More precisely, let ๐š1,,๐šnโˆˆโ„m denote the columns of A. In terms of these vectors, Farkas' lemma states that exactly one of the following two statements is true:

  1. There exist non-negative coefficients x1,,xnโˆˆโ„ such that ๐›=x1๐š1++xn๐šn.
  2. There exists a vector ๐ฒโˆˆโ„m such that ๐šiโŠค๐ฒโ‰ฅ0 for i=1,,n, and ๐›โŠค๐ฒ<0.

The sums x1๐š1++xn๐šn with nonnegative coefficients x1,,xn form the cone spanned by the columns of A. Therefore, the first statement tells that b belongs to C(๐€).

The second statement tells that there exists a vector y such that the angle of y with the vectors ai is at most 90ยฐ, while the angle of y with the vector b is more than 90ยฐ. The hyperplane normal to this vector has the vectors ai on one side and the vector b on the other side. Hence, this hyperplane separates the cone spanned by ๐š1,,๐šn from the vector b.

For example, let n, m = 2, a1 = (1, 0)T, and a2 = (1, 1)T. The convex cone spanned by a1 and a2 can be seen as a wedge-shaped slice of the first quadrant in the xy plane. Now, suppose b = (0, 1). Certainly, b is not in the convex cone a1x1 + a2x2. Hence, there must be a separating hyperplane. Let y = (1, โˆ’1)T. We can see that a1 ยท y = 1, a2 ยท y = 0, and b ยท y = โˆ’1. Hence, the hyperplane with normal y indeed separates the convex cone a1x1 + a2x2 from b.

Logic interpretation

[edit | edit source]

A particularly suggestive and easy-to-remember version is the following: if a set of linear inequalities has no solution, then a contradiction can be produced from it by linear combination with nonnegative coefficients. In formulas: if ๐€๐ฑโ‰ค๐› is unsolvable then ๐ฒโŠค๐€=0, ๐ฒโŠค๐›=โˆ’1, ๐ฒโ‰ฅ0 has a solution.[6] Note that ๐ฒโŠค๐€ is a combination of the left-hand sides, ๐ฒโŠค๐› a combination of the right-hand side of the inequalities. Since the positive combination produces a zero vector on the left and a โˆ’1 on the right, the contradiction is apparent.

Thus, Farkas' lemma can be viewed as a theorem of logical completeness: ๐€๐ฑโ‰ค๐› is a set of "axioms", the linear combinations are the "derivation rules", and the lemma says that, if the set of axioms is inconsistent, then it can be refuted using the derivation rules.[7]: 92โ€“94 

Implications in complexity theory

[edit | edit source]

Farkas' lemma implies that the decision problem "Given a system of linear equations, does it have a non-negative solution?" is in the intersection of NP and co-NP. This is because, according to the lemma, both a "yes" answer and a "no" answer have a proof that can be verified in polynomial time. The problems in the intersection NPโˆฉcoNP are also called well-characterized problems. It is a long-standing open question whether NPโˆฉcoNP is equal to P. In particular, the question of whether a system of linear equations has a non-negative solution was not known to be in P, until it was proved using the ellipsoid method.[8]: 25 

Variants

[edit | edit source]

The Farkas Lemma has several variants with different sign constraints (the first one is the original version):[7]: 92 

  • Either ๐€๐ฑ=๐› has a solution ๐ฑโ‰ฅ0, or ๐€โŠค๐ฒโ‰ฅ0 has a solution ๐ฒโˆˆโ„m with ๐›โŠค๐ฒ<0.
  • Either ๐€๐ฑโ‰ค๐› has a solution ๐ฑโ‰ฅ0, or ๐€โŠค๐ฒโ‰ฅ0 has a solution ๐ฒโ‰ฅ0 with ๐›โŠค๐ฒ<0
  • Either ๐€๐ฑโ‰ค๐› has a solution ๐ฑโˆˆโ„n, or ๐€โŠค๐ฒ=0 has a solution ๐ฒโ‰ฅ0 with ๐›โŠค๐ฒ<0.
  • Either ๐€๐ฑ=๐› has a solution ๐ฑโˆˆโ„n, or ๐€โŠค๐ฒ=0 has a solution ๐ฒโˆˆโ„m with ๐›โŠค๐ฒโ‰ 0.

The latter variant is mentioned for completeness; it is not actually a "Farkas lemma" since it contains only equalities. Its proof is an exercise in linear algebra.

There are also Farkas-like lemmas for integer programs.[8]: 12--14  For systems of equations, the lemma is simple:

  • Assume that A and b have rational coefficients. Then either ๐€๐ฑ=๐› has an integral solution ๐ฑโˆˆโ„คn, or there exists ๐ฒโˆˆโ„nsuch that ๐€โŠค๐ฒ is integral and ๐›โŠค๐ฒ is not integral.

For system of inequalities, the lemma is much more complicated. It is based on the following two rules of inference:

  1. Given inequalities a1Txโ‰คb1,โ€ฆ,amTxโ‰คbm and coefficients w1,โ€ฆ,wm, infer the inequality (โˆ‘i=1mwiaiT)xโ‰คโˆ‘i=1mwibi.
  2. Given an inequality a1x1+โ‹ฏ+amxmโ‰คb, infer the inequality โŒŠa1โŒ‹x1+โ‹ฏ+โŒŠamโŒ‹xmโ‰คโŒŠbโŒ‹.

The lemma says that:

  • Assume that A and b have rational coefficients. Then either ๐€๐ฑโ‰ค๐› has an integral solution ๐ฑโˆˆโ„คn,xโ‰ฅ0, or it is possible to infer from ๐€๐ฑโ‰ค๐› using finitely many applications of inference rules 1,2 the inequality 0Txโ‰คโˆ’1.

The variants are summarized in the table below.

System Constraints on x Alternative system Constraints on y
๐€๐ฑ=๐› ๐ฑโˆˆโ„n,xโ‰ฅ0 ๐€โŠค๐ฒโ‰ฅ0, ๐›โŠค๐ฒ<0 ๐ฒโˆˆโ„m
๐€๐ฑโ‰ค๐› ๐ฑโˆˆโ„n,xโ‰ฅ0 ๐€โŠค๐ฒโ‰ฅ0, ๐›โŠค๐ฒ<0 ๐ฒโˆˆโ„m, ๐ฒโ‰ฅ0
๐€๐ฑโ‰ค๐› ๐ฑโˆˆโ„n ๐€โŠค๐ฒ=0, ๐›โŠค๐ฒ<0 ๐ฒโˆˆโ„m, ๐ฒโ‰ฅ0
๐€๐ฑ=๐› ๐ฑโˆˆโ„n ๐€โŠค๐ฒ=0, ๐›โŠค๐ฒโ‰ 0 ๐ฒโˆˆโ„m
๐€๐ฑ=๐› ๐ฑโˆˆโ„คn ๐€โŠค๐ฒ integral, ๐›โŠค๐ฒ not integral ๐ฒโˆˆโ„n
๐€๐ฑโ‰ค๐› ๐ฑโˆˆโ„คn,xโ‰ฅ0 0Txโ‰คโˆ’1 can be inferred from ๐€๐ฑโ‰ค๐›

Generalizations

[edit | edit source]

Generalized Farkas' lemmaโ€” Let ๐€โˆˆโ„mร—n, ๐›โˆˆโ„m, ๐’ is a closed convex cone in โ„n, and the dual cone of ๐’ is ๐’*={๐ณโˆˆโ„nโˆฃ๐ณโŠค๐ฑโ‰ฅ0,โˆ€๐ฑโˆˆ๐’}. If convex cone C(๐€)={๐€๐ฑโˆฃ๐ฑโˆˆ๐’} is closed, then exactly one of the following two statements is true:

  1. There exists an ๐ฑโˆˆโ„n such that ๐€๐ฑ=๐› and ๐ฑโˆˆ๐’.
  2. There exists a ๐ฒโˆˆโ„m such that ๐€โŠค๐ฒโˆˆ๐’* and ๐›โŠค๐ฒ<0.

Generalized Farkas' lemma can be interpreted geometrically as follows: either a vector is in a given closed convex cone, or there exists a hyperplane separating the vector from the cone; there are no other possibilities. The closedness condition is necessary, see Separation theorem I in Hyperplane separation theorem. For original Farkas' lemma, ๐’ is the nonnegative orthant โ„+n, hence the closedness condition holds automatically. Indeed, for polyhedral convex cone, i.e., there exists a ๐โˆˆโ„nร—k such that ๐’={๐๐ฑโˆฃ๐ฑโˆˆโ„+k}, the closedness condition holds automatically. In convex optimization, various kinds of constraint qualification, e.g. Slater's condition, are responsible for closedness of the underlying convex cone C(๐€).

By setting ๐’=โ„n and ๐’*={0} in generalized Farkas' lemma, we obtain the following corollary about the solvability for a finite system of linear equalities:

Corollaryโ€” Let ๐€โˆˆโ„mร—n and ๐›โˆˆโ„m. Then exactly one of the following two statements is true:

  1. There exists an ๐ฑโˆˆโ„n such that ๐€๐ฑ=๐›.
  2. There exists a ๐ฒโˆˆโ„m such that ๐€โŠค๐ฒ=0 and ๐›โŠค๐ฒโ‰ 0.

Further implications

[edit | edit source]

Farkas' lemma can be varied to many further theorems of alternative by simple modifications,[4] such as Gordan's theorem: Either ๐€๐ฑ<0 has a solution x, or ๐€โŠค๐ฒ=0 has a nonzero solution y with y โ‰ฅ 0.

Common applications of Farkas' lemma include proving the strong duality theorem associated with linear programming and the Karushโ€“Kuhnโ€“Tucker conditions. An extension of Farkas' lemma can be used to analyze the strong duality conditions for and construct the dual of a semidefinite program. It is sufficient to prove the existence of the Karushโ€“Kuhnโ€“Tucker conditions using the Fredholm alternative but for the condition to be necessary, one must apply von Neumann's minimax theorem to show the equations derived by Cauchy are not violated.

This is used for Dill's Reluplex method for verifying deep neural networks.

See also

[edit | edit source]

Notes

[edit | edit source]
  1. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  2. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  3. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  4. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  5. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).. See Lemma 1 on page 318.
  6. ^ Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value)..
  7. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value). Pages 81โ€“104.
  8. ^ a b Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).

Further reading

[edit | edit source]
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Lua error in Module:Citation/CS1/Configuration at line 2172: attempt to index field '?' (a nil value).
  • Kutateladze S.S. The Farkas lemma revisited. Siberian Mathematical Journal, 2010, Vol. 51, No. 1, 78โ€“87.