Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 5.1, p. 113 — one out-edge per node n≠rn \ne rn=r and an edge leaving every set avoiding rrr give an arborescence

Proved
ChinesePostman.NextNode.reaches_root_of_cut_property

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

arborescencecombinatoricsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let VVV be a finite set, r∈Vr \in Vr∈V and p:V→Vp : V \to Vp:V→V a map, read as the directed edges n→p(n)n \to p(n)n→p(n) for n≠rn \ne rn=r. Suppose every nonempty S⊆VS \subseteq VS⊆V with r∉Sr \notin Sr∈/S contains a node nnn with p(n)∉Sp(n) \notin Sp(n)∈/S. Let q(u)=rq(u) = rq(u)=r if u=ru = ru=r and q(u)=p(u)q(u) = p(u)q(u)=p(u) otherwise. Then

∀ n∈V  ∃ j≥0:qj(n)=r.\forall\, n \in V\ \ \exists\, j \ge 0:\quad q^{j}(n) = r .∀n∈V  ∃j≥0:qj(n)=r.

So the edges n→p(n)n \to p(n)n→p(n), n≠rn \ne rn=r, form a connected graph on all of VVV with one fewer edge than nodes, that is a tree, directed towards rrr: an arborescence with root rrr.

This purely combinatorial step turns the cut property of the last-exit edges into condition (iii) of Theorem 5.1.

Formalization Note "The edges form an arborescence with root rrr" is expressed by: iterating qqq from any node reaches rrr. With exactly one outgoing edge at each n≠rn \ne rn=r and none at rrr, this is equivalent to TTT being a spanning tree directed to rrr.

Preamble
import Mathlib
import Definitions.Def_ChinesePostman_NextNode_Setting
Formal statement
namespace ChinesePostman.NextNode

/-- Proof of Theorem 5.1, p. 113: a map `p` giving each node `n ≠ r` one outgoing edge
`n → p n`, such that every nonempty node set `S` with `r ∉ S` has an edge leaving `S`, forms an
arborescence with root `r`: iterating `n ↦ p n` (with `r` fixed) leads every node to `r`. -/
theorem reaches_root_of_cut_property {V : Type} [Fintype V] [DecidableEq V] (p : V → V) (r : V)
    (h : ∀ S : Finset V, S.Nonempty → r ∉ S → ∃ n ∈ S, p n ∉ S) :
    ∀ n, ∃ j : ℕ, (fun u => if u = r then r else p u)^[j] n = r := by sorry

end ChinesePostman.NextNode
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), p. 113, §5, proof of Theorem 5.1 ("Therefore, T must form a connected graph including every node of G … Hence, (iii) is true.")
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