Let π:QM\pi:Q\to M be a , let ω0,ω1\omega_0,\omega_1 be with curvatures Ω0,Ω1\Omega_0,\Omega_1, and let pp be an Ad\operatorname{Ad}-invariant real- or complex-valued homogeneous polynomial of degree k1k\ge1 on g\mathfrak g.

Set η=ω1ω0\eta=\omega_1-\omega_0 and ωt=ω0+tη\omega_t=\omega_0+t\eta, and let Ωt\Omega_t be the curvature of ωt\omega_t. Then

dCSp(ω0,ω1)=cwp(ω1)cwp(ω0),d\,\mathrm{CS}_p(\omega_0,\omega_1) =\operatorname{cw}_p(\omega_1)-\operatorname{cw}_p(\omega_0),

where

πCSp(ω0,ω1)=k01p(η,Ωt,,Ωt)dt.\pi^*\mathrm{CS}_p(\omega_0,\omega_1) =k\int_0^1p(\eta,\Omega_t,\dots,\Omega_t)\,dt.

Here CSp\mathrm{CS}_p is the ; the displayed basic form on QQ specifies its pullback uniquely. The symmetric polarization of pp is evaluated on one 11-form and k1k-1 curvature 22-forms. Consequently, the de Rham class of cwp(ω)\operatorname{cw}_p(\omega) is independent of ω\omega.

Examples
  1. Degree 1 (abelian case). For k=1k=1 and P(X)=XP(X)=X (e.g. G=U(1)G=U(1)), cwP(ω)\operatorname{cw}_P(\omega) is just the curvature 22-form on the base, and the formula becomes cwP(ω1)cwP(ω0)=d(A1A0)\operatorname{cw}_P(\omega_1)-\operatorname{cw}_P(\omega_0)=d(A_1-A_0) in a local gauge.
  2. Degree 2 (classical 3D Chern–Simons). For a matrix group and P(X)=tr(X2)P(X)=\mathrm{tr}(X^2), the transgression from the product flat reference connection (local potential zero) to the connection with local potential AA gives the usual 33-form on a trivialization:
    CS(A)=tr ⁣(AdA+23AAA),\mathrm{CS}(A)=\mathrm{tr}\!\left(A\wedge dA+\tfrac23 A\wedge A\wedge A\right),
    whose exterior derivative is tr(FF)\mathrm{tr}(F\wedge F).
  3. Gauge-equivalent connections. If ω1\omega_1 is obtained from ω0\omega_0 by a gauge transformation, then cwP(ω1)cwP(ω0)\operatorname{cw}_P(\omega_1)-\operatorname{cw}_P(\omega_0) is exact; the theorem produces an explicit primitive.
References
  1. Hessel Posthuma, Notes on Chern–Simons Theory, §1.2, Theorem 1.10 and equation (1.3), p. 4. Author-hosted notes.