Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§6, p. 116 — in a symmetric mixed graph every node set has as many directed edges leaving it as entering it

Proved
ChinesePostman.Mixed.cut_balance_of_symmetric

by mikedeng1 · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

cutmixed-graphp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1symmetric-digraph

Let GGG be a mixed graph that is symmetric: every node nnn has as many directed edges directed away from nnn as directed toward nnn. Then for every set SSS of nodes,

#{e directed:tail⁡(e)∈S, head⁡(e)∉S}  =  #{e directed:head⁡(e)∈S, tail⁡(e)∉S},\#\{e \text{ directed} : \operatorname{tail}(e) \in S,\ \operatorname{head}(e) \notin S\} \;=\; \#\{e \text{ directed} : \operatorname{head}(e) \in S,\ \operatorname{tail}(e) \notin S\},#{e directed:tail(e)∈S, head(e)∈/S}=#{e directed:head(e)∈S, tail(e)∈/S},

that is, SSS has the same number of edges directed away from a node of SSS and toward a node not in SSS as edges directed toward a node of SSS and away from a node not in SSS.

This is the reason, in the paper, that every arborescence of directed edges can be extended to a spanning one.

Formalization Note Only directed edges are counted; undirected edges play no role. The paper states the fact for a symmetric, connected graph whose edges are all directed; connectivity is not used and is not assumed.

Preamble
import Mathlib
import Definitions.Def_ChinesePostman_Mixed_Setting
Formal statement
namespace ChinesePostman.Mixed

/-- §6, p. 116: in a symmetric mixed graph every node set `S` has as many directed edges
directed away from a node of `S` and toward a node not in `S` as directed edges directed toward
a node of `S` and away from a node not in `S`. -/
theorem cut_balance_of_symmetric {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
    [DecidableEq E] (G : MixedGraph V E) (hsym : G.IsSymmetric) (S : Finset V) :
    (Finset.univ.filter (fun e => G.directed e = true ∧ G.tail e ∈ S ∧ G.head e ∉ S)).card =
      (Finset.univ.filter (fun e => G.directed e = true ∧ G.head e ∈ S ∧ G.tail e ∉ S)).card := by sorry

end ChinesePostman.Mixed
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), p. 116, §6 (the reason a maximal arborescence is spanning)
Human review
  • Endorsed by Shuze Chen · Oct 6, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 6, 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