Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 6.2 — stable sets are adjacent on P(G)P(G)P(G) iff their symmetric difference induces a connected subgraph

Proved
ChvatalPolytopes.Neighbors.neighbors_iff_symmDiff_connected

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

graph-theoryp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1polyhedral-combinatoricsstable-set-polytope

Let G=(V,E)G=(V,E)G=(V,E) be a finite graph and P(G)P(G)P(G) its stable set polytope, the convex hull of the set S(G)S(G)S(G) of incidence vectors of stable sets. Let y,z∈S(G)y,z\in S(G)y,z∈S(G) and let

Y={u:yu=1},Z={u:zu=1}Y=\{u : y_u=1\},\qquad Z=\{u : z_u=1\}Y={u:yu​=1},Z={u:zu​=1}

be the corresponding stable sets. Then yyy and zzz are neighbours in P(G)P(G)P(G) — there is an integer-valued vector ccc such that yyy and zzz are the only two maximizers of cxcxcx over S(G)S(G)S(G) — if and only if

the subgraph H of G induced by (Y−Z)∪(Z−Y) is connected.\text{the subgraph } H \text{ of } G \text{ induced by } (Y-Z)\cup(Z-Y) \text{ is connected.}the subgraph H of G induced by (Y−Z)∪(Z−Y) is connected.

The theorem describes the edges (the 1-skeleton) of the stable set polytope purely in terms of the graph. Applied to the line graph it answers Balinski's question on adjacency in the matching polytope (Corollary 6.3).

Formalization Note "Connected" is Mathlib's SimpleGraph.Connected, which requires a nonempty vertex set; hence for y=zy=zy=z both sides are false, as in the paper (neighbours are two distinct vectors). Neighbourhood is the paper's definition via unique maximizers of integer-valued objectives (AreNeighbors).

Preamble
import Mathlib
import Definitions.Def_ChvatalPolytopes_Neighbors_StablePolytope
import Definitions.Def_ChvatalPolytopes_Neighbors_AreNeighbors
Formal statement
namespace ChvatalPolytopes.Neighbors

/-- **Theorem 6.2** (Chvátal 1975, p. 149). Let `G = (V, E)` be a graph. Let `y, z` be vectors
from `S(G)`; let `Y, Z` be the corresponding stable sets (`Y = {u : y_u = 1}`,
`Z = {u : z_u = 1}`). Then `y` and `z` are neighbors in `P(G)` if and only if the subgraph `H`
of `G` induced by `(Y − Z) ∪ (Z − Y)` is connected. -/
theorem neighbors_iff_symmDiff_connected {V : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) (y z : V → ℝ) (hy : y ∈ stableVectors G) (hz : z ∈ stableVectors G) :
    AreNeighbors G y z ↔
      (G.induce ((onesSet y \ onesSet z) ∪ (onesSet z \ onesSet y))).Connected := by sorry

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

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

Let VVV be a finite vertex type with decidable equality, and let GGG be a simple graph on VVV. Let y,z:V→Ry, z : V \to \mathbb{R}y,z:V→R be real vectors indexed by the vertices. The theorem assumes:

  • y∈S(G)y \in \mathcal{S}(G)y∈S(G) and z∈S(G)z \in \mathcal{S}(G)z∈S(G). Here S(G)\mathcal{S}(G)S(G) is the set written stableVectors G, which comes from the imported bundle. Its definition is not included in the code I was given. From the name alone, it is a set of vectors in RV\mathbb{R}^VRV attached to GGG. Nothing in this code says what that set contains, for example whether it is exactly the 0/1 incidence vectors of stable sets of GGG.

For any vector x:V→Rx : V \to \mathbb{R}x:V→R, let ones⁡(x)\operatorname{ones}(x)ones(x) be the vertex set written onesSet x. Its definition is also not included. The name suggests the set of vertices uuu with xu=1x_u = 1xu​=1, but the code does not confirm this. Define the symmetric difference

D  =  (ones⁡(y)∖ones⁡(z))  ∪  (ones⁡(z)∖ones⁡(y))⊆V,D \;=\; \bigl(\operatorname{ones}(y) \setminus \operatorname{ones}(z)\bigr) \;\cup\; \bigl(\operatorname{ones}(z) \setminus \operatorname{ones}(y)\bigr) \subseteq V,D=(ones(y)∖ones(z))∪(ones(z)∖ones(y))⊆V,

and let G[D]G[D]G[D] be the subgraph of GGG induced on DDD. Its vertices are the elements of DDD, and two of them are adjacent exactly when they are adjacent in GGG.

The statement asserts the equivalence

Nbr⁡G(y,z)  ⟺  G[D] is connected.\operatorname{Nbr}_G(y, z) \iff G[D] \text{ is connected}.NbrG​(y,z)⟺G[D] is connected.

Here Nbr⁡G(y,z)\operatorname{Nbr}_G(y, z)NbrG​(y,z) is the predicate written AreNeighbors G y z, also imported from the bundle and not shown here. Its name suggests that yyy and zzz are adjacent vertices (joined by an edge) of some polytope associated with GGG. The code given does not say which polytope, or how adjacency is defined. "Connected" is used in the standard graph-theoretic sense, with one convention that matters below: a connected graph must have at least one vertex, and any two of its vertices must be joined by a path in G[D]G[D]G[D].

The claim is a two-way implication. It holds for every finite VVV, every simple graph GGG on VVV, and every pair y,zy, zy,z in S(G)\mathcal{S}(G)S(G). There are no further hypotheses. In particular, y≠zy \neq zy=z is not assumed.

Degenerate cases:

  • Empty DDD. Under this notion of connectedness, the graph on zero vertices is not connected. So whenever ones⁡(y)=ones⁡(z)\operatorname{ones}(y) = \operatorname{ones}(z)ones(y)=ones(z), the right-hand side is false. The theorem then asserts that Nbr⁡G(y,z)\operatorname{Nbr}_G(y, z)NbrG​(y,z) is false.
    • This includes y=zy = zy=z: the statement says no member of S(G)\mathcal{S}(G)S(G) is its own neighbour.
    • It also covers y≠zy \neq zy=z with the same set of ones, if S(G)\mathcal{S}(G)S(G) contains any such pair.
  • Empty VVV. Then DDD is empty, so the statement says Nbr⁡G(y,z)\operatorname{Nbr}_G(y, z)NbrG​(y,z) is false for every y,z∈S(G)y, z \in \mathcal{S}(G)y,z∈S(G). It says this even if S(G)\mathcal{S}(G)S(G) is nonempty (for example, if it contains the unique function on the empty type).
  • One vertex in DDD. Then G[D]G[D]G[D] is a single vertex and counts as connected. The statement says yyy and zzz are neighbours whenever their sets of ones differ in exactly one vertex.
  • Vectors outside S(G)\mathcal{S}(G)S(G). Nothing is asserted about them. If S(G)\mathcal{S}(G)S(G) is empty, the theorem is vacuous.
  • Unknown definitions. Everything about S(G)\mathcal{S}(G)S(G), ones⁡(⋅)\operatorname{ones}(\cdot)ones(⋅) and Nbr⁡G\operatorname{Nbr}_GNbrG​ depends on imported definitions that were not in the code I received. For example, the code does not settle whether Nbr⁡G\operatorname{Nbr}_GNbrG​ already excludes y=zy = zy=z, or what ones⁡\operatorname{ones}ones does with entries other than 000 and 111.
  • No default values arise. The statement uses no division, no subtraction of natural numbers, no integrals and no suprema, so none of Lean's fallback values come into play.
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