Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

(5)–(6), proof of THEOREM 1, p. 263 — c(x_B, x_N) = c_B B⁻¹b + Σ c*_i x_i on Bx_B + Nx_N = b

Proved
GomoryGroup.Rel.cost_identity

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

linear-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1reduced-cost

Let BBB be a nonsingular integer m×mm\times mm×m matrix, NNN an integer m×nm\times nm×n matrix, cB∈Rmc_B\in\mathbb R^mcB​∈Rm, cN∈Rnc_N\in\mathbb R^ncN​∈Rn and b∈Zmb\in\mathbb Z^mb∈Zm. If real vectors xB∈Rmx_B\in\mathbb R^mxB​∈Rm, xN∈Rnx_N\in\mathbb R^nxN​∈Rn satisfy (5), BxB+NxN=bBx_B+Nx_N=bBxB​+NxN​=b, then

cBxB+cNxN=cBB−1b+(cN−cBB−1N)xN=cBB−1b+∑i=m+1m+nci∗xi,c_Bx_B+c_Nx_N=c_BB^{-1}b+(c_N-c_BB^{-1}N)x_N=c_BB^{-1}b+\sum_{i=m+1}^{m+n}c^*_ix_i,cB​xB​+cN​xN​=cB​B−1b+(cN​−cB​B−1N)xN​=cB​B−1b+i=m+1∑m+n​ci∗​xi​,

where cm+1+j∗=cm+1+j−cBB−1αm+1+jc^*_{m+1+j}=c_{m+1+j}-c_BB^{-1}\alpha_{m+1+j}cm+1+j∗​=cm+1+j​−cB​B−1αm+1+j​ is the relative cost of the nonbasic column jjj (the paper's αm+1+j\alpha_{m+1+j}αm+1+j​ is column jjj of NNN).

This expresses the cost of any solution of the equality system in terms of its nonbasic part only; with cBB−1b=z1(b)c_BB^{-1}b=z_1(b)cB​B−1b=z1​(b) it is the paper's (6).

Formalization Note No sign condition on xxx and no optimality of BBB is needed, so neither is assumed; the paper's z1(b)z_1(b)z1​(b) appears as cBB−1bc_BB^{-1}bcB​B−1b (the referenced simplex optimality criterion identifies the two).

Preamble
import Mathlib
import Definitions.Def_GomoryGroup_Rel_Setting
Formal statement
namespace GomoryGroup.Rel

open Matrix

theorem cost_identity {m n : ℕ} (B : Matrix (Fin m) (Fin m) ℤ) (N : Matrix (Fin m) (Fin n) ℤ)
    (cB : Fin m → ℝ) (cN : Fin n → ℝ) (b : Fin m → ℤ) (hB : B.det ≠ 0) :
    ∀ (xB : Fin m → ℝ) (xN : Fin n → ℝ),
      Br B *ᵥ xB + Nr N *ᵥ xN = (fun i => (b i : ℝ)) →
        cB ⬝ᵥ xB + cN ⬝ᵥ xN =
          cB ⬝ᵥ ((Br B)⁻¹ *ᵥ (fun i => (b i : ℝ))) + ∑ j, reducedCost B N cB cN j * xN j := by sorry

end GomoryGroup.Rel
Source
Gomory, On the relation between integer and noninteger solutions to linear programs, Proc. Natl. Acad. Sci. USA 53 (1965), p. 263, (5) and (6)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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