Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§6, p. 118 — directions can be assigned to undirected edges so that the graph stays symmetric, the directed edges span and connect, and the rest stays even

Proved
ChinesePostman.Mixed.exists_assignment

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

mixed-graphorientationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1symmetric-digraph

Let GGG be a connected, even, symmetric mixed graph. Then directions can be assigned to some of its undirected edges so that the resulting mixed graph G′G'G′, with the same edges and the same ends and with every directed edge of GGG keeping its direction, satisfies:

  1. G′G'G′ is symmetric (considering both directed and assigned edges);
  2. the directed edges of G′G'G′ form a connected spanning subgraph of GGG;
  3. the undirected (unassigned) edges of G′G'G′ have even degree at every node.
G connected, even, symmetric  ⟹  ∃ G′ as above.G \text{ connected, even, symmetric} \;\Longrightarrow\; \exists\, G' \text{ as above.}G connected, even, symmetric⟹∃G′ as above.

This is the outcome of the paper's assignment algorithm (Steps 0–3, pp. 117–118); G′G'G′ then satisfies the hypotheses of the Rule, so the Rule traces out an Euler tour of G′G'G′, which is an Euler tour of GGG.

Formalization Note G′G'G′ is a mixed graph on the same edge type; for each edge the unordered pair of ends is unchanged, and every directed edge of GGG is directed in G′G'G′ with the same tail and head. An undirected edge of GGG may become directed in G′G'G′ (assigned) in either direction, or stay undirected. The paper's "spanning subgraph" is stated as connectivity through directed edges, which is what the Rule uses.

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

/-- §6, p. 118, the outcome of the assignment algorithm: a connected, even, symmetric mixed graph
`G` admits an assignment of directions to some of its undirected edges, giving a mixed graph `G'`
with the same edges and ends in which every directed edge of `G` keeps its direction, such that
`G'` is symmetric, its directed edges form a connected spanning subgraph, and its undirected edges
have even degree at every node. -/
theorem exists_assignment {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
    [DecidableEq E] (G : MixedGraph V E) (hconn : G.Connected) (heven : G.IsEven)
    (hsym : G.IsSymmetric) :
    ∃ G' : MixedGraph V E,
      (∀ e, s(G'.tail e, G'.head e) = s(G.tail e, G.head e)) ∧
      (∀ e, G.directed e = true →
        G'.directed e = true ∧ G'.tail e = G.tail e ∧ G'.head e = G.head e) ∧
      G'.IsSymmetric ∧ G'.DirectedConnected ∧ (∀ n, Even (G'.undirDeg n)) := by sorry

end ChinesePostman.Mixed
Source
Edmonds and Johnson, Matching, Euler tours and the Chinese postman, Math. Programming 5 (1973), p. 118, §6 ('At termination, every node is still symmetric …'; Steps 0–3 on pp. 117–118)
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