Theorem 2 — on a rectangle
ProvedBiconvexProg.BranchBound.vex_mul_rectangleLet be a rectangle. Then for every ,
where is the convex envelope over (the pointwise supremum of all convex functions underestimating on ).
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 , where the envelope is meaningful. Degenerate rectangles ( or ) are included, and the identity holds for them too. No hypothesis , is needed, since the statement is empty otherwise.
import Mathlib import Definitions.Def_BiconvexProg_BranchBound_convexEnvelope
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Here denotes the real supremum of over all functions that are convex on (which requires convex) and satisfy on . It is if that set of values is empty or unbounded above.
Claim. For all reals and every point with ,
where is the product function .
Degenerate cases: the hypothesis forces and . If or , there is no such and the claim is vacuous. Flat rectangles ( or , including a single point) are included, and the same formula is asserted for them.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.