Incidence parity from exact dart words #
A duplicate-free word listing precisely one vertex's indexed darts computes its existing incidence parity. Repeated edge records and the two ends of a loop remain separate darts.
theorem Cslib.Complexity.Graph.vertexParity_eq_sum_word {G : Graph} (x : Fin G.edges.length → Bool) (v : ℕ) (word : List G.Dart) (hn : word.Nodup) (hw : ∀ (d : G.Dart), d ∈ word ↔ d.vertex = v) :
Compute actual incidence parity from any exact duplicate-free vertex word. Empty words compute zero, including undeclared or isolated names.