Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.1, second step — m=max⁡{m0, m1+m2}m=\max\{m_0,\,m_1+m_2\}m=max{m0​,m1​+m2​}

Proved
ChvatalPolytopes.Substitution.stable_max_decomposition

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

combinatorial-optimizationgraph-substitutionp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1stable-set-polytope

Let G1=(V1,E1)G_1=(V_1,E_1)G1​=(V1​,E1​) and G2=(V2,E2)G_2=(V_2,E_2)G2​=(V2​,E2​) be finite graphs with disjoint vertex sets, v∈V1v\in V_1v∈V1​, and let GGG be obtained from G1G_1G1​ by substituting G2G_2G2​ for vvv. Put W=V1−{v}W=V_1-\{v\}W=V1​−{v}. Let c=(cu:u∈V2∪W)c=(c_u:u\in V_2\cup W)c=(cu​:u∈V2​∪W) be an integer-valued vector and du=max⁡{cu,0}d_u=\max\{c_u,0\}du​=max{cu​,0} for u∈V2∪Wu\in V_2\cup Wu∈V2​∪W. Set

m=max⁡{cx:x∈S(G)},m=\max\{cx : x\in S(G)\},m=max{cx:x∈S(G)}, m0=max⁡{∑u∈Wduxu:x∈S(G1), xv=0},m1=max⁡{∑u∈Wduxu:x∈S(G1), xv=1},m_0=\max\Big\{\sum_{u\in W}d_ux_u : x\in S(G_1),\ x_v=0\Big\},\qquad m_1=\max\Big\{\sum_{u\in W}d_ux_u : x\in S(G_1),\ x_v=1\Big\},m0​=max{u∈W∑​du​xu​:x∈S(G1​), xv​=0},m1​=max{u∈W∑​du​xu​:x∈S(G1​), xv​=1}, m2=max⁡{∑u∈V2duxu:x∈S(G2)}.m_2=\max\Big\{\sum_{u\in V_2}d_ux_u : x\in S(G_2)\Big\}.m2​=max{u∈V2​∑​du​xu​:x∈S(G2​)}.

Then

m=max⁡{∑u∈V2∪Wduxu:x∈S(G)}andm=max⁡{m0, m1+m2}.m=\max\Big\{\sum_{u\in V_2\cup W}d_ux_u : x\in S(G)\Big\}\qquad\text{and}\qquad m=\max\{m_0,\ m_1+m_2\}.m=max{u∈V2​∪W∑​du​xu​:x∈S(G)}andm=max{m0​, m1​+m2​}.

This purely combinatorial identity splits the maximum weight of a stable set of GGG into the cases "the stable set avoids V2V_2V2​" and "the stable set meets V2V_2V2​"; the proof of Theorem 5.1 builds its dual multipliers case by case from it.

Formalization Note Vertices of GGG are the disjoint sum {u∈V1:u≠v}⊕V2\{u\in V_1:u\ne v\}\oplus V_2{u∈V1​:u=v}⊕V2​. Each maximum is written as the real supremum (sSup) of the image of a finite set; each of these sets is nonempty (S(G)S(G)S(G), S(G2)S(G_2)S(G2​) and {x∈S(G1):xv=0}\{x\in S(G_1):x_v=0\}{x∈S(G1​):xv​=0} contain 000, and {x∈S(G1):xv=1}\{x\in S(G_1):x_v=1\}{x∈S(G1​):xv​=1} contains the incidence vector of {v}\{v\}{v}), so every supremum is an attained maximum and no junk value of sSup arises.

Preamble
import Mathlib
import Definitions.Def_ChvatalPolytopes_Shared_StablePolytope
import Definitions.Def_ChvatalPolytopes_Substitution_substitute
Formal statement
namespace ChvatalPolytopes.Substitution

/-- **Decomposition of the optimum** (Chvátal 1975, §5, pp. 145–146, proof of Theorem 5.1).
Let `G` be obtained from `G₁` by substituting `G₂` for the vertex `v` of `G₁`, and set
`W = V₁ − {v}`. Let `c = (c_u : u ∈ V₂ ∪ W)` be an integer-valued vector, `d_u = max {c_u, 0}`,
`m = max {cx : x ∈ S(G)}`, and
* `m₀ = max {Σ (d_u x_u : u ∈ W) : (x_u : u ∈ V₁) ∈ S(G₁), x_v = 0}`,
* `m₁ = max {Σ (d_u x_u : u ∈ W) : (x_u : u ∈ V₁) ∈ S(G₁), x_v = 1}`,
* `m₂ = max {Σ (d_u x_u : u ∈ V₂) : (x_u : u ∈ V₂) ∈ S(G₂)}`.
Then `m = max {Σ (d_u x_u : u ∈ V₂ ∪ W) : x ∈ S(G)}` and `m = max {m₀, m₁ + m₂}`.

Vertices of `G` are `{u : V₁ // u ≠ v} ⊕ V₂` (`inl` = `W`, `inr` = `V₂`). Each maximum is written
as `sSup` of the (finite) image set; every one of these sets is finite and nonempty (`S(G)`,
`S(G₂)` and `{x ∈ S(G₁) : x_v = 0}` contain the zero vector, `{x ∈ S(G₁) : x_v = 1}` contains the
incidence vector of `{v}`), so each `sSup` is an attained maximum. -/
theorem stable_max_decomposition {V₁ V₂ : Type*} [Fintype V₁] [DecidableEq V₁]
    [Fintype V₂] [DecidableEq V₂] (G₁ : SimpleGraph V₁) (G₂ : SimpleGraph V₂) (v : V₁)
    (c : {u : V₁ // u ≠ v} ⊕ V₂ → ℤ) :
    let d : {u : V₁ // u ≠ v} ⊕ V₂ → ℤ := fun u => max (c u) 0
    let m : ℝ := sSup ((fun x => ∑ u, (c u : ℝ) * x u) '' Shared.stableVectors (substitute G₁ v G₂))
    let m₀ : ℝ := sSup ((fun x : V₁ → ℝ => ∑ w : {u : V₁ // u ≠ v}, (d (.inl w) : ℝ) * x w) ''
      {x | x ∈ Shared.stableVectors G₁ ∧ x v = 0})
    let m₁ : ℝ := sSup ((fun x : V₁ → ℝ => ∑ w : {u : V₁ // u ≠ v}, (d (.inl w) : ℝ) * x w) ''
      {x | x ∈ Shared.stableVectors G₁ ∧ x v = 1})
    let m₂ : ℝ := sSup ((fun x : V₂ → ℝ => ∑ u, (d (.inr u) : ℝ) * x u) '' Shared.stableVectors G₂)
    m = sSup ((fun x => ∑ u, (d u : ℝ) * x u) '' Shared.stableVectors (substitute G₁ v G₂)) ∧
      m = max m₀ (m₁ + m₂) := by sorry

end ChvatalPolytopes.Substitution
Source
Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975), pp. 145–146, §5, proof of Theorem 5.1
Read-back

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

Setting.

  • V1V_1V1​ and V2V_2V2​ are finite types with decidable equality. G1G_1G1​ is a simple graph on V1V_1V1​ and G2G_2G2​ is a simple graph on V2V_2V2​. vvv is a vertex of V1V_1V1​.
  • W=V1∖{v}W = V_1 \setminus \{v\}W=V1​∖{v}.
  • GGG is the graph substitute G1G_1G1​ vvv G2G_2G2​ on W⊔V2W \sqcup V_2W⊔V2​. WWW-vertices are adjacent as in G1G_1G1​ and V2V_2V2​-vertices as in G2G_2G2​. A WWW-vertex and a V2V_2V2​-vertex are adjacent exactly when the WWW-vertex is a G1G_1G1​-neighbour of vvv.
  • ccc is an arbitrary integer vector on W⊔V2W \sqcup V_2W⊔V2​, and du=max⁡{cu,0}d_u = \max\{c_u, 0\}du​=max{cu​,0}.

External definition. S(H)\mathcal S(H)S(H) denotes Shared.stableVectors HHH, a set of real vectors on the vertices of a graph HHH. It is defined in a file not shown here, so it cannot be expanded.

Quantities. sup⁡\supsup below means the real supremum operator. For a real vector xxx on V1V_1V1​ and w∈Ww \in Ww∈W, xwx_wxw​ is the coordinate of xxx at www viewed as a vertex of V1V_1V1​.

m=sup⁡{∑u∈W⊔V2cuxu:x∈S(G)},m0=sup⁡{∑w∈Wdwxw:x∈S(G1), xv=0},m1=sup⁡{∑w∈Wdwxw:x∈S(G1), xv=1},m2=sup⁡{∑u∈V2duxu:x∈S(G2)}.\begin{aligned} m &= \sup\Bigl\{\textstyle\sum_{u \in W \sqcup V_2} c_u x_u : x \in \mathcal S(G)\Bigr\},\\ m_0 &= \sup\Bigl\{\textstyle\sum_{w \in W} d_w x_w : x \in \mathcal S(G_1),\ x_v = 0\Bigr\},\\ m_1 &= \sup\Bigl\{\textstyle\sum_{w \in W} d_w x_w : x \in \mathcal S(G_1),\ x_v = 1\Bigr\},\\ m_2 &= \sup\Bigl\{\textstyle\sum_{u \in V_2} d_u x_u : x \in \mathcal S(G_2)\Bigr\}. \end{aligned}mm0​m1​m2​​=sup{∑u∈W⊔V2​​cu​xu​:x∈S(G)},=sup{∑w∈W​dw​xw​:x∈S(G1​), xv​=0},=sup{∑w∈W​dw​xw​:x∈S(G1​), xv​=1},=sup{∑u∈V2​​du​xu​:x∈S(G2​)}.​

Claim. Both of the following hold:

m=sup⁡{∑u∈W⊔V2duxu:x∈S(G)}andm=max⁡{m0, m1+m2}.m = \sup\Bigl\{\textstyle\sum_{u \in W \sqcup V_2} d_u x_u : x \in \mathcal S(G)\Bigr\} \qquad\text{and}\qquad m = \max\{m_0,\ m_1 + m_2\}.m=sup{∑u∈W⊔V2​​du​xu​:x∈S(G)}andm=max{m0​, m1​+m2​}.

No hypothesis is placed on G1G_1G1​, G2G_2G2​, vvv or ccc.

Degenerate cases. These values are real-number suprema, not stated maxima.

  • The real supremum of an empty set is 000, and so is the supremum of a set unbounded above. Whether any of these sets is empty or unbounded depends on the unseen definition of S\mathcal SS.
  • If, for example, no x∈S(G1)x \in \mathcal S(G_1)x∈S(G1​) has xv=1x_v = 1xv​=1, then m1=0m_1 = 0m1​=0 by this convention, not "−∞-\infty−∞", and the identity is asserted with that value.
  • If V2V_2V2​ is empty, every sum in m2m_2m2​ is 000, so m2=0m_2 = 0m2​=0.
  • If V1={v}V_1 = \{v\}V1​={v}, then WWW is empty and every sum in m0m_0m0​ and m1m_1m1​ is 000, so m0=m1=0m_0 = m_1 = 0m0​=m1​=0.
  • If c≥0c \ge 0c≥0 everywhere, then d=cd = cd=c and the first conjunct is trivial.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 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