Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§7, p. 120 — a connected mixed graph has a postman tour iff no proper node set has all its boundary edges directed outward

Proved
ChinesePostman.Mixed.postman_tour_exists_iff

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

chinese-postmanmixed-graphp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1postman-tourstrong-connectivity

Let GGG be a connected mixed graph. A postman tour of GGG is a tour using every edge at least once, every directed edge in its direction. Then

G has a postman tour  ⟺  there is no nonempty proper subset S⊊NG \text{ has a postman tour} \iff \text{there is no nonempty proper subset } S \subsetneq NG has a postman tour⟺there is no nonempty proper subset S⊊N

such that every edge meeting one node in SSS and one node not in SSS is directed away from the node in SSS.

This is the existence criterion of the mixed postman problem; the condition is the obstruction to traversing an edge leaving SSS and coming back.

Formalization Note "Proper subset" is read as nonempty and proper: the empty set satisfies the condition vacuously, and the whole node set has no boundary edges. Connectivity (directions ignored) is a standing assumption of the section; without it a graph with two nodes and no edges would have a one-node postman tour while S={one node}S = \{\text{one node}\}S={one node} satisfies the condition. The node set is assumed nonempty ([Nonempty V]), as a graph in §2 has nodes: with no nodes there is no tour at all (a walk has at least one node), while the right-hand side holds vacuously. The paper calls necessity obvious and argues sufficiency through the algorithms of §4 and §6.

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

/-- §7, p. 120: a connected mixed graph has a postman tour if and only if there is no proper
(nonempty) subset `S` of nodes such that every edge meeting one node in `S` and one node not in
`S` is directed away from the node in `S`. -/
theorem postman_tour_exists_iff {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
    [DecidableEq E] [Nonempty V] (G : MixedGraph V E) (hconn : G.Connected) :
    (∃ ns es, G.IsMixedPostmanTour ns es) ↔
      ¬ ∃ S : Finset V, S.Nonempty ∧ S ≠ Finset.univ ∧
        ∀ e, (G.tail e ∈ S ↔ G.head e ∉ S) → (G.directed e = true ∧ G.tail e ∈ S) := by sorry

end ChinesePostman.Mixed
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), p. 120, §7 (existence criterion for the mixed postman problem); postman tour defined p. 119
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