Let $G$ be a Lie group with [Lie algebra](/page/Lie%20Algebra) $\mathfrak g$, let $\pi:Q\to M$ be a smooth principal $G$-bundle over a smooth manifold $M$, and let $k\ge 1$. Let $P\in I^k(\mathfrak g)$ be an $\operatorname{Ad}$-invariant symmetric $k$-linear form on $\mathfrak g$, extended fiberwise to $\operatorname{ad}Q$-valued differential forms by the standard Chern-Weil wedge-product convention. Let $(A_t)_{t\in[0,1]}$ be a smooth path of principal connections on $Q$. For each $t\in[0,1]$, let $F_{A_t}\in\Omega^2(M;\operatorname{ad}Q)$ denote the curvature of $A_t$, and let