Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§7, p. 237 — for any weights there is a branching with a dual certificate (15)–(20)

Proved
OptimumBranchings.Polytope.exists_branching_dual_certificate

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

branchingsdualitylinear-programmingp2o-batch-p100ap2o-gran-per-chapterp2o-plan-paperp2o-v1

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 exist a branching BBB of GGG and a dual vector y=(yh,yS)y=(y_h,y_S)y=(yh​,yS​) — one number per node and one per set of two or more nodes — which together with the incidence vector of BBB satisfy conditions (15)–(20).

In the paper the branching is the output of the shrinking algorithm of §4 and the vector yyy is built along the unwinding of that algorithm; this statement records exactly the existence that Lemma 1 needs, without reference to the algorithm.

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

/-- Edmonds (1967), §7, pp. 237–238 (algorithm-free form): for every choice of real edge weights
`c` there are a branching `B` and a vector `y = [yNode, ySet]` satisfying (15)–(20) for `c` and
the vector of `B`. (In the paper, `B` is the output of the algorithm of §4.) -/
theorem exists_branching_dual_certificate {V E : Type*} [Fintype V] [DecidableEq V]
    [Fintype E] [DecidableEq E] (G : Graph V E) (c : E → ℝ) :
    ∃ (B : Finset E) (yNode : V → ℝ) (ySet : Finset V → ℝ),
      G.IsBranching B ∧ IsDualCertificate G c B yNode ySet := by sorry

end OptimumBranchings.Polytope
Source
Edmonds, Optimum branchings, J. Res. Nat. Bur. Standards 71B (1967), pp. 237–238, Section 7
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 edge weights.

Claim. There exist three things:

  • a finite edge set BBB;
  • a real number yvy_vyv​ for each node vvv;
  • a real number ySy_SyS​ for each node set SSS;

such that both of the following hold.

  1. BBB is a branching:

    • no nonempty F⊆BF\subseteq BF⊆B has every node an end (front or rear) of exactly 000 or exactly 222 edges of FFF;
    • no two distinct edges of BBB share a front.
  2. yyy is a dual certificate for ccc and BBB. Write we=∑∣S∣≥2, fr(e),re(e)∈SySw_e=\sum_{|S|\ge2,\ \mathrm{fr}(e),\mathrm{re}(e)\in S}y_Swe​=∑∣S∣≥2, fr(e),re(e)∈S​yS​ and let χB\chi^BχB be the incidence vector of BBB. Then:

    • (15) yv≥0y_v\ge0yv​≥0 for all nodes vvv;
    • (16) yS≥0y_S\ge0yS​≥0 for all ∣S∣≥2|S|\ge2∣S∣≥2;
    • (17) ce≤yfr(e)+wec_e\le y_{\mathrm{fr}(e)}+w_ece​≤yfr(e)​+we​ for all edges eee;
    • (18) if yv≠0y_v\ne0yv​=0, then exactly one edge of BBB has front vvv;
    • (19) if ∣S∣≥2|S|\ge2∣S∣≥2 and yS≠0y_S\ne0yS​=0, then exactly ∣S∣−1|S|-1∣S∣−1 edges of BBB have both ends in SSS;
    • (20) yfr(e)+we=cey_{\mathrm{fr}(e)}+w_e=c_eyfr(e)​+we​=ce​ for every e∈Be\in Be∈B.

The statement gives no construction or description of BBB. It does not require BBB to be nonempty or to cover all nodes.

Degenerate cases.

  • EEE empty: the claim is met by B=∅B=\varnothingB=∅ with all yyy values zero.
  • Small sets: the values ySy_SyS​ for ∣S∣≤1|S|\le1∣S∣≤1 are free.
  • ∣V∣≤1|V|\le 1∣V∣≤1: EEE is necessarily empty.
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