Theorem 6.2 — stable sets are adjacent on iff their symmetric difference induces a connected subgraph
ProvedChvatalPolytopes.Neighbors.neighbors_iff_symmDiff_connectedLet be a finite graph and its stable set polytope, the convex hull of the set of incidence vectors of stable sets. Let and let
be the corresponding stable sets. Then and are neighbours in — there is an integer-valued vector such that and are the only two maximizers of over — if and only if
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 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).
import Mathlib import Definitions.Def_ChvatalPolytopes_Neighbors_StablePolytope import Definitions.Def_ChvatalPolytopes_Neighbors_AreNeighbors
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
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be a finite vertex type with decidable equality, and let be a simple graph on . Let be real vectors indexed by the vertices. The theorem assumes:
- and . Here 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 attached to . Nothing in this code says what that set contains, for example whether it is exactly the 0/1 incidence vectors of stable sets of .
For any vector , let be the vertex set written onesSet x. Its definition is also not included. The name suggests the set of vertices with , but the code does not confirm this. Define the symmetric difference
and let be the subgraph of induced on . Its vertices are the elements of , and two of them are adjacent exactly when they are adjacent in .
The statement asserts the equivalence
Here is the predicate written AreNeighbors G y z, also imported from the bundle and not shown here. Its name suggests that and are adjacent vertices (joined by an edge) of some polytope associated with . 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 .
The claim is a two-way implication. It holds for every finite , every simple graph on , and every pair in . There are no further hypotheses. In particular, is not assumed.
Degenerate cases:
- Empty . Under this notion of connectedness, the graph on zero vertices is not connected. So whenever , the right-hand side is false. The theorem then asserts that is false.
- This includes : the statement says no member of is its own neighbour.
- It also covers with the same set of ones, if contains any such pair.
- Empty . Then is empty, so the statement says is false for every . It says this even if is nonempty (for example, if it contains the unique function on the empty type).
- One vertex in . Then is a single vertex and counts as connected. The statement says and are neighbours whenever their sets of ones differ in exactly one vertex.
- Vectors outside . Nothing is asserted about them. If is empty, the theorem is vacuous.
- Unknown definitions. Everything about , and depends on imported definitions that were not in the code I received. For example, the code does not settle whether already excludes , or what does with entries other than and .
- 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.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.