If the vertex set is empty, the field space is zero-dimensional,
both determinants are \(1\), and the closed-walk condition is vacuous.
Assume henceforth that the vertex set is nonempty. Write \(D\) for the
positive multiplication operator on scalar functions with
\[D_v=m^2+\sum _e w_e\bigl (\mathbf 1_{s(e)=v}+\mathbf 1_{h(e)=v}\bigr ).\]
Each self-loop contributes twice to this sum. The quadratic form in the
connection background expands as
\(\langle f,Q_Uf\rangle =\sum _v D_v\|f_v\|^2-\sum _e 2w_e\operatorname {Re}\langle f(h(e)),U_ef(s(e))\rangle \).
Expanding \(\|U_ef(s(e))-f(h(e))\|^2\) gives the same form,
\[\langle f,Q_Uf\rangle =\sum _v m^2\|f_v\|^2+\sum _e w_e\|U_ef(s(e))-f(h(e))\|^2,\]
because \(D_v\) contributes the mass and one weight for each end of an
incident edge, and a self-loop is counted at both ends. Parallel edges
retain separate summands. For the identity connection every transport is the identity, so the
form is the scalar form of \(Q_1\) on each vector of an orthonormal
basis of \(F\). Thus \(Q_I=Q_1\otimes \mathbb {I}_F\) and
\((\det Q_1)^r=\det Q_I\).
The comparison is the following claim, applied with every mass equal
to \(m\). Let each vertex \(v\) carry a mass \(m_v>0\), and allow loops
and parallel edges. For unitary or orthogonal fiber maps \(U_e\),
\[\langle f,Qf\rangle =\sum _v m_v^2\|f_v\|^2+\sum _e w_e\|U_ef(s(e))-f(h(e))\|^2,\]
and let \(Q_1\) be the same expression on scalar functions with every
transport equal to \(1\). Then \(\det Q\ge (\det Q_1)^r\), with equality
if and only if every closed walk acts as the identity on \(F\).
Parallel transport along \(e\) sends a vector at the source to \(U_e\)
times that vector at the head. A walk acts by the ordered product,
with the first edge on the right.
If \(A\) is self-adjoint and positive definite and \(P\) is
self-adjoint and positive semidefinite, then, with respect to
the inner product \(\langle u,Av\rangle \), the operator \(A^{-1}P\)
is self-adjoint. It is therefore diagonalizable over the scalar
field of \(F\), with finitely many nonnegative eigenvalues. Thus
\(\det (A+P)=\det (A)\prod (1+\lambda )\), and
\(\det (A+P)\ge \det (A)\), with equality exactly when \(P=0\).
Proceed by induction on the number of vertices. The empty graph has
both determinants equal to \(1\). A self-loop at \(v\) contributes
\(w_e\|(U_e-\mathbb {I})f_v\|^2\). The sum \(P\) of those terms vanishes if and
only if every loop transport is the identity, because each weight is
positive. A scalar loop contributes \(0\), so removing the loops does
not change \(Q_1\). Thus \(\det Q\ge \det Q^\circ \), where \(Q^\circ \) is
the loopless operator, with equality exactly when every loop acts as
the identity. Deleting an identity loop from a closed walk does not
change the holonomy. The claim on the original graph is therefore the
claim on \(Q^\circ \).
If a vertex \(v\) meets no edge, its block is \(m_v^2\mathbb {I}_F\). The
determinant factors as \(m_v^{2r}\) times the determinant on the
remaining vertices, and \(Q_1\) contributes the factor \(m_v^2\). No
closed walk meets \(v\). The inductive hypothesis gives the claim.
Suppose \(v\) meets at least one edge, and write
\(\beta =m_v^2+\sum _{e\ni v}w_e\). The diagonal block at \(v\) is
\(\beta \mathbb {I}_F\). Each incident edge contributes \(w_e\|f_v\|^2\), and
the cross terms lie off that block. Order the remaining vertices
before \(v\), and write \(M\) for the remaining block and \(B\) for the
cross block. Then
\[Q^\circ =
\begin {pmatrix}\mathbb {I}&\beta ^{-1}B\\0&\mathbb {I}\end {pmatrix}
\begin {pmatrix}S&0\\0&\beta \mathbb {I}_F\end {pmatrix}
\begin {pmatrix}\mathbb {I}&0\\\beta ^{-1}B^{\dagger }&\mathbb {I}\end {pmatrix},\]
with \(S=M-\beta ^{-1}BB^{\dagger }\). The outer factors are unipotent, so
\(\det Q^\circ =\beta ^r\det S\). The same calculation on scalars gives
\(\det Q_1=\beta \det S_1\).
For each edge \(e\) incident to \(v\), let \(u(e)\) be the other end
and let \(R_e\) be the unitary or orthogonal map in
\(w_e\|R_ef_{u(e)}-f_v\|^2\). Thus \(R_e=U_e\) when \(e\) points toward
\(v\), and \(R_e=U_e^{\dagger }\) when \(e\) points away from \(v\). Edges
that do not meet \(v\), and the original masses on the remaining
vertices, stay as they are. Completing the square in \(f_v\) subtracts
\(\beta ^{-1}\|\sum _e w_e R_ef_{u(e)}\|^2\). Write \(g_e=R_ef_{u(e)}\).
Polarization expands the subtracted square as
\[\Bigl \|\sum _e w_e g_e\Bigr \|^2
=\sum _e w_e^2\|g_e\|^2
+\sum _{e<e'}w_ew_{e'}
\bigl (\|g_e\|^2+\|g_{e'}\|^2-\|g_e-g_{e'}\|^2\bigr ).\]
After the diagonal pair terms are moved, the coefficient of
\(\|g_e\|^2\) is \(w_e-\beta ^{-1}w_e\sum _{e'}w_{e'}\). This equals
\(w_em_v^2/\beta \), because \(m_v^2+\sum _{e'}w_{e'}=\beta \). Since
\(R_e\) preserves the norm, the same coefficient multiplies
\(\|f_{u(e)}\|^2\). Therefore
\[\sum _e w_e\|f_{u(e)}\|^2
-\beta ^{-1}\Bigl \|\sum _e w_e R_ef_{u(e)}\Bigr \|^2
=\tfrac {m_v^2}{\beta }\sum _e w_e\|f_{u(e)}\|^2
+\tfrac 1\beta \sum _{e<e'}w_ew_{e'}
\|R_ef_{u(e)}-R_{e'}f_{u(e')}\|^2.\]
The first sum adds \((m_v^2/\beta )w_e\) to the mass squared at
\(u(e)\), so every corrected mass stays positive. If
\(u(e)\neq u(e')\), the pair is an edge from \(u(e)\) to \(u(e')\)
of weight \(w_ew_{e'}/\beta \) and transport \(R_{e'}^{\dagger }R_e\);
its full squared norm includes both diagonal weights. If
\(u(e)=u(e')\), the pair is a positive semidefinite term of that
weight, and it vanishes for every vector exactly when
\(R_e=R_{e'}\). The corrected masses, the edges that miss \(v\), and
the edges between distinct outer ends define \(Q^\sharp \). The
same-end pairs are the remainder \(P\), so \(S=Q^\sharp +P\). Hence
\(\det S\ge \det Q^\sharp \), with equality exactly when \(P=0\), that
is, when every two edges from \(v\) to the same neighbor have the
same transport. For the scalar identity every same-end pair
vanishes and every new transport is \(1\), so \(S_1\) is the scalar
form \(Q^\sharp _1\) of \(Q^\sharp \).
The operator \(Q^\sharp \) has fewer vertices, positive weights, and
a positive mass at each remaining vertex, so it is positive definite.
By induction, \(\det Q^\sharp \ge (\det Q^\sharp _1)^r\), with equality
exactly when every closed walk of \(Q^\sharp \) acts as the identity.
Therefore
\(\det Q^\circ =\beta ^r\det S\ge \beta ^r(\det Q^\sharp _1)^r=(\det Q_1)^r\).
Equality holds for \(Q^\circ \) exactly when every repeated pair at
\(v\) has one transport and every closed walk of \(Q^\sharp \) acts as
the identity. Together with the removal of loops, equality holds for
\(Q\) exactly when every loop transport is the identity as well.
A walk that enters \(v\) on \(e\) and leaves on \(e'\) has transport
\(R_{e'}^{\dagger }R_e\). Between distinct outer ends, that is the
transport of the effective edge. At one outer end and with \(P=0\),
the transport is the identity and those two edges contribute no new
edge. Suppose every closed walk of the original graph acts as the
identity. Then every loop transport is the identity and every
repeated pair at \(v\) has one transport. Replacing each effective
edge in a closed walk of \(Q^\sharp \) by those two edges produces a
closed walk of the original graph with the same holonomy, so every
closed walk of \(Q^\sharp \) acts as the identity. Conversely, suppose
every loop transport is the identity, every repeated pair at \(v\)
has one transport, and every closed walk of \(Q^\sharp \) acts as the
identity. In an original closed walk, replace each entrance to
\(v\) and the following exit by the effective edge, or delete the
pair when it is an identity return. The result is a closed walk of
\(Q^\sharp \) with the same holonomy, so the original walk acts as
the identity. Thus these conditions hold if and only if every closed
walk of the original graph acts as the identity. This is the claim.
Equality in the theorem says that every closed walk acts as the
identity on \(F\). These connections are exactly the identity orbit in
the represented gauge group. Choose a root in each connected component
and propagate \(\rho (U)\) along any walk from that root. The product is
independent of the walk because every closed walk acts as the identity.
The resulting vertex operators \(g_v\) satisfy
\(U_e=g_{h(e)}g_{s(e)}^{-1}\). In the other direction, a gauge transform
of the identity has determinant \(\det Q_I\) by the covariance already
cited. A holonomy in the kernel of \(\rho \) is invisible to \(Q_U\):
equality sees the action on \(F\), not a finer group element.