Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The two-phase simplex technique terminates with a correct outcome

Proved
DantzigSimplex.Technique.simplex_technique_terminates

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

infeasibilitylinear-programmingoptimalityp2o-batch-pfp2bp2o-gran-per-chapterp2o-plan-paperp2o-v1simplex-methodtermination

For the equality-form maximization problem (5)–(6), assume 1≤m≤n1\le m\le n1≤m≤n, Dantzig's independence of every mmm among P0,P1,…,PnP_0,P_1,\ldots,P_nP0​,P1​,…,Pn​, an initial strictly positive Phase I representation of a fixed reference point GGG, and general position of GGG. Run any sequence of the paper's admissible Phase I pivots, hand-off (39), and Phase II pivots. There is no infinite sequence of these transitions. Every state with no outgoing transition has one of the following outcomes:

  1. It is in Phase I with y0j≤0y_{0j}\le0y0j​≤0 for all jjj, and the original problem is infeasible.
  2. It is in Phase II with an improving column jjj such that cj>zjc_j>z_jcj​>zj​ and xij≤0x_{ij}\le0xij​≤0 for all basic iii; feasible objective values are unbounded above: for every M∈RM\in\mathbb RM∈R, some feasible λ\lambdaλ has z(λ)>Mz(\lambda)>Mz(λ)>M.
  3. It is in Phase II with cj≤zjc_j\le z_jcj​≤zj​ for all jjj, and its current weights attain the maximum objective over all feasible weights.

This states the full two-phase outcome independent of the choice of an admissible entering column or minimizing leaving index. Formalization Note The general-position assumption is added because the printed Phase I argument requires strict positive basic weights after each pivot. Termination means absence of an infinite admissible run; infeasibility, unboundedness, and optimality concern the original linear program, not just a tableau.

Preamble
import Mathlib
import Definitions.Def_DantzigSimplex_Technique_Process
Formal statement
namespace DantzigSimplex.Technique

/-- Sections 1--2: the complete Phase I/II procedure, (44)--(45) then (17)--(18). -/
theorem simplex_technique_terminates {m n : ℕ} (p : Problem m n)
    (hm : 1 ≤ m) (hmn : m ≤ n) (hnd : p.Nondegenerate)
    (G : Fin m → ℝ) (hgp : GeneralPosition p G)
    (initial : PhaseIState p G) :
    (¬ ∃ f : ℕ → SimplexState p G,
      ∀ k, SimplexStep (f k) (f (k + 1))) ∧
    (∀ s : SimplexState p G, Terminal s →
      (∃ u : PhaseIState p G, s = Sum.inl u ∧
        (∀ j, u.frame.y0 j ≤ 0) ∧ (∀ w, ¬ p.Feasible w)) ∨
      (∃ u : PhaseIIState p, s = Sum.inr u ∧
        ∃ j : Fin n, p.cost j > u.frame.z j ∧
          (∀ i ∈ u.frame.B, u.frame.x i j ≤ 0) ∧ p.Unbounded) ∨
      (∃ u : PhaseIIState p, s = Sum.inr u ∧
        (∀ j, p.cost j ≤ u.frame.z j) ∧ p.MaximumFeasible u.weight)) := by sorry

end DantzigSimplex.Technique
Source
Dantzig, Maximization of a Linear Function of Variables Subject to Linear Inequalities, in Koopmans (ed.), Activity Analysis of Production and Allocation, Wiley 1951, Ch. XXI, pp. 340–347, Sections 1–2, conditions (17)–(18), (44)–(45)
Human review
  • Endorsed by Shuze Chen · Oct 5, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 5, 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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me