Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Perturbing cannot create feasibility (the Farkas direction)

Proved
SmaleNinth.khachiyan_nonempty_imp

by carlok · Sep 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

computational-complexitylinear-optimizationoperations-research

Perturbing cannot create feasibility: the Farkas direction.

Let Ax≥bAx \ge bAx≥b be an integer system in n≥1n\ge1n≥1 variables with all entries bounded by U≥1U\ge1U≥1, and let ε=1/(2(n+1)(n+1)! Un+1)\varepsilon = 1/\bigl(2(n+1)(n+1)!\,U^{n+1}\bigr)ε=1/(2(n+1)(n+1)!Un+1), M=n! Un+1M = n!\,U^{n}+1M=n!Un+1. If the relaxed and boxed system

Ax≥b−ε1,−M1≤x≤M1Ax \ge b - \varepsilon\mathbf 1,\qquad -M\mathbf 1 \le x \le M\mathbf 1Ax≥b−ε1,−M1≤x≤M1

has a solution, then so does the original Ax≥bAx \ge bAx≥b.

This is the non-obvious half of the feasibility equivalence. The other half — a feasible integer system stays feasible after relaxing and boxing — is proved in the companion reduction, and is easy once one knows the system has a small solution. This direction is where the specific value of ε\varepsilonε earns its keep: relaxing every right-hand side makes the system strictly easier, and the claim is that with this ε\varepsilonε it cannot become solvable when it was not.

The argument. Suppose Ax≥bAx\ge bAx≥b is infeasible. By Farkas' lemma — available on the platform as LinearOptimization.farkas_lemma — there is y≥0y \ge 0y≥0 with

yTA=0,yTb>0.y^{\mathsf T}A = 0, \qquad y^{\mathsf T}b > 0 .yTA=0,yTb>0.

Such a certificate can be taken to be a basic solution of the system defining it, so its nonzero entries are given by Cramer's rule on a nonsingular square subsystem with integer data bounded by UUU. Two consequences follow from the determinant bounds already on the platform, SmaleNinth.abs_det_le_factorial_mul_pow and SmaleNinth.cramer_solution_bound: after scaling the certificate so that its entries are integers, yTb≥1y^{\mathsf T}b \ge 1yTb≥1, while ∥y∥1\|y\|_1∥y∥1​ is bounded by an explicit quantity of the same shape as 1/ε1/\varepsilon1/ε.

Now suppose xxx satisfies the relaxed system. Multiplying by y≥0y\ge0y≥0 and using yTA=0y^{\mathsf T}A = 0yTA=0,

0  =  yT(Ax)  ≥  yTb−ε ∥y∥1,0 \;=\; y^{\mathsf T}(Ax) \;\ge\; y^{\mathsf T}b - \varepsilon\,\|y\|_1 ,0=yT(Ax)≥yTb−ε∥y∥1​,

so yTb≤ε∥y∥1y^{\mathsf T}b \le \varepsilon\|y\|_1yTb≤ε∥y∥1​. The constant ε\varepsilonε is chosen precisely so that ε∥y∥1<1≤yTb\varepsilon\|y\|_1 < 1 \le y^{\mathsf T}bε∥y∥1​<1≤yTb, a contradiction. Hence no such xxx exists and the relaxed system is infeasible too.

The box constraints play no role in this direction; they matter only for the converse, where they must be wide enough to contain a solution, which is what M=n! Un+1M = n!\,U^{n}+1M=n!Un+1 guarantees.

Preamble
import Definitions.Def_Polyhedron
import Definitions.Def_SmaleNinth_Khachiyan

open Matrix LinearOptimization
Formal statement
theorem SmaleNinth.khachiyan_nonempty_imp {m n : ℕ} (U : ℕ) (hU : 1 ≤ U) (hn : 1 ≤ n)
    (A : Matrix (Fin m) (Fin n) ℤ) (b : Fin m → ℤ)
    (hA : ∀ i j, |A i j| ≤ (U : ℤ)) (hb : ∀ i, |b i| ≤ (U : ℤ)) :
    (polyhedron (SmaleNinth.khachiyanSystemA A)
        (SmaleNinth.khachiyanSystemb n U b)).Nonempty →
      (polyhedron (A.map (Int.cast : ℤ → ℝ)) (fun i => (b i : ℝ))).Nonempty := by sorry
Source
L. G. Khachiyan, A polynomial algorithm in linear programming, Soviet Math. Doklady 20 (1979) 191-194; B. Korte, J. Vygen, Combinatorial Optimization, 6th ed., Springer 2018, Sections 4.4-4.5; D. Bertsimas, J. N. Tsitsiklis, Introduction to Linear Optimization, Athena Scientific 1997, Theorem 4.6 (Farkas) and Section 8.4. One direction of SmaleNinth.khachiyan_feasibility_equiv.

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me