Proof of Theorem 5.1, p. 113 — at the stop, every node meeting an untraversed edge is not and its last exit is unused
ProvedChinesePostman.NextNode.last_exit_unused_of_unusedLet , and be as in the previous step, with (i) and (ii). Follow the tour specified by the lists from until it stops, with departures made from each node . Let be the set of nodes incident to untraversed edges: the nodes with an unused entry in , together with the nodes that occur as an unused entry of some list . Then for every
In words, for the edge has not been traversed, since it is the last edge specified by the next-node list, and .
Together with condition (iii) this yields the contradiction that closes the converse of Theorem 5.1.
Formalization Note The conclusion " is unused" is stated as: the list is nonempty and its first entry is also the first entry of the unused part . Untraversed edges are expressed through unused list entries; by (ii), the edges between and correspond to the entries in and in .
import Mathlib import Definitions.Def_ChinesePostman_NextNode_Setting
namespace ChinesePostman.NextNode
/-- Proof of Theorem 5.1, p. 113 (converse, second step): under (i) and (ii), when the traversal
from `r` stops, every node `n` incident to an untraversed edge (an unused entry of `L n`, or an
unused occurrence of `n` in some list `L m`) is different from `r`, and its last exit `L_n(1)` is
still unused. -/
theorem last_exit_unused_of_unused {V E : Type} [Fintype V] [DecidableEq V] [Fintype E]
(G : Graph V E) (r : V) (L : V → List V) (h1 : CondI G L) (h2 : CondII G L) (n : V)
(hn : unused L (follow L r).2 n ≠ [] ∨ ∃ m, n ∈ unused L (follow L r).2 m) :
n ≠ r ∧ ∃ m, (L n).head? = some m ∧ (unused L (follow L r).2 n).head? = some m := by sorry
end ChinesePostman.NextNode
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.