Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1 — every linear function is maximized over PGP_GPG​ by a branching vector

Proved
OptimumBranchings.Polytope.lemma_1

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

branchingslinear-programmingp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1polyhedral-combinatorics

Let GGG be a directed graph (finite, parallel edges allowed, no loops) and let c=(ce)c=(c_e)c=(ce​) be arbitrary real edge weights. Then there is a branching BBB of GGG whose incidence vector xBx^BxB lies in PGP_GPG​ and maximizes the linear function ∑ecexe\sum_e c_e x_e∑e​ce​xe​ over PGP_GPG​:

xB∈PGand∑ecexe≤∑ecexeB  for all x∈PG.x^B\in P_G\quad\text{and}\quad\sum_e c_e x_e\le\sum_e c_e x^B_e\ \ \text{for all }x\in P_G .xB∈PG​ande∑​ce​xe​≤e∑​ce​xeB​  for all x∈PG​.

Together with the definition of a vertex this gives the inclusion "vertices ⊆\subseteq⊆ branching vectors" of Theorem 2, and it shows that the optimum branching problem is solved by the linear program over PGP_GPG​.

Preamble
import Mathlib
import Definitions.Def_OptimumBranchings_Polytope_Graph
import Definitions.Def_OptimumBranchings_Polytope_BranchingPolyhedron
Formal statement
namespace OptimumBranchings.Polytope

/-- Edmonds (1967), Lemma 1, p. 236: every linear function `∑ c_e x_e` is maximized in `P_G` by
the vector of some branching in `G`. -/
theorem lemma_1 {V E : Type*} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
    (G : Graph V E) (c : E → ℝ) :
    ∃ B : Finset E, G.IsBranching B ∧ incidenceVector B ∈ branchingPolyhedron G ∧
      ∀ x ∈ branchingPolyhedron G, ∑ e, c e * x e ≤ ∑ e, c e * incidenceVector B e := by sorry

end OptimumBranchings.Polytope
Source
Edmonds, Optimum branchings, J. Res. Nat. Bur. Standards 71B (1967), p. 236, Lemma 1
Read-back

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

Setting. VVV and EEE are finite types with decidable equality. GGG is any graph on them: each edge eee has a front fr(e)\mathrm{fr}(e)fr(e) and a rear re(e)\mathrm{re}(e)re(e), and these two nodes differ. c:E→Rc: E\to\mathbb{R}c:E→R are arbitrary real weights.

Claim. There exists a finite edge set BBB such that all three of the following hold:

  1. BBB is a branching:

    • no nonempty F⊆BF\subseteq BF⊆B has every node an end of exactly 000 or exactly 222 edges of FFF;
    • no two distinct edges of BBB share a front.
  2. χB∈PG\chi^B \in P_GχB∈PG​, where χB\chi^BχB is the incidence vector of BBB. Here PGP_GPG​ is the set of real vectors xxx indexed by EEE that satisfy:

    • xe≥0x_e\ge0xe​≥0 for every edge eee;
    • ∑fr(e)=vxe≤1\sum_{\mathrm{fr}(e)=v}x_e\le1∑fr(e)=v​xe​≤1 for every node vvv;
    • ∑fr(e),re(e)∈Sxe≤∣S∣−1\sum_{\mathrm{fr}(e),\mathrm{re}(e)\in S}x_e\le|S|-1∑fr(e),re(e)∈S​xe​≤∣S∣−1 for every node set SSS with ∣S∣≥2|S|\ge2∣S∣≥2.
  3. χB\chi^BχB maximizes the linear function over PGP_GPG​: every x∈PGx\in P_Gx∈PG​ satisfies

∑ecexe≤∑eceχeB.\sum_e c_ex_e\le\sum_e c_e\chi^B_e.e∑​ce​xe​≤e∑​ce​χeB​.

The statement does not claim the maximizer is unique.

Degenerate cases.

  • EEE empty: B=∅B = \varnothingB=∅ and the claim holds trivially.
  • All weights ce≤0c_e \le 0ce​≤0: the choice B=∅B=\varnothingB=∅ satisfies the inequality, because every x∈PGx \in P_Gx∈PG​ is nonnegative. The statement does not specify which BBB is meant.
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