Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 2 — VexΩ xy=max⁡{mx+ly−lm, Mx+Ly−LM}\mathrm{Vex}_\Omega\, xy = \max\{mx + ly - lm,\ Mx + Ly - LM\}VexΩ​xy=max{mx+ly−lm, Mx+Ly−LM} on a rectangle

Proved
BiconvexProg.BranchBound.vex_mul_rectangle

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

bilinearconvex-envelopep2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let Ω={(x,y):l≤x≤L, m≤y≤M}⊆R2\Omega = \{(x,y) : l \le x \le L,\ m \le y \le M\} \subseteq \mathbb{R}^2Ω={(x,y):l≤x≤L, m≤y≤M}⊆R2 be a rectangle. Then for every (x,y)∈Ω(x, y) \in \Omega(x,y)∈Ω,

VexΩ xy=max⁡{ mx+ly−lm, Mx+Ly−LM },\mathrm{Vex}_\Omega\, xy = \max\{\, mx + ly - lm,\ Mx + Ly - LM \,\},VexΩ​xy=max{mx+ly−lm, Mx+Ly−LM},

where VexΩ\mathrm{Vex}_\OmegaVexΩ​ is the convex envelope over Ω\OmegaΩ (the pointwise supremum of all convex functions underestimating xyxyxy on Ω\OmegaΩ).

This closed form, now known as the McCormick envelope, gives the lower-bounding functions of the branch-and-bound algorithm: the node function of every subproblem is a sum of such maxima of two affine functions.

Formalization Note The identity is stated at the points of Ω\OmegaΩ, where the envelope is meaningful. Degenerate rectangles (l=Ll = Ll=L or m=Mm = Mm=M) are included, and the identity holds for them too. No hypothesis l≤Ll \le Ll≤L, m≤Mm \le Mm≤M is needed, since the statement is empty otherwise.

Preamble
import Mathlib
import Definitions.Def_BiconvexProg_BranchBound_convexEnvelope
Formal statement
namespace BiconvexProg.BranchBound

/-- Theorem 2 (p. 275): on a rectangle `Ω = [l, L] × [m, M] ⊂ ℝ²`, the convex envelope of `xy` is
`max {mx + ly − lm, Mx + Ly − LM}`, at every point of `Ω`. -/
theorem vex_mul_rectangle (l L m M : ℝ) (p : ℝ × ℝ)
    (hp : p ∈ Set.Icc l L ×ˢ Set.Icc m M) :
    convexEnvelope (Set.Icc l L ×ˢ Set.Icc m M) (fun q : ℝ × ℝ => q.1 * q.2) p =
      max (m * p.1 + l * p.2 - l * m) (M * p.1 + L * p.2 - L * M) := by sorry

end BiconvexProg.BranchBound
Source
Al-Khayyal, Falk, Jointly Constrained Biconvex Programming, Math. Oper. Res. 8(2), 1983, p. 275, Theorem 2
Read-back

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

Here Vex⁡Ah(p)\operatorname{Vex}_A h(p)VexA​h(p) denotes the real supremum of g(p)g(p)g(p) over all functions g:R2→Rg : \mathbb{R}^2 \to \mathbb{R}g:R2→R that are convex on AAA (which requires AAA convex) and satisfy g≤hg \le hg≤h on AAA. It is 000 if that set of values is empty or unbounded above.

Claim. For all reals l,L,m,Ml, L, m, Ml,L,m,M and every point p=(p1,p2)p = (p_1, p_2)p=(p1​,p2​) with p∈R=[l,L]×[m,M]p \in R = [l, L] \times [m, M]p∈R=[l,L]×[m,M],

Vex⁡R(q1q2) (p)  =  max⁡(mp1+lp2−lm,  Mp1+Lp2−LM),\operatorname{Vex}_{R}(q_1 q_2)\,(p) \;=\; \max\bigl( m p_1 + l p_2 - l m,\; M p_1 + L p_2 - L M \bigr),VexR​(q1​q2​)(p)=max(mp1​+lp2​−lm,Mp1​+Lp2​−LM),

where q1q2q_1 q_2q1​q2​ is the product function (q1,q2)↦q1q2(q_1, q_2) \mapsto q_1 q_2(q1​,q2​)↦q1​q2​.

Degenerate cases: the hypothesis p∈Rp \in Rp∈R forces l≤Ll \le Ll≤L and m≤Mm \le Mm≤M. If L<lL < lL<l or M<mM < mM<m, there is no such ppp and the claim is vacuous. Flat rectangles (l=Ll = Ll=L or m=Mm = Mm=M, including a single point) are included, and the same formula is asserted for them.

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