Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 5.1 — a defining linear system of P(G)P(G)P(G) after substituting G2G_2G2​ for a vertex of G1G_1G1​

Proved
ChvatalPolytopes.Substitution.substitution_defining_system

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

graph-substitutionp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1polyhedral-combinatoricsstable-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 V1∩V2=∅V_1\cap V_2=\emptysetV1​∩V2​=∅ and V2≠∅V_2\neq\emptysetV2​=∅. For k∈{1,2}k\in\{1,2\}k∈{1,2} let

−xu≤0(u∈Vk),∑u∈Vkaiuxu≤bi(i∈Jk)-x_u\le 0\quad(u\in V_k),\qquad \sum_{u\in V_k}a_{iu}x_u\le b_i\quad(i\in J_k)−xu​≤0(u∈Vk​),u∈Vk​∑​aiu​xu​≤bi​(i∈Jk​)

be a defining linear system of the stable set polytope P(Gk)P(G_k)P(Gk​), with J1,J2J_1,J_2J1​,J2​ finite and all coefficients real. Let vvv be a vertex of G1G_1G1​, let GGG be the graph obtained from G1G_1G1​ by substituting G2G_2G2​ for vvv, and for each i∈J1i\in J_1i∈J1​ set aiv+=max⁡{aiv,0}a^+_{iv}=\max\{a_{iv},0\}aiv+​=max{aiv​,0}. Then

−xu≤0(u∈V2∪(V1−{v})),aiv+∑u∈V2ajuxu+bj∑u∈V1−{v}aiuxu≤bibj(i∈J1, j∈J2)(5.1)\begin{aligned} -x_u&\le 0 && (u\in V_2\cup(V_1-\{v\})),\\ a^+_{iv}\sum_{u\in V_2}a_{ju}x_u+b_j\sum_{u\in V_1-\{v\}}a_{iu}x_u&\le b_ib_j && (i\in J_1,\ j\in J_2) \end{aligned}\tag{5.1}−xu​aiv+​u∈V2​∑​aju​xu​+bj​u∈V1​−{v}∑​aiu​xu​​≤0≤bi​bj​​​(u∈V2​∪(V1​−{v})),(i∈J1​, j∈J2​)​(5.1)

is a defining linear system of P(G)P(G)P(G): a vector x∈RV2∪(V1−{v})x\in\mathbb R^{V_2\cup(V_1-\{v\})}x∈RV2​∪(V1​−{v}) satisfies (5.1) if and only if x∈P(G)x\in P(G)x∈P(G).

The theorem turns a polyhedral description of the two pieces into one of the composite graph, row by row. Specialisations give defining systems for duplication of a vertex, for joins (Corollary 5.2) and for lexicographic products.

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​, so V1∩V2=∅V_1\cap V_2=\emptysetV1​∩V2​=∅ is built in. "Defining linear system" is the set equality between the solution set, nonnegativity rows included, and P(G)=conv⁡S(G)P(G)=\operatorname{conv}S(G)P(G)=convS(G). The hypothesis V2≠∅V_2\neq\emptysetV2​=∅ is implicit in the paper (its graphs follow Harary and have nonempty vertex sets, and the proof picks a vertex www of G2G_2G2​) and is made explicit: with V2=∅V_2=\emptysetV2​=∅, J2=∅J_2=\emptysetJ2​=∅ and V1≠{v}V_1\neq\{v\}V1​={v} the system (5.1) reduces to x≥0x\ge0x≥0 and the statement fails.

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

/-- **Theorem 5.1** (Chvátal 1975, p. 145). Let `G₁ = (V₁, E₁)` and `G₂ = (V₂, E₂)` be graphs with
`V₁ ∩ V₂ = ∅`. For `k ∈ {1, 2}`, let
`−x_u ≤ 0 (u ∈ V_k)`, `Σ (a_{iu} x_u : u ∈ V_k) ≤ b_i (i ∈ J_k)`
be a defining linear system of `P(G_k)`. Let `v` be a vertex of `G₁` and let `G` be the graph
obtained from `G₁` by substituting `G₂` for `v`. For each `i ∈ J₁`, set
`a⁺_{iv} = max {a_{iv}, 0}`. Then
`−x_u ≤ 0 (u ∈ V₂ ∪ (V₁ − {v}))`,
`a⁺_{iv} Σ (a_{ju} x_u : u ∈ V₂) + b_j Σ (a_{iu} x_u : u ∈ V₁ − {v}) ≤ b_i b_j
(i ∈ J₁, j ∈ J₂)` (5.1)
is a defining linear system of `P(G)`, i.e. its solution set equals `P(G) = conv S(G)`.

Conventions: vertices of `G` are `{u : V₁ // u ≠ v} ⊕ V₂` (`inl` = `V₁ − {v}`, `inr` = `V₂`), so
`V₁ ∩ V₂ = ∅` is built in; `J₁`, `J₂` are finite index types, coefficients real; "defining linear
system of `P(G_k)`" is the set equality `h₁`/`h₂`.

**Implicit hypothesis made explicit:** `[Nonempty V₂]`. The paper's graphs have nonempty vertex
sets (Harary), and its proof picks "an arbitrary vertex `w` of `G₂`" (p. 148). With `V₂ = ∅` the
statement is false (take `J₂ = ∅` and `V₁ ≠ {v}`: then (5.1) is only `x ≥ 0`). -/
theorem substitution_defining_system {V₁ V₂ : Type*} [Fintype V₁] [DecidableEq V₁]
    [Fintype V₂] [DecidableEq V₂] [Nonempty V₂] (G₁ : SimpleGraph V₁) (G₂ : SimpleGraph V₂)
    {J₁ J₂ : Type*} [Fintype J₁] [Fintype J₂]
    (a₁ : J₁ → V₁ → ℝ) (b₁ : J₁ → ℝ) (a₂ : J₂ → V₂ → ℝ) (b₂ : J₂ → ℝ)
    (h₁ : {x : V₁ → ℝ | (∀ u, 0 ≤ x u) ∧ ∀ i, ∑ u, a₁ i u * x u ≤ b₁ i} = Shared.stablePolytope G₁)
    (h₂ : {x : V₂ → ℝ | (∀ u, 0 ≤ x u) ∧ ∀ j, ∑ u, a₂ j u * x u ≤ b₂ j} = Shared.stablePolytope G₂)
    (v : V₁) :
    {x : {u : V₁ // u ≠ v} ⊕ V₂ → ℝ |
        (∀ u, 0 ≤ x u) ∧
        ∀ i j, max (a₁ i v) 0 * ∑ u : V₂, a₂ j u * x (.inr u)
          + b₂ j * ∑ w : {u : V₁ // u ≠ v}, a₁ i w * x (.inl w) ≤ b₁ i * b₂ j} =
      Shared.stablePolytope (substitute G₁ v G₂) := by sorry

end ChvatalPolytopes.Substitution
Source
Chvátal, On certain polytopes associated with graphs, J. Combin. Theory Ser. B 18 (1975), p. 145, Theorem 5.1
Read-back

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

Throughout, V1V_1V1​ and V2V_2V2​ are arbitrary finite types with decidable equality, and V2V_2V2​ is additionally assumed nonempty. G1G_1G1​ is a simple graph on V1V_1V1​ and G2G_2G2​ is a simple graph on V2V_2V2​. J1J_1J1​ and J2J_2J2​ are arbitrary finite index types, possibly empty, and nothing else is assumed about them. The data are real coefficients and right-hand sides

ai,u(1)∈R (i∈J1, u∈V1),bi(1)∈R,aj,u(2)∈R (j∈J2, u∈V2),bj(2)∈R,a^{(1)}_{i,u}\in\mathbb R\ (i\in J_1,\ u\in V_1),\quad b^{(1)}_i\in\mathbb R,\qquad a^{(2)}_{j,u}\in\mathbb R\ (j\in J_2,\ u\in V_2),\quad b^{(2)}_j\in\mathbb R,ai,u(1)​∈R (i∈J1​, u∈V1​),bi(1)​∈R,aj,u(2)​∈R (j∈J2​, u∈V2​),bj(2)​∈R,

together with a vertex v∈V1v\in V_1v∈V1​. No sign, integrality or other restriction is placed on any aaa or bbb.

The statement uses two definitions from the bundle whose code is not shown here: STAB(⋅)\mathrm{STAB}(\cdot)STAB(⋅), the bundle's stablePolytope, which assigns to a simple graph on a vertex type WWW a set of points in RW\mathbb R^{W}RW; and subst(G1,v,G2)\mathrm{subst}(G_1,v,G_2)subst(G1​,v,G2​), the bundle's substitute, which produces a simple graph on the vertex type {u∈V1:u≠v}⊔V2\{u\in V_1 : u\neq v\}\sqcup V_2{u∈V1​:u=v}⊔V2​. This read-back cannot unfold either of them. The theorem's meaning depends entirely on what they actually compute.

Hypotheses.

  • (h1)(h_1)(h1​) The set of all x∈RV1x\in\mathbb R^{V_1}x∈RV1​ with xu≥0x_u\ge 0xu​≥0 for every u∈V1u\in V_1u∈V1​ and ∑u∈V1ai,u(1)xu≤bi(1)\sum_{u\in V_1} a^{(1)}_{i,u}x_u\le b^{(1)}_i∑u∈V1​​ai,u(1)​xu​≤bi(1)​ for every i∈J1i\in J_1i∈J1​ is exactly equal to STAB(G1)\mathrm{STAB}(G_1)STAB(G1​).
  • (h2)(h_2)(h2​) The set of all y∈RV2y\in\mathbb R^{V_2}y∈RV2​ with yu≥0y_u\ge 0yu​≥0 for every u∈V2u\in V_2u∈V2​ and ∑u∈V2aj,u(2)yu≤bj(2)\sum_{u\in V_2} a^{(2)}_{j,u}y_u\le b^{(2)}_j∑u∈V2​​aj,u(2)​yu​≤bj(2)​ for every j∈J2j\in J_2j∈J2​ is exactly equal to STAB(G2)\mathrm{STAB}(G_2)STAB(G2​).

Conclusion. Write W={u∈V1:u≠v}⊔V2W=\{u\in V_1: u\neq v\}\sqcup V_2W={u∈V1​:u=v}⊔V2​ for the disjoint union, kept as a separately tagged copy of each part. For x∈RWx\in\mathbb R^{W}x∈RW, write xwx_wxw​ for the coordinates of the first part and xux_uxu​ for those of the second. The set of all x∈RWx\in\mathbb R^{W}x∈RW satisfying both

  • xt≥0x_t\ge 0xt​≥0 for every t∈Wt\in Wt∈W, and
  • for every pair i∈J1i\in J_1i∈J1​, j∈J2j\in J_2j∈J2​:
max⁡{ai,v(1),0}⋅∑u∈V2aj,u(2) xu  +  bj(2)⋅∑w∈V1, w≠vai,w(1) xw  ≤  bi(1) bj(2)\max\{a^{(1)}_{i,v},0\}\cdot\sum_{u\in V_2} a^{(2)}_{j,u}\,x_u\;+\;b^{(2)}_j\cdot\sum_{w\in V_1,\,w\neq v} a^{(1)}_{i,w}\,x_w\;\le\;b^{(1)}_i\,b^{(2)}_jmax{ai,v(1)​,0}⋅u∈V2​∑​aj,u(2)​xu​+bj(2)​⋅w∈V1​,w=v∑​ai,w(1)​xw​≤bi(1)​bj(2)​

is exactly equal, as a set, to STAB(subst(G1,v,G2))\mathrm{STAB}(\mathrm{subst}(G_1,v,G_2))STAB(subst(G1​,v,G2​)).

Only the coefficient of vvv is replaced by its positive part. The multiplier bj(2)b^{(2)}_jbj(2)​ is used as is, whatever its sign, as is the right-hand side bi(1)bj(2)b^{(1)}_ib^{(2)}_jbi(1)​bj(2)​. The conclusion is a set equality, so it asserts both inclusions.

Degenerate cases. Because v∈V1v\in V_1v∈V1​ is given, V1V_1V1​ is never empty. V2V_2V2​ cannot be empty because of the explicit nonemptiness assumption.

  • V1={v}V_1=\{v\}V1​={v}. The index set {u∈V1:u≠v}\{u\in V_1:u\neq v\}{u∈V1​:u=v} is empty. The second sum is the empty sum 000, so each constraint reduces to max⁡{ai,v(1),0}∑u∈V2aj,u(2)xu≤bi(1)bj(2)\max\{a^{(1)}_{i,v},0\}\sum_{u\in V_2}a^{(2)}_{j,u}x_u\le b^{(1)}_ib^{(2)}_jmax{ai,v(1)​,0}∑u∈V2​​aj,u(2)​xu​≤bi(1)​bj(2)​. In this case WWW consists of the copy of V2V_2V2​ only.
  • J1J_1J1​ or J2J_2J2​ empty. The second family of constraints is vacuous, and the left-hand set is the whole nonnegative orthant of RW\mathbb R^{W}RW. The theorem then asserts that STAB(subst(G1,v,G2))\mathrm{STAB}(\mathrm{subst}(G_1,v,G_2))STAB(subst(G1​,v,G2​)) is that orthant. Here (h1)(h_1)(h1​) or (h2)(h_2)(h2​) requires the corresponding STAB(Gk)\mathrm{STAB}(G_k)STAB(Gk​) to be the nonnegative orthant of RVk\mathbb R^{V_k}RVk​, which is nonzero-dimensional since VkV_kVk​ is nonempty. Whether this is possible depends on the unseen definition of STAB\mathrm{STAB}STAB. For example, if STAB\mathrm{STAB}STAB always returns a bounded set, the hypotheses cannot all hold, and the statement is vacuous in this case.
  • Zero or negative right-hand sides. If bj(2)=0b^{(2)}_j=0bj(2)​=0, every constraint for that jjj reads max⁡{ai,v(1),0}∑uaj,u(2)xu≤0\max\{a^{(1)}_{i,v},0\}\sum_{u}a^{(2)}_{j,u}x_u\le 0max{ai,v(1)​,0}∑u​aj,u(2)​xu​≤0. If ai,v(1)≤0a^{(1)}_{i,v}\le 0ai,v(1)​≤0, the V2V_2V2​ term drops out and the constraint reads bj(2)∑w≠vai,w(1)xw≤bi(1)bj(2)b^{(2)}_j\sum_{w\neq v}a^{(1)}_{i,w}x_w\le b^{(1)}_ib^{(2)}_jbj(2)​∑w=v​ai,w(1)​xw​≤bi(1)​bj(2)​. Negative bbb values are allowed by the types and constrained only through (h1)(h_1)(h1​) and (h2)(h_2)(h2​).
  • Total-function defaults. The statement contains no division, natural-number subtraction, integrals, suprema or extended reals, so there are none to account for. All sums are finite sums over finite types.
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