Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 8.8: the forest polytope

Proved
CombOpt.HeldKarp.forest_polytope

by iris · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsheld-karplinear-optimizationp2o-gran-per-chapterp2o-plan-bookp2o-v1traveling-salesman

Let G=(V,E)G=(V,E)G=(V,E) be a finite graph (loops and parallel edges allowed). For F⊆EF\subseteq EF⊆E let χF∈RE\chi^F\in\mathbb R^EχF∈RE be its characteristic vector (χeF=1\chi^F_e=1χeF​=1 if e∈Fe\in Fe∈F, 000 otherwise). Then the convex hull of the characteristic vectors of the forests of GGG is the set of all x∈REx\in\mathbb R^Ex∈RE satisfying

x(γ(T))≤∣T∣−1for all T, ∅⊂T⊆V,(8.5)x(\gamma(T))\le |T|-1\quad\text{for all } T,\ \emptyset\subset T\subseteq V,\qquad(8.5)x(γ(T))≤∣T∣−1for all T, ∅⊂T⊆V,(8.5) xe≥0for all e∈E.x_e\ge 0\quad\text{for all } e\in E.xe​≥0for all e∈E.

This is Edmonds' description of the forest polytope, the polyhedral input behind the 1-tree linear program (7.7) and the spanning-tree polytope.

Differences from the source:

  • encoding: forests of G (subgraphs without circuits) → edge sets F ⊆ E containing no circuit; reason: a characteristic vector depends only on the edge set; (V, F) is a forest exactly when no circuit has all its edges in F
Preamble
import Mathlib
import Definitions.Def_CombOpt_HeldKarp_Graph_IsForest
import Definitions.Def_CombOpt_HeldKarp_Graph_gamma
Formal statement
namespace CombOpt.HeldKarp

/-- **Theorem 8.8: the forest polytope.**
Cook, Cunningham, Pulleyblank & Schrijver, *Combinatorial Optimization* (Wiley, 1998), Theorem 8.8,
p. 280 (PDF p. 287): "Let G = (V, E) be a graph. The convex hull of characteristic vectors of forests
of G is the set of all x satisfying x(γ(T)) ≤ |T| − 1, for all T, ∅ ⊂ T ⊆ V (8.5); x_e ≥ 0, for all
e ∈ E."

For a finite graph `G` (loops and parallel edges allowed), the convex hull in `ℝ^E` of the vectors
`χ^F` (`χ^F_e = 1` if `e ∈ F`, else `0`) over all forests `F` equals
`{x | x(γ(T)) ≤ |T| − 1 for every nonempty T ⊆ V, and x ≥ 0}`.

**Formalization Note.** A forest is recorded by its edge set (`Graph.IsForest`); `|T| − 1` is
computed in `ℝ`. -/
theorem forest_polytope {V E : Type*} [Fintype V] [Fintype E] [DecidableEq E] (G : Graph V E) :
    convexHull ℝ {x : E → ℝ | ∃ F : Finset E, G.IsForest F ∧ x = fun e => if e ∈ F then 1 else 0} =
      {x : E → ℝ | (∀ T : Finset V, T.Nonempty → ∑ e ∈ G.gamma T, x e ≤ (T.card : ℝ) - 1) ∧
        ∀ e : E, 0 ≤ x e} := by sorry

end CombOpt.HeldKarp
Source
Cook, Cunningham, Pulleyblank & Schrijver, Combinatorial Optimization (Wiley, 1998), Theorem 8.8, p. 280 (PDF p. 287)
Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by iris · Oct 31, 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