Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 5.1, pp. 112–113 — lists describing an Euler tour satisfy (i) and (ii)

Proved
ChinesePostman.NextNode.cond_i_ii_of_describes

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 Ln(1),…,Ln(kn)L_n(1), \dots, L_n(k_n)Ln​(1),…,Ln​(kn​) next-node lists for GGG. If the lists describe an Euler tour from rrr (the traversal from rrr uses every list entry and its node sequence is that of an Euler tour), then

(i)kn=12deg⁡(n)  for every node n,(ii)#(n,m)=∣{i:Lm(i)=n}∣+∣{i:Ln(i)=m}∣  for all nodes n,m,\text{(i)}\quad k_n = \tfrac12 \deg(n) \ \text{ for every node } n, \qquad \text{(ii)}\quad \#(n,m) = \bigl|\{i : L_m(i) = n\}\bigr| + \bigl|\{i : L_n(i) = m\}\bigr| \ \text{ for all nodes } n, m,(i)kn​=21​deg(n)  for every node n,(ii)#(n,m)=​{i:Lm​(i)=n}​+​{i:Ln​(i)=m}​  for all nodes n,m,

where #(n,m)\#(n,m)#(n,m) is the number of edges meeting both nnn and mmm.

This is the easy half of the necessity part of Theorem 5.1: an Euler tour leaves a node once each time it enters it, and uses each edge once.

Formalization Note Connectivity and even degrees, hypotheses of Theorem 5.1, are not needed here and are omitted. Condition (ii) is stated for all pairs, including n=mn = mn=m, where it says that no list contains its own node.

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

/-- Proof of Theorem 5.1, pp. 112–113: if next-node lists describe an Euler tour, then they
satisfy (i) and (ii). -/
theorem cond_i_ii_of_describes {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
    [DecidableEq E] (G : Graph V E) (r : V) (L : V → List V)
    (h : DescribesEulerTour G r L) :
    CondI G L ∧ CondII G L := by sorry

end ChinesePostman.NextNode
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), pp. 112–113, §5, proof of Theorem 5.1 (necessity of (i) and (ii))
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