Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 3.4 — fundamental theorem of linear programming

Open
VanderbeiLP.Simplex.fundamental_theorem_lp

by mikedeng1 · Oct 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

basic-feasible-solutionfundamental-theoremlinear-programmingp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

For an arbitrary linear program in standard form,

maximize ∑j=1ncjxjsubject to∑j=1naijxj≤bi (i=1,…,m),x≥0,\text{maximize } \sum_{j=1}^n c_j x_j \quad\text{subject to}\quad \sum_{j=1}^n a_{ij}x_j \le b_i\ (i = 1,\dots,m),\qquad x \ge 0,maximize j=1∑n​cj​xj​subject toj=1∑n​aij​xj​≤bi​ (i=1,…,m),x≥0,

the following statements are true:

  1. If there is no optimal solution, then the problem is either infeasible or unbounded.
  2. If a feasible solution exists, then a basic feasible solution exists.
  3. If an optimal solution exists, then a basic optimal solution exists.

Here "unbounded" means that there are feasible solutions with arbitrarily large objective values, and a solution is basic when, together with its slack variables, it is the basic solution of a dictionary.

The theorem summarizes what the terminating simplex method (Phase I and Phase II) delivers, and is the reason optimization over a polyhedron can be restricted to finitely many basic solutions.

Formalization Note Unboundedness is stated as "for every MMM there is a feasible xxx with objective value >M> M>M", as on p. 7, not through an extended-real supremum.

Preamble
import Mathlib
import Definitions.Def_VanderbeiLP_Simplex_Dictionary
import Definitions.Def_VanderbeiLP_Simplex_StandardForm
Formal statement
namespace VanderbeiLP.Simplex

/-- **Vanderbei, Theorem 3.4 (p. 33), fundamental theorem of linear programming.** For the
standard-form problem `maximize cᵀx s.t. Ax ≤ b, x ≥ 0`:
1. if there is no optimal solution, the problem is infeasible or unbounded;
2. if a feasible solution exists, a basic feasible solution exists;
3. if an optimal solution exists, a basic optimal solution exists. -/
theorem fundamental_theorem_lp {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ)
    (b : Fin m → ℝ) (c : Fin n → ℝ) :
    ((¬ ∃ x, IsOptimalSol A b c x) → IsInfeasible A b ∨ IsUnbounded A b c) ∧
    ((∃ x, IsFeasibleSol A b x) → ∃ x, IsBasicFeasibleSol A b x) ∧
    ((∃ x, IsOptimalSol A b c x) → ∃ x, IsBasicOptimalSol A b c x) := by sorry

end VanderbeiLP.Simplex
Source
Vanderbei, Linear Programming: Foundations and Extensions, 4th ed., Springer 2014, p. 33 (PDF 50), Theorem 3.4
Human review
  • Endorsed by Shuze Chen · Oct 2, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 2, 2026

    Confirmed by the mission captain (proposal self-audit).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me