Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 5.1, p. 113 — under (i) and (ii) the tour from rrr returns to rrr having traversed every edge meeting rrr

Proved
ChinesePostman.NextNode.returns_to_root_of_cond_i_ii

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

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

Let GGG be a finite loopless multigraph, rrr a node and LLL next-node lists satisfying (i) 2kn=deg⁡(n)2k_n = \deg(n)2kn​=deg(n) for every nnn and (ii) #(n,m)=∣{i:Lm(i)=n}∣+∣{i:Ln(i)=m}∣\#(n,m) = |\{i : L_m(i) = n\}| + |\{i : L_n(i) = m\}|#(n,m)=∣{i:Lm​(i)=n}∣+∣{i:Ln​(i)=m}∣ for all n,mn, mn,m. Follow the tour specified by the lists from rrr until it stops. Then

  1. the traversal ends at rrr;
  2. every entry of the list of rrr has been used: rrr has been left krk_rkr​ times;
  3. every occurrence of rrr in every list LmL_mLm​ has been used,

so every edge meeting rrr has been traversed.

This is the first step of the converse of Theorem 5.1: the specified tour cannot get stuck at a node other than rrr.

Formalization Note "An entry has been used" refers to the traversal's departure counters: with tmt_mtm​ departures made from mmm, the unused entries of LmL_mLm​ are Lm(1),…,Lm(km−tm)L_m(1), \dots, L_m(k_m - t_m)Lm​(1),…,Lm​(km​−tm​). Condition (iii) and connectivity are not needed. Even degrees follow from (i) and are not assumed separately.

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

/-- Proof of Theorem 5.1, p. 113 (converse, first step): under (i) and (ii), the traversal from `r`
specified by the next-node lists ends at `r`, having used every entry of `L r` and every occurrence
of `r` in every list (so every edge meeting `r` has been traversed). -/
theorem returns_to_root_of_cond_i_ii {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
    (G : Graph V E) (r : V) (L : V → List V) (h1 : CondI G L) (h2 : CondII G L) :
    (follow L r).1.getLast? = some r ∧ (follow L r).2 r = (L r).length ∧
      ∀ m, r ∉ unused L (follow L r).2 m := 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 (converse, first step)
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