Lemma 6.1 — a tree's two colour classes are the only maximizers of a nonnegative integer weighting
ProvedChvatalPolytopes.Neighbors.tree_bicoloration_inequalityLet be a tree with a bicoloration , and let be the set of incidence vectors of the stable sets of . Then there are nonnegative integers () and such that
with equality if and only if is the incidence vector of or the incidence vector of :
The lemma supplies, for a spanning tree of the symmetric difference of two stable sets, the weights that make exactly those two stable sets optimal; it is the key step of the "if" part of Theorem 6.2.
Formalization Note The tree is Mathlib's SimpleGraph.IsTree on a finite type, which includes connectedness and hence a nonempty vertex set. The integers and are natural numbers, cast to .
import Mathlib import Definitions.Def_ChvatalPolytopes_Neighbors_StablePolytope import Definitions.Def_ChvatalPolytopes_Neighbors_IsBicoloration
namespace ChvatalPolytopes.Neighbors
/-- **Lemma 6.1** (Chvátal 1975, p. 149). Let `T = (V, E)` be a tree with a bicoloration
`V = B ∪ R`. Then there are nonnegative integers `c_u` (`u ∈ V`) and `m` such that
`Σ (c_u x_u : u ∈ V) ≤ m` for all `(x_u : u ∈ V) ∈ S(T)`, with equality if and only if `x` is
the incidence vector of `B` or the incidence vector of `R`. -/
theorem tree_bicoloration_inequality {V : Type*} [Fintype V] [DecidableEq V]
(T : SimpleGraph V) (hT : T.IsTree) (B R : Finset V) (hBR : IsBicoloration T B R) :
∃ (c : V → ℕ) (m : ℕ), ∀ x ∈ stableVectors T,
(∑ u, (c u : ℝ) * x u ≤ (m : ℝ)) ∧
(∑ u, (c u : ℝ) * x u = (m : ℝ) ↔ x = incidenceVector B ∨ x = incidenceVector R) := 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. Let be a simple graph on that is a tree: connected and without cycles. In this formal notion of connectedness, the vertex type is required to be nonempty. Let be finite sets forming a bicoloration of , meaning:
- and ;
- every edge of has one endpoint in and the other in .
Claim. There exist nonnegative integers for and a nonnegative integer such that every satisfies both
and
Here is the set of incidence vectors of independent sets of , where if and otherwise. The inequality and the equivalence are asserted only for vectors in . The theorem does not separately assert that and belong to . It does assert that any member of equal to one of them attains equality.
Degenerate cases:
- Empty vertex type. cannot be empty, because a tree is required to be connected and hence nonempty.
- Single vertex. If is a single vertex , then has no edges. One of is and the other is . consists of the zero vector and , and both are among . So the claim requires both to attain equality, that is, and . This forces and .
- Two or more vertices. When has at least two vertices, the tree has an edge, so both and are nonempty.
- No division or subtraction. The statement uses neither, so no junk values arise.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.