Lemma 8 — (corrected: added arcs are loopless)
ProvedDirectedHamiltonicity.Main.lemma8Let be a loopless directed multigraph on a finite vertex set with distinct vertices , no arc entering and no arc leaving , and let . Put
Let be any finite set of additional arcs leaving , each with head different from , and extend arbitrarily to . For let be obtained from by deleting the arcs leaving vertices of and adding . Then
The correction excludes added loops : with them the printed statement is false. Take , with label and with label ; every assumption holds, and , but the only term is over . The algorithm adds only arcs with , so Proposition 4 and Theorem 1 are unaffected. The lemma lets random added arcs make most of the determinants vanish.
Differences from the source:
- correction: A is any set of additional arcs leaving t → every added arc has tail t and head different from t; reason: with an added loop t→t the statement is false: V = {s,t}, H = {s→t} labelled 1, A = {t→t} labelled 1 gives h = 1 but the only term X = ∅ is det[1+1] = 0 over F₂[y] (checked sorry-free in Solutions/verification/DirectedHamiltonicity_Main_Checks.lean)
- generalization: p(e) = y^{w(e)} on the arcs of H, with parallel arcs of H carrying distinct weights (§4.1 normalization) → arbitrary labels p : E(H) → F₂[y] and no assumption on parallel arcs; reason: the source case is p = y^w on a normalized H; the inclusion–exclusion identity holds for any labels
- encoding: H after the normalization of §4.1 (no loops, no arcs entering s, no arcs leaving t), s ≠ t → hypotheses hloop, hs, ht, hst; reason: the standing assumptions of the section written as binders
import Mathlib import Definitions.Def_DirectedHamiltonicity_Main_DetSum
namespace DirectedHamiltonicity.Main
open Multidigraph
open Polynomial
open Classical in
/-- Lemma 8, PDF p.9 / printed p.8 (corrected: the added arcs are not loops). Let `H` be a loopless
directed multigraph with distinct vertices `s, t`, no arc entering `s` and no arc leaving `t`, with
labels `p : E(H) → 𝔽₂[y]`, and let `h(y) = ∑_{P ∈ 𝒫_{s,t}(H)} ∏_{e ∈ P} p(e)`. Let `A` be any finite
set of additional arcs leaving `t`, each with head different from `t`, with arbitrary labels
`p_A : A → 𝔽₂[y]`. For `X ⊆ I = V ∖ {s,t}` let `H_X^A` be `H_X` (delete the arcs leaving `I ∖ X`)
together with `A`. Then `h(y) = ∑_{X ⊆ I} det L_s(H_X^A, p)`. -/
theorem lemma8 {V E EA : Type} [Fintype V] [DecidableEq V] [Fintype E] [DecidableEq E]
[Fintype EA] [DecidableEq EA]
(H : Multidigraph V E) (s t : V) (hst : s ≠ t) (hloop : H.Loopless)
(hs : ∀ e, H.head e ≠ s) (ht : ∀ e, H.tail e ≠ t) (p : E → (ZMod 2)[X])
(A : Multidigraph V EA) (hAt : ∀ a, A.tail a = t) (hAloop : ∀ a, A.head a ≠ t)
(pA : EA → (ZMod 2)[X]) :
H.hamPathPoly p s t =
∑ X : Finset (Internal s t),
(((H.subX s t X).addArcs A).reducedLaplacian (Sum.elim (fun e => p e.1) pA) s).det := by sorry
end DirectedHamiltonicity.Main
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.