TITLE: How to understand Chern-Simons action
QUESTION [24 upvotes]: Hi all. The question I have should be a rather simple one, but I just can't think it through.
So the Chern-Simons action reads
\begin{equation}
S = \int_M {\rm tr} (A\wedge dA + \frac{2}{3} A\wedge A \wedge A)
\end{equation}
where $M$ is 3-fold, and similarly for higher dimensional manifold.
Now, my question is:
*since $A$, the connection 1-form is only defined patch by patch, what do we really mean by doing the integration? *
It would be understandable if I write
\begin{equation}
S = \int_M {\rm tr} \left[(A-A_0)\wedge d(A-A_0) + \frac{2}{3} (A-A_0)\wedge (A-A_0) \wedge (A-A_0)) \right ]
\end{equation}
where $A_0$ is some reference connection, since $A-A_0$ is globally defined 1-form valued in ${\rm Lie}G$.
I see that under gauge transformation (or different chart),
\begin{equation}
CS(A^g) - CS(A) = d\alpha(A,g) + Q(g)
\end{equation}
where $Q(g)$ is closed. But I don't know how I can infer the validity of doing the integration from this gauge transformation.
Thank you!

REPLY [17 votes]: Here is a mid 1970s  point of view, courtesy of Atiyah-Patodi-Singer.
Suppose  you have a  complex vector bundle $E$   of rank $r$   over   a smooth manifold $M$.   A polynomial  function $P$ on the space of  $r\times r$ matrices is called invariant if $P(T AT^{-1})=P(A)$ for any  $r\times r$ complex matrix  $A$ and any invertible $r\times r$ matrix $T$.   If you look at 
$$ \Delta(x)=\det(1+ xA)=\sum_{k=0}^r c_k(A) x^k, $$
then the coefficient  $c_k(A)$ is a homogeneous invariant polynomial function of degree $k$. For example
$$c_1(A)={\rm tr}\; A,\;\;c_r(A)=\det A. $$
To  a connection $\nabla$ on $E$ with curvature $F(\nabla)$, we can associate the  degree $2k$ form on $E$
$$ c_k(\nabla) = c_k\bigl(\; F(\nabla)\;\bigr), $$
where in the above equality one thinks of $F(\nabla)$ as an $r\times r$-matrix whose entries are $2$-forms.  For example 
$$ c_1(\nabla)= {\rm tr}\; F(\nabla)= F_{11}(\nabla)+\cdots +F_{rr}(\nabla). $$
Chern-Weil theory proves two things:

The form $c_k(\nabla)$ is closed.
If $\nabla^1$, $\nabla^0$ are two  connections on $E$, then there exists  a canonical form  of   degree  $(2k-1)$,  called the transgression form and denoted by $Tc_k(\nabla^1,\nabla^0)$,     which satisfies 

$$ d Tc_k(\nabla^1, \nabla^0)= c_k(\nabla^1)-c_k(\nabla^0). $$
In other words, the cohomology class determined by $c_k(\nabla)$ is independent of $\nabla$. This cohomology class is  the $k$-th Chern class of $E$.
Suppose now that $\dim M= 2k-1$.  Then, on account of dimension, $c_k(\nabla)=0$, yet $Tc_k(\nabla^1,\nabla^0)$  is a   top degree form  well defined for any choices of $\nabla^0,\nabla^1$.
Suppose additionally that $E$ is trivial and we have fixed a trivialization. Then we can choose $\nabla^0$ to be the trivial connection on $E$    and then we set
$$ CS_k(\nabla):= Tc_k(\nabla,\nabla^0). $$
The usual  Chern-Simmons theory is a special case of this construction when $k=2$, i.e., $E$ is a trivial complex vector bundle of rank $r\geq 2$ over a $3$-manifold.