§7, p. 120 — a connected mixed graph has a postman tour iff no proper node set has all its boundary edges directed outward
ProvedChinesePostman.Mixed.postman_tour_exists_iffLet be a connected mixed graph. A postman tour of is a tour using every edge at least once, every directed edge in its direction. Then
such that every edge meeting one node in and one node not in is directed away from the node in .
This is the existence criterion of the mixed postman problem; the condition is the obstruction to traversing an edge leaving 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 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.
import Mathlib import Definitions.Def_ChinesePostman_Mixed_Setting
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
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.