Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 3, p. 3 — QP feasibility has small certificates, and a QP with a global optimum has an optimal solution of small bit-size (Vavasis)

Proved
MIQPInNP.SmallSol.theorem_3

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

computational-complexitymixed-integer-programmingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-strengthenedp2o-v1polyhedraquadratic-programming

This is Vavasis's theorem that quadratic programming is in NP, as used by Del Pia, Dey and Molinaro.

For H∈Qn×nH\in\mathbb Q^{n\times n}H∈Qn×n, c∈Qnc\in\mathbb Q^nc∈Qn, d∈Qd\in\mathbb Qd∈Q, A∈Qm×nA\in\mathbb Q^{m\times n}A∈Qm×n and b∈Qmb\in\mathbb Q^mb∈Qm, write φ=size⁡{H,c,d,A,b}\varphi = \operatorname{size}\{H,c,d,A,b\}φ=size{H,c,d,A,b} for the total bit-size of the data. There is a single polynomial ggg with natural coefficients, fixed before nnn, mmm and the data, such that:

  1. Feasibility (continuous relaxation of (2)). If the real set {x∈Rn:x⊤Hx+c⊤x+d≤0, Ax≤b}\{x\in\mathbb R^n : x^\top Hx + c^\top x + d\le 0,\ Ax\le b\}{x∈Rn:x⊤Hx+c⊤x+d≤0, Ax≤b} is non-empty, it contains a rational point x^\hat xx^ with size⁡(x^)≤g(φ)\operatorname{size}(\hat x)\le g(\varphi)size(x^)≤g(φ).
  2. Optimization (continuous relaxation of (1)). If the quadratic program
min⁡{x⊤Hx+c⊤x:Ax≤b, x∈Rn}\min\{x^\top H x + c^\top x : Ax\le b,\ x\in\mathbb R^n\}min{x⊤Hx+c⊤x:Ax≤b, x∈Rn}

has a global optimal solution, then it has a rational global optimal solution x^\hat xx^ with size⁡(x^)≤g(φ)\operatorname{size}(\hat x)\le g(\varphi)size(x^)≤g(φ).

The second part is the form in which the proof of Theorem 1 uses the result (pp. 6–9): optimal solutions of auxiliary quadratic programs over sets of small complexity have small complexity.

Formalization Note "Is in NP" is rendered as the existence of polynomial-size certificates, since Mathlib has no complexity class NP; checking a rational certificate is routine. The polynomial is a Polynomial ℕ quantified before every dimension and every datum: a bound chosen after the data would make the statement trivially true.

Differences from the source:

  • reading: "the feasibility problem over the continuous relaxation of (2) is in NP" → every feasible instance has a rational feasible point of bit-size at most g(φ)g(\varphi)g(φ); reason: Mathlib has no class NP, and a polynomial-size certificate is the content of the claim (the paper's own justification of Proposition 5, p. 5, reads "in NP" the same way).
  • reading: "there exists a system of rational linear equations of {H,c,d,A,b}\{H,c,d,A,b\}{H,c,d,A,b}-small complexity whose solution is one of the global optimal solutions" → there is a global optimal solution of bit-size at most g(φ)g(\varphi)g(φ); reason: equivalent statements (by Cramer's rule the solution of a linear system of size sss has size polynomial in sss; conversely x^\hat xx^ is the solution of the system x=x^x=\hat xx=x^), and this is the form the proof uses on pp. 6–9.
  • generalization: (1) assumes HHH symmetric → any rational HHH; reason: x⊤Hxx^\top Hxx⊤Hx depends only on (H+H⊤)/2(H+H^\top)/2(H+H⊤)/2, whose size is polynomial in that of HHH, so the statement specializes to the symmetric case.
  • encoding: "polynomial" and "complexity" → Polynomial ℕ evaluated at Schrijver's bit-size; reason: every standard encoding and every real polynomial bound is polynomially equivalent to these.
Preamble
import Mathlib
import Definitions.Def_MIQPInNP_SmallSol_Setting
Formal statement
namespace MIQPInNP.SmallSol

/-- Theorem 3, p. 3 (Del Pia, Dey & Molinaro, arXiv:1407.4798v1). -/
theorem theorem_3 :
    ∃ g : Polynomial ℕ,
      (∀ (n m : ℕ) (H : Matrix (Fin n) (Fin n) ℚ) (c : Fin n → ℚ) (d : ℚ)
        (A : Matrix (Fin m) (Fin n) ℚ) (b : Fin m → ℚ),
        (feasSet 0 H c d A b).Nonempty →
        ∃ xh : Fin n → ℚ, toReal xh ∈ feasSet 0 H c d A b ∧
          vecSize xh ≤ g.eval (instSize H c d A b)) ∧
      (∀ (n m : ℕ) (H : Matrix (Fin n) (Fin n) ℚ) (c : Fin n → ℚ) (d : ℚ)
        (A : Matrix (Fin m) (Fin n) ℚ) (b : Fin m → ℚ),
        (∃ x ∈ polyhedron A b, ∀ y ∈ polyhedron A b, quadVal H c 0 x ≤ quadVal H c 0 y) →
        ∃ xh : Fin n → ℚ, toReal xh ∈ polyhedron A b ∧
          (∀ y ∈ polyhedron A b, quadVal H c 0 (toReal xh) ≤ quadVal H c 0 y) ∧
          vecSize xh ≤ g.eval (instSize H c d A b)) := by sorry

end MIQPInNP.SmallSol
Source
Del Pia, Dey & Molinaro, Mixed-integer quadratic programming is in NP, arXiv:1407.4798v1, p. 3, Theorem 3
Human review
  • Endorsed by Shuze Chen · Oct 24, 2026

    Confirmed by the moderator at approval.

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