Step 1: probability and weight. By
the edge-weight identity,
Pr[e]=(∏j(1−pj))e−w(e) with w(e)=∑jwjej. It
therefore suffices to show that min{w(e):He=s}=minMω(M) and that
the stated construction attains it.
Step 2: explanations are edge sets with prescribed odd vertices. Regard
e∈F2N as a set of edges of G. Because an edge flips exactly the detectors at
its ends, (He)i is the parity of the number of edges of e at detector i. So
He=s holds exactly when the detectors of odd degree in e are the elements of D.
The degree of b is unconstrained.
Step 3: a lemma on trails. Let F be a finite set of edges and T the set of
vertices of odd degree in F. Then F is the disjoint union of ∣T∣/2 trails
whose end points pair up the vertices of T, together with closed trails. Indeed, if
T=∅ pick u∈T and follow unused edges of F from u for as long as
possible. Each visit to an intermediate vertex uses two of its edges, so the walk can
only stop at a vertex with an odd number of unused edges other than u, that is, at
some v∈T∖{u}. Removing the trail leaves an edge set whose odd
vertices are T∖{u,v}, and one repeats. When no odd vertex is left every
degree is even and the remaining edges split into closed trails.
Step 4: from an explanation to a matching. Let e be an explanation of s of
minimum weight. Replace b by dege(b) copies, each incident to one edge of e;
the odd vertices are now D and these copies. By Step 3, e splits into trails
pairing them, plus closed trails. A closed trail, or a trail joining two copies of
b, has even degree at every detector, so deleting it gives another explanation of
strictly smaller weight, since all weights are positive. Minimality excludes this.
Hence e is a disjoint union of trails, each joining two events u,v∈D or an
event u to b. Match u with v in the first case and u with bu in the
second, and match the unused copies bu among themselves at weight 0; their number is
even because the number of events paired with each other is even. This is a perfect
matching M with ω(M)≤w(e), because a trail from u to v weighs at least
d(u,v). So minMω(M)≤minew(e).
Step 5: from a matching to an explanation. Let M be a perfect matching of KD.
For each pair {u,v}⊆D take a lightest path in G from u to v, and
for each pair {u,bu} a lightest path from u to b. Let e be the sum modulo 2
of these paths. A path has odd degree exactly at its two ends, so the detectors of odd
degree in e are exactly the elements of D, each of which is the end of exactly one
path. By Step 2, He=s. Edges cancelled in the sum only lower the weight, so
w(e)≤ω(M), and minew(e)≤minMω(M).
Steps 4 and 5 give equality, and Step 5 applied to a minimum-weight matching produces
an explanation of minimum weight, which by Step 1 is a most likely error. ■