§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
ProvedChinesePostman.Mixed.exists_assignmentLet be a connected, even, symmetric mixed graph. Then directions can be assigned to some of its undirected edges so that the resulting mixed graph , with the same edges and the same ends and with every directed edge of keeping its direction, satisfies:
- is symmetric (considering both directed and assigned edges);
- the directed edges of form a connected spanning subgraph of ;
- the undirected (unassigned) edges of have even degree at every node.
This is the outcome of the paper's assignment algorithm (Steps 0–3, pp. 117–118); then satisfies the hypotheses of the Rule, so the Rule traces out an Euler tour of , which is an Euler tour of .
Formalization Note is a mixed graph on the same edge type; for each edge the unordered pair of ends is unchanged, and every directed edge of is directed in with the same tail and head. An undirected edge of may become directed in (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.
import Mathlib import Definitions.Def_ChinesePostman_Mixed_Setting
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.