Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Finite termination — if vbk=Vbkv_b^k = V_b^kvbk​=Vbk​, the stage point attaining VbkV_b^kVbk​ solves Problem P\mathcal PP

Proved
BiconvexProg.BranchBound.finite_termination

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

branch-and-boundglobal-optimizationp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let S,f,g,ΩS, f, g, \OmegaS,f,g,Ω satisfy the standing hypotheses of Problem P\mathcal PP, and consider any run of the branch-and-bound algorithm. Suppose that at some stage kkk the best bounds coincide, vbk=Vbkv_b^k = V_b^kvbk​=Vbk​, and let l≤kl \le kl≤k be a stage whose point attains the best upper bound, φ(xl,yl)=Vbk\varphi(x^l, y^l) = V_b^kφ(xl,yl)=Vbk​. Then (xl,yl)∈S∩Ω(x^l, y^l) \in S \cap \Omega(xl,yl)∈S∩Ω and

φ(xl,yl)≤φ(x,y)for all (x,y)∈S∩Ω,\varphi(x^l, y^l) \le \varphi(x, y) \qquad \text{for all } (x, y) \in S \cap \Omega,φ(xl,yl)≤φ(x,y)for all (x,y)∈S∩Ω,

so (xl,yl)(x^l, y^l)(xl,yl) is a global solution of Problem P\mathcal PP.

This is the algorithm's stopping test. The paper states it at Stage 2 ("If vb2=Vb2v_b^2 = V_b^2vb2​=Vb2​, we are done") and uses it at every stage.

Formalization Note The paper's remark is made at Stage 2 and generalized here to an arbitrary stage, as the algorithm's description implies.

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

/-- Finite termination (p. 278, stated there for stage 2): if at some stage the best lower and
upper bounds coincide, `v_bᵏ = V_bᵏ`, then every earlier stage point `(xˡ, yˡ)`, `l ≤ k`, that
attains `V_bᵏ` is a global solution of Problem 𝒫. -/
theorem finite_termination {n : ℕ} {S : Set ((Fin n → ℝ) × (Fin n → ℝ))}
    {f g : (Fin n → ℝ) → ℝ} {Ω : Box n} (hP : IsProblemP S f g Ω)
    {nodes : ℕ → Multiset (Box n)} {sel : ℕ → Box n} {idx : ℕ → Fin n}
    {pt : ℕ → (Fin n → ℝ) × (Fin n → ℝ)} (hrun : IsRun S f g Ω nodes sel idx pt)
    (k l : ℕ) (hl : l ≤ k) (hVl : objective f g (pt l) = bestUpper f g pt k)
    (heq : bestLower f g sel pt k = bestUpper f g pt k) :
    pt l ∈ S ∩ Ω.toSet ∧ IsMinOn (objective f g) (S ∩ Ω.toSet) (pt l) := by sorry

end BiconvexProg.BranchBound
Source
Al-Khayyal, Falk, Jointly Constrained Biconvex Programming, Math. Oper. Res. 8(2), 1983, p. 278, remark after the Stage 2 bound chain
Read-back

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

Setting. SSS, fff, ggg, Ω=(l,L,m,M)\Omega = (l, L, m, M)Ω=(l,L,m,M) and φ(x,y)=f(x)+x⊤y+g(y)\varphi(x,y) = f(x) + x^\top y + g(y)φ(x,y)=f(x)+x⊤y+g(y) are as below, and [Ω]={(x,y):l≤x≤L, m≤y≤M}[\Omega] = \{(x,y) : l \le x \le L,\ m \le y \le M\}[Ω]={(x,y):l≤x≤L, m≤y≤M}.

Hypotheses.

  1. The standing hypotheses hold:
    • n>0n > 0n>0;
    • l≤Ll \le Ll≤L and m≤Mm \le Mm≤M;
    • fff is convex and continuous on {l≤x≤L}\{l \le x \le L\}{l≤x≤L}, and ggg is convex and continuous on {m≤y≤M}\{m \le y \le M\}{m≤y≤M};
    • SSS is closed and convex;
    • S∩[Ω]≠∅S \cap [\Omega] \neq \emptysetS∩[Ω]=∅.
  2. (Nk,Bk,Ik,zk)k(N_k, B_k, I_k, z^k)_k(Nk​,Bk​,Ik​,zk)k​ is a run:
    • N0={Ω}N_0 = \{\Omega\}N0​={Ω}, Bk∈NkB_k \in N_kBk​∈Nk​ and zk∈S∩[Bk]z^k \in S \cap [B_k]zk∈S∩[Bk​];
    • ψBk(zk)≤ψB(z)\psi^{B_k}(z^k) \le \psi^B(z)ψBk​(zk)≤ψB(z) for all B∈NkB \in N_kB∈Nk​ and z∈S∩[B]z \in S \cap [B]z∈S∩[B];
    • IkI_kIk​ maximises the coordinate gap xikyik−Vex⁡Ωi(Bk)(pq)(xik,yik)x^k_i y^k_i - \operatorname{Vex}_{\Omega_i(B_k)}(pq)(x^k_i,y^k_i)xik​yik​−VexΩi​(Bk​)​(pq)(xik​,yik​);
    • Nk+1N_{k+1}Nk+1​ is NkN_kNk​ with one copy of BkB_kBk​ removed, plus the four children of BkB_kBk​ split at (Ik,xIkk,yIkk)(I_k, x^k_{I_k}, y^k_{I_k})(Ik​,xIk​k​,yIk​k​).
  3. Natural numbers j≤kj \le kj≤k satisfy
φ(zj)=Vkandvk=Vk.\varphi(z^j) = V_k \quad\text{and}\quad v_k = V_k.φ(zj)=Vk​andvk​=Vk​.

Here ψB(x,y)=f(x)+Vex⁡[B](x⊤y)(x,y)+g(y)\psi^B(x,y) = f(x) + \operatorname{Vex}_{[B]}(x^\top y)(x,y) + g(y)ψB(x,y)=f(x)+Vex[B]​(x⊤y)(x,y)+g(y), vk=ψBk(zk)v_k = \psi^{B_k}(z^k)vk​=ψBk​(zk) and Vk=min⁡0≤i≤kφ(zi)V_k = \min_{0 \le i \le k} \varphi(z^i)Vk​=min0≤i≤k​φ(zi). Vex⁡\operatorname{Vex}Vex is the real supremum of values of convex minorants, and is 000 if that set is empty or unbounded.

Claim. zj∈S∩[Ω]z^j \in S \cap [\Omega]zj∈S∩[Ω], and φ(zj)≤φ(z)\varphi(z^j) \le \varphi(z)φ(zj)≤φ(z) for every z∈S∩[Ω]z \in S \cap [\Omega]z∈S∩[Ω].

Degenerate cases: n=0n = 0n=0, an empty Ω\OmegaΩ and infeasibility are excluded. k=0k = 0k=0 is allowed, in which case j=0j = 0j=0 and z0z^0z0 is the point chosen in Ω\OmegaΩ itself.

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