Theorem 6.2 (i) — the weighting that makes two stable sets the only maximizers
ProvedChvatalPolytopes.Neighbors.symmDiff_tree_certificateLet be a finite graph, stable sets of with incidence vectors , and . Suppose the subgraph of induced by is connected, and let be a spanning tree of . Let () and be nonnegative integers as specified by Lemma 6.1 for with the bicoloration : for every , with equality exactly for the incidence vectors of and of . Define by
Then
with equality if and only if or .
This is the certificate of the "if" part of Theorem 6.2: it exhibits the integer vector for which and are the only maximizers over .
Formalization Note The spanning tree is a SimpleGraph on the subtype of with (so it has all vertices of ) and T.IsTree. The hypothesis on and is the conclusion of Lemma 6.1 for , , , written out. The connectedness of is kept as a hypothesis, as in the text, although it follows from the existence of .
import Mathlib import Definitions.Def_ChvatalPolytopes_Neighbors_StablePolytope import Definitions.Def_ChvatalPolytopes_Neighbors_IsBicoloration
namespace ChvatalPolytopes.Neighbors
/-- **The certificate of the "if" part of Theorem 6.2** (Chvátal 1975, p. 149, proof of
Theorem 6.2, (i)). Let `Y, Z` be stable sets of `G` with incidence vectors `y, z`, and let
`D = (Y − Z) ∪ (Z − Y)`. Suppose the subgraph `H` of `G` induced by `D` is connected, and let
`T` be a spanning tree of `H`. Let `c'_u` (`u ∈ D`) and `m` be as specified by Lemma 6.1 for `T`
with the bicoloration `D = (Y − Z) ∪ (Z − Y)`. Let `c_u = c'_u` for `u ∈ D`, `c_u = 1` if
`u ∈ Y ∩ Z` and `c_u = −1` if `u ∉ Y ∪ Z`. Then `Σ (c_u x_u : u ∈ V) ≤ m + |Y ∩ Z|` for all
`x ∈ S(G)`, with equality if and only if `x = y` or `x = z`. -/
theorem symmDiff_tree_certificate {V : Type*} [Fintype V] [DecidableEq V]
(G : SimpleGraph V) (Y Z : Finset V)
(hY : G.IsIndepSet (Y : Set V)) (hZ : G.IsIndepSet (Z : Set V))
(hH : (G.induce (((Y \ Z) ∪ (Z \ Y) : Finset V) : Set V)).Connected)
(T : SimpleGraph (((Y \ Z) ∪ (Z \ Y) : Finset V) : Set V))
(hTsub : T ≤ G.induce (((Y \ Z) ∪ (Z \ Y) : Finset V) : Set V)) (hT : T.IsTree)
(c' : (((Y \ Z) ∪ (Z \ Y) : Finset V) : Set V) → ℕ) (m : ℕ)
(hc' : ∀ x ∈ stableVectors T,
(∑ u, (c' u : ℝ) * x u ≤ (m : ℝ)) ∧
(∑ u, (c' u : ℝ) * x u = (m : ℝ) ↔
x = incidenceVector (Finset.univ.filter fun u : (((Y \ Z) ∪ (Z \ Y) : Finset V) : Set V) => u.1 ∈ Y \ Z) ∨
x = incidenceVector (Finset.univ.filter fun u : (((Y \ Z) ∪ (Z \ Y) : Finset V) : Set V) => u.1 ∈ Z \ Y))) :
let c : V → ℤ := fun u =>
if h : u ∈ (Y \ Z) ∪ (Z \ Y) then (c' ⟨u, by simpa using h⟩ : ℤ)
else if u ∈ Y ∩ Z then 1 else -1
∀ x ∈ stableVectors G,
(∑ u, (c u : ℝ) * x u ≤ (m : ℝ) + ((Y ∩ Z).card : ℝ)) ∧
(∑ u, (c u : ℝ) * x u = (m : ℝ) + ((Y ∩ Z).card : ℝ) ↔
x = incidenceVector Y ∨ x = incidenceVector Z) := by sorry
end ChvatalPolytopes.Neighbors
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be a finite type with decidable equality, and let be a simple graph on . Let be finite sets that are both independent in .
Write for the symmetric difference of and :
Hypotheses.
- Connected induced subgraph. The subgraph of induced on is connected. It is a graph whose vertex type is itself, and connectedness includes .
- Spanning tree. is a graph on the vertex set that is a subgraph of (every edge of is an edge of ) and is a tree.
- Tree inequality. are nonnegative integers and is a nonnegative integer. Every satisfies both
and
Here is the set of incidence vectors, indexed by , of independent sets of the tree . is the vector on that is on and elsewhere. and are arbitrary data assumed to satisfy this property; they are not constructed in the statement.
Conclusion. Define an integer vector by
Then every satisfies both
and
Here is the set of incidence vectors of independent sets of , and are the incidence vectors of and .
Degenerate cases:
- . Then . A graph on an empty vertex set is not connected, so the connectedness hypothesis fails and the theorem asserts nothing. The statement has content only when and is connected. If is disconnected, the theorem is again vacuous.
- Empty vertex type. is necessarily nonempty whenever the hypotheses hold, because is nonempty.
- Empty intersection. If , the bound is just , and no coordinate of equals by the middle case.
- . Then no coordinate of equals by the last case.
- is a single vertex. Here has no edges, and one of , is that vertex while the other is empty. The tree hypothesis then forces and equal to at that vertex.
- No junk values. The statement contains no division, natural-number subtraction, or other operation that returns a default value. The coefficients are genuine integers.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.