Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 5.1, p. 113 — the last-exit edges leave every node set not containing rrr

Proved
ChinesePostman.NextNode.exists_last_exit_leaving

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

arborescenceeuler-tournext-node-listp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let GGG be a connected finite loopless multigraph, rrr a node and LLL next-node lists that describe an Euler tour from rrr. Then every node n≠rn \ne rn=r has a nonempty list, so its last exit Ln(1)L_n(1)Ln​(1) exists, and for every nonempty set SSS of nodes with r∉Sr \notin Sr∈/S

∃ n∈S:Ln(1)∉S.\exists\, n \in S:\quad L_n(1) \notin S .∃n∈S:Ln​(1)∈/S.

In words: the collection TTT of directed edges n→Ln(1)n \to L_n(1)n→Ln​(1), n≠rn \ne rn=r, has exactly one edge leaving each n≠rn \ne rn=r and has an edge leaving every node set that avoids rrr, since otherwise the tour, once it reaches SSS, would stay in SSS.

This is the cut property from which the paper concludes that TTT is an arborescence (condition (iii) of Theorem 5.1).

Formalization Note The page writes the edges as (n,Ln(kn))(n, L_n(k_n))(n,Ln​(kn​)); the argument ("the Euler tour would eventually reach SSS and stay in SSS") holds for the last exits Ln(1)L_n(1)Ln​(1) and fails for the first exits Ln(kn)L_n(k_n)Ln​(kn​), and the paper's converse proof uses Ln(1)L_n(1)Ln​(1). The statement uses Ln(1)L_n(1)Ln​(1), the head of the list. Connectivity is used for the nonemptiness of the lists of nodes n≠rn \ne rn=r; even degrees are not needed.

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

/-- Proof of Theorem 5.1, p. 113 (necessity of (iii)): if next-node lists describe an Euler tour of
a connected graph, then every node `n ≠ r` has a last exit `L_n(1)`, and every nonempty set `S` of
nodes not containing `r` has a node `n ∈ S` whose last exit `L_n(1)` lies outside `S`. -/
theorem exists_last_exit_leaving {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
    [DecidableEq E] (G : Graph V E) (hconn : Connected G) (r : V) (L : V → List V)
    (h : DescribesEulerTour G r L) :
    (∀ n, n ≠ r → L n ≠ []) ∧
      ∀ S : Finset V, S.Nonempty → r ∉ S →
        ∃ n ∈ S, ∃ m, (L n).head? = some m ∧ m ∉ S := 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 (necessity of (iii))
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