Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 5.1 — Weak Duality Theorem

Proved
VanderbeiLP.StrictComp.weak_duality

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

dualitylinear-programmingp2o-batch-b23ap2o-gran-per-chapterp2o-plan-bookp2o-v1

Consider the standard-form linear program "maximize cTxc^T xcTx subject to Ax≤bAx \le bAx≤b, x≥0x \ge 0x≥0" with A∈Rm×nA \in \mathbb{R}^{m \times n}A∈Rm×n, b∈Rmb \in \mathbb{R}^mb∈Rm, c∈Rnc \in \mathbb{R}^nc∈Rn, and its dual "minimize bTyb^T ybTy subject to ATy≥cA^T y \ge cATy≥c, y≥0y \ge 0y≥0". If x=(x1,…,xn)x = (x_1, \dots, x_n)x=(x1​,…,xn​) is feasible for the primal and y=(y1,…,ym)y = (y_1, \dots, y_m)y=(y1​,…,ym​) is feasible for the dual, then

∑j=1ncjxj≤∑i=1mbiyi.\sum_{j=1}^n c_j x_j \le \sum_{i=1}^m b_i y_i.j=1∑n​cj​xj​≤i=1∑m​bi​yi​.

Every dual feasible point therefore certifies an upper bound on the primal objective, and every primal feasible point a lower bound on the dual objective.

Preamble
import Mathlib
import Definitions.Def_VanderbeiLP_StrictComp_PrimalDualPair

open Matrix
Formal statement
namespace VanderbeiLP.StrictComp

/-- **Vanderbei, Theorem 5.1 (p. 56).** Weak duality: if `x` is primal feasible and `y` is
dual feasible, then `Σⱼ cⱼxⱼ ≤ Σᵢ bᵢyᵢ`. -/
theorem weak_duality {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℝ) (b : Fin m → ℝ)
    (c : Fin n → ℝ) (x : Fin n → ℝ) (y : Fin m → ℝ)
    (hx : PrimalFeasible A b x) (hy : DualFeasible A c y) :
    c ⬝ᵥ x ≤ b ⬝ᵥ y := by sorry

end VanderbeiLP.StrictComp
Source
Vanderbei, Linear Programming: Foundations and Extensions, 4th ed., Springer 2014, p. 56, Theorem 5.1 (PDF p. 72)
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