Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Theorem 3.21 -- local optimality characterizes global optimality

Proved
DiscreteConvex.IntegralConvexity.integral_local_to_global_optimality

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

combinatoricsconvex-optimizationdiscrete-convex-analysis

Theorem 3.21 (p.94). For an integrally convex function f:Zn→R∪{+∞}f : \mathbb Z^n \to \mathbb R \cup \{+\infty\}f:Zn→R∪{+∞} and x∈dom⁡Zfx \in \operatorname{dom}_{\mathbb Z} fx∈domZ​f,

f(x)≤f(y) (∀y∈Zn)  ⟺  f(x)≤f(x+χY−χZ) (∀Y,Z⊆{1,…,n}).f(x) \le f(y)\ (\forall y \in \mathbb Z^n) \iff f(x) \le f(x + \chi_Y - \chi_Z)\ (\forall Y, Z \subseteq \{1,\dots,n\}).f(x)≤f(y) (∀y∈Zn)⟺f(x)≤f(x+χY​−χZ​) (∀Y,Z⊆{1,…,n}).

Global optimality is equivalent to a finite, uniformly bounded local check: only the (at most) 3n−13^n - 13n−1 neighbors reachable by adding +1+1+1 on a subset YYY of coordinates and −1-1−1 on a disjoint subset ZZZ need be checked, however large the effective domain. Restricting the right-hand side to a single fixed (Y,Z)(Y,Z)(Y,Z), or letting Y,ZY, ZY,Z range over all of Zn\mathbb Z^nZn rather than just the unit sign pattern, would make the "if" direction trivial or the theorem false; the finite bound 3n−13^n - 13n−1 over disjoint Y,Z⊆{1,…,n}Y, Z \subseteq \{1,\dots,n\}Y,Z⊆{1,…,n} is the entire content.

(Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.94, Theorem 3.21.)

Preamble
import Mathlib
import Definitions.Def_DiscreteConvex_IntegralConvexity_IntegrallyConvex
import Definitions.Def_DiscreteConvex_IntegralConvexity_DomZ
import Definitions.Def_DiscreteConvex_IntegralConvexity_IndicatorVec
Formal statement
namespace DiscreteConvex.IntegralConvexity

/-- Theorem 3.21 (Murota, *Discrete Convex Analysis*, SIAM 2003, p.94). For an integrally
convex function `f : Zⁿ → R ∪ {+∞}` and `x ∈ dom_Z f`, global optimality of `x` is equivalent
to a finite local check over the (at most) `3ⁿ - 1` neighbors reachable by adding `+1` on a
subset `Y` of coordinates and `-1` on a disjoint subset `Z` of coordinates. -/
theorem integral_local_to_global_optimality {n : ℕ} (f : (Fin n → ℤ) → WithTop ℝ)
    (hf : IntegrallyConvex f) (x : Fin n → ℤ) (hx : x ∈ DomZ f) :
    (∀ y : Fin n → ℤ, f x ≤ f y) ↔
      (∀ Y Z : Finset (Fin n),
        f x ≤ f (fun i => x i + IndicatorVec Y i - IndicatorVec Z i)) := by sorry

end DiscreteConvex.IntegralConvexity
Source
Murota, Discrete Convex Analysis, SIAM 2003, DOI 10.1137/1.9780898718508, p.94, Theorem 3.21
Human review
  • Endorsed by Community (Bot) · Oct 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Shuze Chen · Oct 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me