Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Eq. (21) — integrality gap ≤ ‖c‖∞ · m(2mΔ+1)^m

Proved
IPProximity.Eisenbrand.integrality_gap

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

integer-programmingp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1proximity

Let m,n≥0m,n\ge 0m,n≥0, let A∈Zm×nA\in\mathbb Z^{m\times n}A∈Zm×n, b∈Zmb\in\mathbb Z^mb∈Zm, c∈Znc\in\mathbb Z^nc∈Zn and u∈Nnu\in\mathbb N^nu∈Nn. The integer program (10) of Eisenbrand and Weismantel is

max⁡{cTx:Ax=b, 0≤x≤u, x∈Zn},\max\{c^{T}x : Ax=b,\ 0\le x\le u,\ x\in\mathbb Z^n\},max{cTx:Ax=b, 0≤x≤u, x∈Zn},

and its linear programming (LP) relaxation is the same problem with x∈Rnx\in\mathbb R^nx∈Rn. Let Δ∈N\Delta\in\mathbb NΔ∈N with ∣aij∣≤Δ|a_{ij}|\le\Delta∣aij​∣≤Δ, let x∗x^*x∗ be an optimal vertex solution of the LP relaxation, and let z∗z^*z∗ be any optimal solution of the integer program (10). Then the (absolute) integrality gap satisfies

cT(x∗−z∗) ≤ ∥c∥∞⋅m⋅(2 m Δ+1)m,∥c∥∞=max⁡i∣ci∣.c^{T}(x^*-z^*)\ \le\ \|c\|_\infty\cdot m\cdot(2\,m\,\Delta+1)^m ,\qquad \|c\|_\infty=\max_i|c_i| .cT(x∗−z∗) ≤ ∥c∥∞​⋅m⋅(2mΔ+1)m,∥c∥∞​=imax​∣ci​∣.

Formalization Note The paper derives (21) for the z∗z^*z∗ of Theorem 3.3; since all optimal integer solutions have the same objective value, the statement is given for every optimal integer solution. ∥c∥∞\|c\|_\infty∥c∥∞​ is Mathlib's sup norm of the real vector (ci)i(c_i)_i(ci​)i​ (equal to 000 when n=0n=0n=0).

Preamble
import Mathlib
import Definitions.Def_IPProximity_Eisenbrand_lpPolytope
import Definitions.Def_IPProximity_Eisenbrand_IsLPOptimal
import Definitions.Def_IPProximity_Eisenbrand_IsIPOptimal
Formal statement
namespace IPProximity.Eisenbrand

/-- Eq. (21) (p. 5:9): the absolute integrality gap of (10) at an optimal LP vertex `x` is at
most `‖c‖∞·m·(2mΔ + 1)ᵐ`, for every optimal integer solution `z`. The norm of the real vector
`(cᵢ)ᵢ` below is Mathlib's sup norm on `Fin n → ℝ`, i.e. `‖c‖∞`. -/
theorem integrality_gap {m n : ℕ} (A : Matrix (Fin m) (Fin n) ℤ) (b : Fin m → ℤ)
    (c : Fin n → ℤ) (u : Fin n → ℕ) (Δ : ℕ) (hΔ : ∀ i j, |A i j| ≤ (Δ : ℤ))
    (x : Fin n → ℝ) (hopt : IsLPOptimal A b c u x)
    (hvert : x ∈ Set.extremePoints ℝ (lpPolytope A b u))
    (z : Fin n → ℤ) (hz : IsIPOptimal A b c u z) :
    dotProduct (fun i => (c i : ℝ)) x - dotProduct (fun i => (c i : ℝ)) (fun i => (z i : ℝ)) ≤
      ‖(fun i => (c i : ℝ))‖ * ((m : ℝ) * (2 * m * Δ + 1) ^ m) := by sorry

end IPProximity.Eisenbrand
Source
Eisenbrand & Weismantel, Proximity Results and Faster Algorithms for Integer Programming Using the Steinitz Lemma, ACM Trans. Algorithms 16(1), Article 5 (2019), p. 5:9, Sect. 3.1, Eq. (21)
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

The statement's data are:

  • natural numbers m,nm, nm,n;
  • an integer m×nm\times nm×n matrix AAA, and vectors b∈Zmb \in \mathbb{Z}^mb∈Zm, c∈Znc \in \mathbb{Z}^nc∈Zn, u∈Nnu \in \mathbb{N}^nu∈Nn;
  • a natural number Δ\DeltaΔ with ∣Aij∣≤Δ|A_{ij}| \le \Delta∣Aij​∣≤Δ for every entry;
  • a real vector x∈Rnx \in \mathbb{R}^nx∈Rn and an integer vector z∈Znz \in \mathbb{Z}^nz∈Zn.

Let P={x′∈Rn:Ax′=b, 0≤xi′≤ui ∀i}P = \{x' \in \mathbb{R}^n : Ax' = b,\ 0 \le x'_i \le u_i\ \forall i\}P={x′∈Rn:Ax′=b, 0≤xi′​≤ui​ ∀i} and F=P∩ZnF = P \cap \mathbb{Z}^nF=P∩Zn. The statement assumes three things:

  • x∈Px \in Px∈P and c⊤x′≤c⊤xc^\top x' \le c^\top xc⊤x′≤c⊤x for all x′∈Px' \in Px′∈P.
  • xxx is an extreme point of PPP.
  • z∈Fz \in Fz∈F and c⊤z′≤c⊤zc^\top z' \le c^\top zc⊤z′≤c⊤z for all z′∈Fz' \in Fz′∈F.

It asserts, in R\mathbb{R}R,

c⊤x−c⊤z  ≤  ∥c∥∞⋅m⋅(2mΔ+1)m,∥c∥∞=max⁡i∣ci∣.c^\top x - c^\top z \;\le\; \|c\|_\infty \cdot m \cdot (2m\Delta + 1)^m, \qquad \|c\|_\infty = \max_i |c_i| .c⊤x−c⊤z≤∥c∥∞​⋅m⋅(2mΔ+1)m,∥c∥∞​=imax​∣ci​∣.

Degenerate cases:

  • If PPP or FFF is empty, the hypotheses cannot be satisfied and the statement is vacuous.
  • If n=0n = 0n=0, then ∥c∥∞=0\|c\|_\infty = 0∥c∥∞​=0 and both sides are 000.
  • If c=0c = 0c=0, both sides are 000.
  • If m=0m = 0m=0, the right-hand side is ∥c∥∞⋅0⋅1=0\|c\|_\infty \cdot 0 \cdot 1 = 0∥c∥∞​⋅0⋅1=0, so the claim is c⊤x≤c⊤zc^\top x \le c^\top zc⊤x≤c⊤z.
  • If Δ=0\Delta = 0Δ=0, the right-hand side is ∥c∥∞⋅m\|c\|_\infty \cdot m∥c∥∞​⋅m.
Human review
  • Endorsed by Shuze Chen · Sep 27, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 27, 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