\section{Introduction\label{Intro}}

\noindent
This paper is devoted to a survey of some topics in the mathematical
formulation of generalized abelian gauge theories as they arise in
string theory and M-theory. It has been realised
that the proper mathematical treatment of the quantization of such
systems involves techniques from generalized differential cohomology
theories, and this has sparked a wealth of activity in both physics
and mathematics in recent years, as well as intensive interactions
between the two disciplines. Our presentation is neither complete nor
is it exhaustive in the treatment of topics we have chosen to
cover. Instead, we broadly overview various topics, presenting some
aspects with a different emphasis compared to other treatments of the
subject, and also elucidate
certain calculational details which are probably well-known to the
experts but which we have not found in the
literature. Our presentation is intentionally mathematical but with
all motivations, discussions and prejudices towards certain features
inspired by physical considerations from string theory; we have
attempted to define all pertinent mathematical concepts for the
non-experts whilst describing physical concepts more formally.

Before describing the precise contents of this article, let us explain the
general setting we shall consider and which important omissions the
reader can anticipate in the following sections. The different theories we are
interested in all have the same low-energy limit, which is ten-dimensional
supergravity defined on a manifold $M$; we can generalize $M$ to
include groupoids which enables us to formulate the theory on e.g. orbifolds. The relevant field content includes a riemannian metric $g$, a
dilaton field $\phi:M\to\mathbb{R}$, a closed three-form $H$, and the
Ramond--Ramond gauge fields $F$ which are inhomogeneous differential forms on
$M$ that are $H$-twisted closed, i.e. $({\rm d}+H\wedge)F=0$. The relevant
string theories are quantized by certain generalized differential
cohomology theories $\check\E{}^\bullet(M)$ depending on the physical
constraints imposed, which gives a suitable lattice in de~Rham
cohomology $\RH^\bullet(M;\mathbb{R})$ where the fields should live in order
to enforce charge quantization; in this paper these
theories will always be certain smooth refinements of ordinary
cohomology and K-theory. Examples of theories with the correct
low-energy limit include bosonic string theory which is
quantized by ordinary differential cohomology
$\check\RH{}^3(M)$, heterotic string theory where $H$ is not closed
and which is thereby described by differential cochains, and
Type~I string theory which involves self-dual fields that are quantized by
differential KO-theory $\check{\rm KO}(M)$. For Type~II superstring
theory, the quantization of the $B$-field is somewhat more involved and
has been studied thoroughly in~\cite{DFM,DFM2}; the issue is to
reconcile the worldsheet and target space descriptions of the $B$-field,
which also serves as a differential twisting of K-theory in which the
suitable refinements of the Ramond--Ramond fields $F$ to classes or
cocycles should live. This latter construction includes Type~I string
theory as a special case of the Type~II theory via an orientifold construction.
Various generalizations of this theme can also be considered: For
instance in
Kaluza--Klein compactifications one sets $M=X\times K$ with $K$ a compact
``internal'' manifold and regards the gauge fields as forms $F\in\Omega^\bullet(X;{\tt
  harm}^\bullet(K))$ where ${\tt harm}^\bullet(K)$ is the vector space of harmonic
forms on $K$, while if $M$ is unoriented then the dual gauge fields
live in $\Omega^\bullet(M;{\tt or}(M))$ where ${\tt or}(M)$ is the
orientation bundle of $M$. With this setting in mind, we can now spell out a few of our main
omissions of topics.

Firstly, we do not discuss in detail the appearence or role of
anomalies, which are a physical driving force for the uses of K-theory
in string theory and should be properly addressed within some
framework of categorified index theory; see~\cite{Freed:2000ta,Freed:2000tt,Freed:2004yc}
for extensive discussions on the importance of generalized
differential cohomology theories in this context.

Secondly, we do not
consider twistings of our cohomology theories. The ingredients of
twisted generalized differential cohomology theories are described
in~\cite{Kahle}. Twisted differential K-theory is defined in~\cite{Carey}
using the twisting groupoid of abelian bundle gerbes with
2-connection; this construction is then based on sections of bundles
of Fredholm operators.

Finally, we do not consider orbifolds. They represent a broad class of consistent
string backgrounds with rich interesting features for
which equivariant geometric versions of K-theory seem to have the
appropriate features; here one should use the suggestion~\cite{Sharpe} that string orbifolds are best regarded as
quotient stacks, at least from the perspective of the
worldsheet sigma-model. Differential equivariant complex
K-theory is developed in~\cite{SV,Ortiz,bunke-20092}, while an account of orbifold Ramond--Ramond fields in the path integral
framework and with more general backgrounds can be found
in~\cite{DFM,DFM2}. The original model of~\cite{SV} is defined
using classifying spaces for equivariant K-theory and Bredon cohomology with coefficients in
the real representation ring of the orbifold group; this
approach nicely captures salient features of Ramond--Ramond fields on
Type~II orbifolds, such as flux quantization. The subsequent
construction of~\cite{Ortiz} is rooted in homotopy theory and utilizes
delocalized de~Rham equivariant cohomology; in this approach a ring
structure and push-forwards are readily constructed by taking
real-valued forms as fixed points of a suitable real
structure. Finally, the model of~\cite{bunke-20092} is set in the framework of equivariant local index theory
and differentiable \'etale stacks, and uses delocalized de~Rham
cohomology; this approach is powerful enough to construct all necessary
ingredients in gauge theory such as products, push-forwards, an intersection pairing,
and an $\mathbb{R}$-valued subfunctor, at the price of using broad
classes of cocycles (geometric families of Dirac operators), some of
which have no immediate physical interpretation in terms of
Ramond--Ramond gauge theory.

The outline of the remainder of this paper, together with directions
for complementary reading, is as follows.

In \S\ref{Abgauge}, we start from the Maxwell gauge theory of
electromagnetism and generalize it to higher abelian gauge
theories. We explain how Dirac charge quantization is naturally rooted
in a description involving Cheeger--Simons cohomology; foundational
aspects of this line of reasoning can be found in~\cite{Freed:2000ta},
while a more
pedagogical introduction geared at physicists
is~\cite{Freed:2006yc}. We also describe the configuration space of
abelian gauge fields in details, and how to properly incorporate
currents. Gauge fields are
modelled by groupoids, and equivalent groupoids are equally good for
the purposes of defining the functional integral of the quantum gauge
theory; we explore one such model which is contained in the seminal
paper~\cite{Hopkins:2002rd}. A complementary review can be found
in~\cite{Valentino:2008xd}, while more detailed mathematical aspects of
differential cohomology are reviewed in~\cite{Bunke-rev}.

In \S\ref{RRfields}, we begin by briefly reviewing the relationship
between D-branes and K-theory: We introduce the notion of D-brane, describe
D-branes as K-cycles for geometric K-homology, explain the physical
relevance of the Atiyah--Bott--Shapiro
construction, and give the formula for D-brane charges. This leads us
into the notion of Ramond--Ramond charges and how they are related to the
semi-classical quantization of Ramond--Ramond fields in Type~II
superstring theory. We survey various models for
differential K-theory from a physical perspective, describe the mathematical properties of flat
Ramond--Ramond fields, and formulate the gauge theory of
Ramond--Ramond fields, focusing in particular on their realization as
self-dual fields and the use of differential K-theory in the
description of their holonomies on D-branes. A review of certain
aspects of D-branes and K-theory from a mathematical perspective can be found
in~\cite{Szabo:2008hx}, while various aspects of differential K-theory in string
theory is presented in~\cite{Freed:2002qp}. A mathematical survey of differential K-theory
is found in~\cite{Bunke:2010mq}.

Finally, in \S\ref{HamQuant} we begin with a quick overview of the
mathematical formulation of functional integral quantization of
generalized abelian gauge theories, together with many explicit examples. We
then consider in some detail the hamiltonian quantization of self-dual generalized
abelian gauge fields using the concept of Pontrjagin self-duality. We
apply this formalism to the quantization of
Ramond--Ramond fields, through the theory of Heisenberg groups and their
representations; the seminal work on this approach to quantization is~\cite{Freed:2006ya}. We work only
with the simplest backgrounds that contain no $H$-flux or D-branes, and
explicitly carry out the hamiltonian quantization of the
Ramond--Ramond gauge theory by constructing the pertinent Heisenberg
groups along the lines of~\cite{Freed:2006ya}. By choosing the natural
polarization on the configuration space of the self-dual
Ramond--Ramond gauge theory, the Heisenberg group admits a unique
irreducible unitary representation which is identified as the quantum
Hilbert space of the gauge theory.

\bigskip

\section{Abelian gauge theory and differential cohomology
  \label{Abgauge}}

\subsection{Maxwell theory}

In undergraduate physics courses on classical electromagnetic theory
one learns about perhaps the most fundamental set of equations in
physics, the Maxwell equations; these equations govern all classical
electromagnetic phenomena and are responsible for much of modern
technology. In this section we begin with a mathematical
introduction to the classical Maxwell theory.

Let $M=\mathbb{R}\times N$ be a four-manifold with lorentzian signature
metric ${\rm d} t\otimes {\rm d} t-g$, where $t\in\mathbb{R}$ parametrizes the
``time'' direction and $(N,g)$ is a connected riemannian
three-manifold which we will think of as ``space''. Classical
electromagnetism takes place in \emph{Minkowski spacetime} where $N$
is taken to be the vector space $\mathbb{R}^3$.

Introduce a pair of differential forms
\begin{eqnarray*}
F\in\Omega^2(M) \qquad \mbox{and} \qquad j_e\in\Omega_c^3(M) \ ,
\end{eqnarray*}
where the two-form $F$ is called the gauge field strength or flux, while
$j_e$ is a differential form of compact spatial support called the
electric current. Maxwell's equations then read
\begin{equation}
{\rm d} F=0 \qquad \mbox{and} \qquad {\rm d} \star F=j_e \ ,
\label{Maxwelleqs}\end{equation}
where $\star$ is the Hodge duality operator associated to the
lorentzian metric on $M$. Consistency of the second equation in (\ref{Maxwelleqs}) requires the conservation
law
\begin{eqnarray*}
{\rm d} j_e=0 \ ,
\end{eqnarray*}
which defines the electric charge
\begin{eqnarray*}
q_e:=\big[j_e\big|_N\,\big] \ \in \ \RH_c^3(N;\mathbb{R})\cong \mathbb{R} \ .
\end{eqnarray*}

We can generalize the first equation of (\ref{Maxwelleqs}) to include
a magnetic current three-form $j_m$ with
\begin{eqnarray*}
{\rm d} F=j_m \ ,
\end{eqnarray*}
so that ${\rm d} F=0$ outside the support of $j_m$. This defines the
magnetic charge
\begin{eqnarray*}
q_m:=\big[j_m\big|_N\,\big] \ \in \ \RH_c^3(N;\mathbb{R})\cong \mathbb{R} \ .
\end{eqnarray*}
The magnetic current vanishes in the ``classical theory'', but the
``quantum theory'' allows for it; as we discuss below, this leads to the quantization of
electric \emph{and} magnetic charge. Since the two-form $F$ is not
required to have compact support, the charges $q_{e}$ and $q_m$ are non-zero generally; in
fact, they live in the kernel of the natural forgetful map which
forgets about the compact support condition,
\begin{eqnarray*}
q_{e},q_{m} \ \in \ \ker\big(\RH_c^3(N;\mathbb{R}) \ \longrightarrow \ \RH^3(N;\mathbb{R})
\big) \ ,
\end{eqnarray*}
since the currents $j_{e}$ and $j_{m}$ are trivialized by the flux $F$ on the
interior of the three-manifold $N$.

Absence of magnetic charge in the classical theory implies that the
de~Rham cohomology class of the flux is trivial,
\begin{equation}
[F]_{\rm dR}=0 \qquad \mbox{in} \quad \RH^2(M;\mathbb{R}) \ .
\label{FdR0}\end{equation}
Hence there exists a one-form $A\in\Omega^1(M)$ such that
\begin{equation}
F={\rm d} A \ .
\label{FdA}\end{equation}
The \emph{gauge potential} $A$ is only defined up to
gauge transformations $A\mapsto A+\alpha$ by closed differential one-forms
$\alpha\in\Omega_{\rm cl}^1(M)$. If $M$ is contractible (in particular
if $N=\mathbb{R}^3$), then the two conditions (\ref{FdR0}) and (\ref{FdA})
are automatically satisfied and equivalent to each other. In general,
the space of classical electromagnetic fields modulo gauge
transformations is the infinite-dimensional abelian Lie group
\begin{equation}
\mathscr{F}_{\rm class}(M)=\Omega^1(M)\,\big/\, \Omega_{\rm cl}^1(M) \ .
\label{calfclassM}\end{equation}
Alternatively, we can take $A$ to be a connection on a principal
$\mathbb{R}$-bundle over $M$ (with the additive group structure on the real
line $\mathbb{R}$);
the space of such connections is an affine space based on
$\Omega^1(M)/{\rm d} \Omega^0(M)$, and the quotient by gauge equivalence classes
of flat connections is an affine space modelled on~(\ref{calfclassM}). This is the correct configuration space of fields
for classical electromagnetism; as we discuss below, the story is
rather different for the quantum theory.

It is also possible to derive these results from an action
principle. Maxwell's equations (\ref{Maxwelleqs}) in this instance are the variational
equations for the action functional
\begin{equation}
S_M[A]=\int_M\, \Big(-\frac12\, {\rm d} A\wedge\star {\rm d} A+A\wedge j_e\Big)
\label{Maxwellaction}\end{equation}
with respect to compactly supported variations of $A$ such that
$\int_M\, {\rm d}(A\wedge\star F)=0$. Then $S_M[A+\alpha]= S_M[A]$ for
$\alpha\in\Omega^1_{\rm cl}(M)$ up to an exact term $-\int_M\,
{\rm d}(\alpha \wedge \star F)$; in this sense the action functional
(\ref{Maxwellaction}) is classically well-defined on the quotient
space (\ref{calfclassM}).

\subsection{Semi-classical quantization\label{Maxwellsemi}}

If $\RH^2(N;\mathbb{R})$ is non-trivial, we may well have $[F]_{\rm dR}\neq
0$ in $\RH^2(M;\mathbb{R})$, e.g. outside the support of a magnetic current
$j_m$ in $M$. The \emph{Dirac quantization condition} states that the
de~Rham cohomology class of the flux sits in a lattice
\begin{eqnarray*}
\mbox{$\frac1{2\pi}$}\, [F]_{\rm dR} \ \in \ \Lambda\subset\RH^2(M;\mathbb{R}) \ ,
\end{eqnarray*}
where
\begin{eqnarray*}
\Lambda = \RH^2(M;\mathbb{Z}) \, \big/ \, {\sf Tor}\, \RH^2(M;\mathbb{Z})
\end{eqnarray*}
is the full lattice $\RH^2(M;\mathbb{Z})\hookrightarrow \RH^2(M;\mathbb{R})$ induced
in cohomology by the inclusion of abelian groups $\mathbb{Z}\hookrightarrow\mathbb{R}$, whose kernel
consists of torsion classes in $\RH^2(M;\mathbb{Z})$.

Let us pause to briefly explain how this is related to the usual
notion of Dirac charge quantization in physics (see
e.g.~\cite{Freed:2000ta} for further details). Let us take $N=\mathbb{R}^3$,
and the
electric and magnetic currents to be of the form
\begin{eqnarray*}
j_e=q_e\, \delta_W \qquad \mbox{and} \qquad j_m=q_m\,\delta_\mathbb{R} \ ,
\end{eqnarray*}
where $\delta_W={\sf Pd}_M(W)$ is Poincar\'e dual to an oriented
one-manifold $W\subset M$ (the ``worldline'' of a charged particle), while $\delta_\mathbb{R}$ is a distributional
three-form on $M=\mathbb{R}\times\mathbb{R}^3$ dual to the one-manifold
$\mathbb{R}\times0\subset M$. The global obstruction to the local
representation (\ref{FdA}) on $\mathbb{R}\times(\mathbb{R}^3-0)$ is then
\begin{equation}
\int_{S^2}\, F=\int_{B^3}\, {\rm d} F=\int_{B^3}\, q_m\, \delta_\mathbb{R} = q_m \ ,
\label{globalobstr}\end{equation}
where $S^3=\partial B^3$ is the unit sphere in $t\times(\mathbb{R}^3-0)$ for
all $t\in \mathbb{R}$. This obstruction is due to the non-trivial cohomology
$\RH^2(\mathbb{R}^3-0;\mathbb{R})\neq0$ and it may be thought of as originating through
the \emph{Dirac string}, which is a semi-infinite solenoid represented
by a ray from the origin $0\in\mathbb{R}^3$; requiring the string to be
physically invisible then yields the global obstruction
(\ref{globalobstr}). The Dirac quantization law then ensures that in the quantum theory
the exponentiated charge coupling $\exp\big(\,\mathrm{i}\, \int_M\, A\wedge
j_e\big)=\exp\big({\,{\rm i}\,} q_e\, \int_W\, A\big)$ is
well-defined. Since $\int_W\, A\in \mathbb{R}/q_m\, \mathbb{Z}$ by
(\ref{globalobstr}), the coupling is well-defined if
\begin{equation}
q_e\, q_m \ \in \ 2\pi\,\mathbb{Z} \ .
\label{qeqmquant}\end{equation}
In the following we will interpret the quantization condition
(\ref{qeqmquant}) geometrically. The wavefunction of a
non-relativistic quantum mechanical particle of charge $q_e$ on
$\mathbb{R}^3-0$ is a section of a line bundle associated to the
representation
\begin{eqnarray*}
\mathbb{R}\,\big/\, q_m\, \mathbb{Z} \ \longrightarrow \ {{\rm U}(1)} \ , \qquad x \
\longmapsto \ \epsilon^{{\,{\rm i}\,} q_e\, x} \ ,
\end{eqnarray*}
and is therefore well-defined if and only if (\ref{qeqmquant})
holds. In this sense the quantization of charge is a consequence of
the compactness of the gauge group $\mathbb{R}/q_m\, \mathbb{Z}$.

There is an elegant model in differential geometry which combines
locality of the gauge field $F$ with global obstructions, including
Dirac charge quantization. For this, we take $F$ to be the curvature
of a connection $A$ on a principal ${\mathbb T}$-bundle $\pi:L\to M$, ${\mathbb T}=\mathbb{R}/\mathbb{Z}$, with
first Chern class $c_1(L)\in\RH^2(M;\mathbb{Z})$, i.e. $A$ is a
right-invariant one-form on $L$ such that ${\rm d} A=\pi^*F$. Then the
classical configuration space of fields (\ref{calfclassM}) is replaced
by the quantum groupoid of fields $\mathscr{F}_{\rm qu}(M)$. Recall that a \emph{groupoid} is a small category in which all morphisms
(viewed as arrows between objects) are invertible. The objects of the
category $\mathscr{F}_{\rm qu}(M)$ are principal ${\mathbb T}$-bundles with
connection, while its morphisms are connection-preserving bundle
isomorphisms (gauge transformations). It has the structure of an
infinite-dimensional abelian Lie group, with unit the trivial bundle, under tensor product of circle
bundles with connection. The set of isomorphism classes
$\pi_0{\mathscr{F}_{\rm qu}(M)}$ is an infinite-dimensional abelian Lie
group that fits into an exact sequence
\begin{eqnarray*}
0 \ \longrightarrow \ \RH^1(M;{\mathbb T}) \ \longrightarrow \
\pi_0{\mathscr{F}_{\rm qu}(M)} \ \xrightarrow{ \ F \ } \ \mathscr{F}_{\rm
  class}(M) \ \longrightarrow \ 0
\end{eqnarray*}
which describes the quantum configuration space as an extension of the
classical one (\ref{calfclassM}) by gauge equivalence classes of flat
connections; whence such connections are detectable quantum
mechanically, but not classically. Symbolically,
\begin{eqnarray*}
\pi_0{\mathscr{F}_{\rm qu}(M)} = \bigsqcup_{c_1\in\RH^2(M;\mathbb{Z})}\, {\mathcal A}(L_{c_1}) \,
\big/ \, \mathcal{G} \ ,
\end{eqnarray*}
where ${\mathcal A}(L_{c_1})$ is the affine space of smooth connections on a
line bundle of first Chern class $c_1$ while
$\mathcal{G}=\Omega^0(M;{\mathbb T})$ is the gauge group. The group $\RH^1(M;{\mathbb T})$ of flat fields can be
described as follows. The short exact sequence of abelian groups
\begin{equation}
0 \ \longrightarrow \ \mathbb{Z} \ \hookrightarrow \ \mathbb{R} \ \longrightarrow \
{\mathbb T}=\mathbb{R}/\mathbb{Z} \ \longrightarrow \ 0
\label{ZRTseq}\end{equation}
induces a short exact
sequence in cohomology
\begin{eqnarray*}
0 \ \longrightarrow \ \RH^1(M;\mathbb{Z})\otimes{\mathbb T} \ \longrightarrow \
\RH^1(M;{\mathbb T}) \ \xrightarrow{ \ \beta \ } \ {\sf Tor}\, \RH^2(M;\mathbb{Z}) \
\longrightarrow \ 0 \ \,
\end{eqnarray*}
where the group $\RH^1(M;\mathbb{Z})\otimes{\mathbb T}$ is the identity component of
$\RH^1(M;{\mathbb T})$, the torsion subgroup of $\RH^2(M;\mathbb{Z})$ is the group of components of
$\RH^1(M;{\mathbb T})$, and $\beta$ is the Bockstein homomorphism.

Another point of view of the space of quantum fields $\pi_0{\mathscr{F}_{\rm
  qu}(M)}$ is as the group of holonomies
\begin{eqnarray*}
\chi_A \,:\, Z_1(M) \ \longrightarrow \ {{\rm U}(1)} \ , \qquad
\chi_A(\gamma)=\exp\Big( \,\mathrm{i}\, \oint_\gamma\, A \Big) \ ,
\end{eqnarray*}
where $Z_p(M)$ is the group of smooth $p$-cycles on $M$. Such group
homomorphisms are characterized by the feature that there is a unique integral
two-form $F\in 2\pi\, \Omega_\mathbb{Z}^2(M)$ with
\begin{eqnarray*}
\chi_A(\partial D)=\exp\Big(\,\mathrm{i}\, \int_D\, F\Big) \qquad \mbox{for}
\quad D\in C_2(M) \ ,
\end{eqnarray*}
where $\Omega_\mathbb{Z}^p(M)$ is the lattice of closed $p$-forms on $M$ with
integer periods, and $C_p(M)$ denotes the group of smooth $p$-chains on $M$. Then the group $\pi_0{\mathscr{F}_{\rm
  qu}(M)}$ may be characterized by the short exact sequence
\begin{equation}
0 \ \longrightarrow \ \Omega^1(M)\, \big/ \, \Omega^1_\mathbb{Z}(M) \
\longrightarrow \ \pi_0{\mathscr{F}_{\rm
  qu}(M)} \ \xrightarrow{ \ c_1 \ } \ \RH^2(M;\mathbb{Z}) \ \longrightarrow \ 0 \ ,
\label{FquMshort}\end{equation}
where the kernel of the characteristic class map $c_1$
consists of connections on the trivial line bundle over $M$ modulo
gauge equivalence; the quotient in (\ref{FquMshort}) is the group of
topologically trivial one-form fields on $M$. More generally, the
space of quantum fields completes the pullback square
\begin{eqnarray*}
\xymatrix{
\pi_0{\mathscr{F}_{\rm
  qu}(M)} \ \ar[r] \ar[d] & \ \Omega_{\rm cl}^2(M) \ar[d] \\
\RH^2(M;\mathbb{Z}) \ \ar[r] & \ \RH^2(M;\mathbb{R})
}
\end{eqnarray*}
so that $\pi_0{\mathscr{F}_{\rm
  qu}(M)}\subset \RH^2(M;\mathbb{Z})\times \Omega_{\rm cl}^2(M)$; thus a quantum
field is a representative in $\Omega_{\rm cl}^2(M)$ of a first Chern
class $c_1\in\RH^2(M;\mathbb{Z})$
in de~Rham cohomology.

\subsection{Higher abelian gauge theory\label{GAGT}}

There are various generalizations of Maxwell theory motivated
from string theory which use higher degree differential form fields,
for instance the two-form $B$-field of superstring theory, the
three-form $C$-field of M-theory, and other supergravity fields. The
higher Maxwell equations on a lorentzian $n+1$-manifold $M=\mathbb{R}\times N$, with
$N$ a riemannian $n$-manifold, read again
\begin{equation}
{\rm d} F=0 \qquad \mbox{and} \qquad {\rm d}\star F=j_e \ ,
\label{GAGTeom}\end{equation}
but now generally $F\in\Omega^p(M)$ and
$j_e\in\Omega_c^{n-p+2}(M)$ with ${\rm d} j_e=0$. In the absence of electric
current $j_e=0$, the classical flux group is
\begin{eqnarray*}
\big([F]_{\rm dR}\,,\,[\star F]_{\rm dR}\big) \ \in \
\RH^p(M;\mathbb{R})\oplus \RH^{n-p+1}(M;\mathbb{R}) \ ,
\end{eqnarray*}
which possesses ``electric-magnetic duality'' interchanging
(magnetic) $p$-forms with (electric) $n-p+1$-forms. On the other hand, the group of
classical electric charges is
\begin{eqnarray*}
\big[j_e\big|_N\,\big] \ \in \ Q_e:= \ker\big(\RH^{n-p+2}_c(N;\mathbb{R}) \ \longrightarrow \ \RH^{n-p+2}(N;\mathbb{R})
\big) \ .
\end{eqnarray*}
From the exact sequence
\begin{eqnarray*}
\RH^{n-p+1}(M;\mathbb{R}) & \xrightarrow{ \ i^* \ } &
\RH^{n-p+1}\big(M-{\rm supp}(j_e)\,;\,\mathbb{R}\big) \ \longrightarrow \\ &
\longrightarrow &
\RH^{n-p+1}\big(M\,,\, M-{\rm supp}(j_e)\,;\,\mathbb{R}\big) \ \xrightarrow{
  \ \delta \ } \ \RH^{n-p+2}(M;\mathbb{R})
\end{eqnarray*}
one identifies the charge group as
\begin{eqnarray*}
Q_e\cong \RH^{n-p+1}\big(M-{\rm supp}(j_e)\,;\,\mathbb{R}\big)\, \big/\,
\RH^{n-p+1}(M;\mathbb{R}) \ .
\end{eqnarray*}
We interpret this as the group of ``charges measured by the flux at
infinity'', which are given by integrating the form $\star F$
over a gaussian sphere $S_\infty^{n-p+1}$.

Again these equations can be obtained from
  a variational principle for the action functional
\begin{equation}
S_M[A]:= \int_M\, \Big(-\frac12\, F\wedge\star F+A\wedge j_e\Big) \ ,
\label{GAGTaction}\end{equation}
where $F={\rm d} A$. Since the current form $j_e$ is closed and
compactly supported on $M$, by Poincar\'e duality there is a dual class in
the real homology $[W_e]:= {\sf Pd}_M(j_e)\in \RH_{p-1}(M;\mathbb{R})$ which is
represented by a compact oriented submanifold $W_e \subset M$ such that
\begin{equation}
\int_M\, a\wedge j_e = -\int_{W_e} \, a\big|_{W_e}
\label{PDint}\end{equation}
for any closed $p-1$-form $a$; if $a$ is not closed, then the
formula (\ref{PDint}) still holds but $j_e$ must be now regarded as a
de~Rham current, i.e. a distributional form
supported on $W_e \subset M$. We think of the $p_e+1$-dimensional
submanifold $W_e$ as the worldvolume of an
``electrically charged $p_e$-brane'' where $p_e=p-2$, with
uniform charge density $q_e=\big[\star j_e\big|_{W_e} \big]
\in\RH^0(W_e;\mathbb{R})$ induced by the current which the electrically
charged brane produces. Alternatively, given $q_e\in\RH^0(W_e;\mathbb{R})$,
the current $[j_e]=i_!(q_e)\in \RH^{n-p+2}(M,M- W_e)$ is the
pushforward of $q_e$ induced by the embedding $i:W_e\hookrightarrow M$.

We can also
introduce a magnetic current $j_m \in\Omega^{p+1}_c(M)$, which modifies
the first equation of motion in (\ref{GAGTeom}) to ${\rm d} F=j_m$, and
the corresponding magnetic $p_m$-brane $W_m\subset M$ with
$p_m=n-p-1$. Then the classical dyonic charge group is
\begin{equation}
\big([j_m]\,,\, [j_e]\big) \ \in \ \RH^{p+1}(M,M- W_m;\mathbb{R})\oplus
\RH^{n-p+2}(M,M- W_e;\mathbb{R})  \ .
\label{classchargegp}\end{equation}
When $p$ is even the lattice of charges is symplectic,
while for $p$ odd the lattice is symmetric.

Everything we said before concerning the semi-classical Maxwell theory
has an analogue for these higher abelian gauge fields. In particular,
Dirac quantization implies the quantization of classical charges and
the quantum charge group is the real image of the lattice
\begin{eqnarray*}
\RH^{p+1}(M,M- W_m;\mathbb{Z}) \ \oplus \
\RH^{n-p+2}(M,M- W_e;\mathbb{Z})
\end{eqnarray*}
in de~Rham cohomology. From this one might expect that the quantum
flux group is the real image of the lattice $\RH^p(M;\mathbb{Z})\oplus
\RH^{n-p+1}(M;\mathbb{Z})$ in de~Rham cohomology, but we shall see that there
are some subtleties with this naive guess.
The proper geometric
interpretation of the quantum theory of higher abelian gauge fields, which is a higher generalization of the description of
electromagnetic fields in terms of line bundles with connection, is
provided by studying isomorphism classes of fields in Cheeger--Simons
differential cohomology~\cite{Alexander:1985aa,Brylinski}.

\begin{definition}
The \emph{$p$-th Cheeger--Simons differential cohomology group} of $M$
is the subgroup
\begin{eqnarray*}
\check\RH{}^p(M)\subset {\sf Hom}_{\mathscr{A}b}\big(Z_{p-1}(M)\,,\, {{\rm U}(1)}\big)
\end{eqnarray*}
in the category $\mathscr{A}b$ of abelian groups consisting of homomorphisms $\chi$, called \emph{differential characters}, such
that there exists a unique closed integral $p$-form
$F_\chi\in 2\pi\, \Omega_\mathbb{Z}^p(M)$, called the \emph{curvature} of the
differential character $\chi$, with
\begin{eqnarray*}
\chi(\partial B) = \exp\Big(\,\mathrm{i}\, \int_B\, F_\chi \Big) \qquad
\mbox{for} \quad B\in C_p(M) \ .
\end{eqnarray*}
\label{CheegerSimonsdef}\end{definition}

In the following we use a multiplicative notation for characters
$\chi$ which are valued in the circle group ${{\rm U}(1)}$, and an additive
notation for their classes $[\check A]$ which are valued in
the abelian Lie algebra ${\mathbb T}=\mathbb{R}/\mathbb{Z}$; when we wish to utilize both
descriptions simultaneously we will also write $\chi_{\check A}$. For reasons that will eventually become clear, the field theories
we are interested in all fall into the following
characterization.

\begin{definition}
A \emph{higher abelian gauge theory} is a field theory on a
smooth manifold $M$ whose (semi-classical) configuration space of
gauge inequivalent field configurations is given by the differential
cohomology group $\check\RH{}^p(M)$ for some $p\in\mathbb{Z}$, and whose
\emph{charge group} is the integer cohomology $\RH^p(M;\mathbb{Z})$.
\end{definition}

\subsubsection*{Properties}

\begin{enumerate}
\item The map $M\mapsto\check\RH{}^p(M)$ is a contravariant functor,
  with $\check\RH{}^p(M)$ an infinite-dimensional abelian Lie group
  whose connected components are labelled by the charge group
 $\pi_0\check\RH{}^p(M)= \RH^p(M;\mathbb{Z})$.
\item There is a \emph{graded ring structure}
  $\check\RH{}^{p_1}(M)\otimes\check\RH{}^{p_2}(M)\to \check\RH{}^{p_1+p_2}(M)$, denoted $\chi_1\smile \chi_2$
  for $\chi_1,\chi_2\in \check\RH{}^\bullet(M)$, and an \emph{integration map}
  $\int^{\check\RH{}}\!\!\!\int_M \, :\check\RH{}^{n+2}(M)\to
  \check\RH{}^1({\rm pt})\cong{\mathbb T}$ where ${\rm pt}$ denotes a one-point space; the existence of this integration
  requires a suitable notion of $\check\RH{}$-orientation on $M$. More
  generally, given an $\check\RH{}$-oriented bundle of manifolds
  $M\hookrightarrow X\to P$, there is an integration over the fibres
  $\int^{\check\RH{}}\!\!\!\int_{X/P} \, :\check\RH{}^s(X)\to \check\RH{}^{s-n-1}(P)$.
\item There is a surjective \emph{field strength map} defined by a
  natural transformation
\begin{eqnarray*}
F\,:\, \check\RH{}^p(M) \ \longrightarrow \ \Omega_\mathbb{Z}^p(M) \ , \qquad
F(\chi):= \mbox{$\frac1{2\pi}$}\, F_\chi
\end{eqnarray*}
which is a graded ring homomorphism, i.e.
\begin{eqnarray*}
F(\chi_1\smile\chi_2)= F_{\chi_1} \wedge F_{\chi_2} \ .
\end{eqnarray*}
Then integration obeys a version of Stokes' theorem
\begin{eqnarray*}
\int^{\check\RH{}}\!\!\!\!\!\int_{\partial N} \, [\check A] =  \,
\int^{\check\RH{}}\!\!\!\!\!\int_N \, F\big([\check A]\big)
\end{eqnarray*}
for $[\check A] \in\check\RH{}^p(N)$.
\item There is a surjective \emph{characteristic class map} defined by a
  natural transformation
\begin{eqnarray*}
c\,:\, \check\RH{}^p(M) \ \longrightarrow \ \RH^p(M;\mathbb{Z})
\end{eqnarray*}
which is a ring homomorphism, i.e.
\begin{eqnarray*}
c(\chi_1\smile\chi_2)= c(\chi_1)\smile c(\chi_2) \ ,
\end{eqnarray*}
and which is compatible with the field strength map, i.e.
\begin{eqnarray*}
\big[(c\otimes\mathbb{R})(\chi)\big]= \mbox{$\frac1{2\pi}$}\, \big[F_\chi\big]_{\rm dR} \ .
\end{eqnarray*}
Together the maps $c$ and $F$ define the pullback square
\begin{eqnarray*}
\xymatrix{
\check\RH{}^p(M) \ \ar[r] \ar[d] & \ \Omega_{\rm cl}^p(M) \ar[d] \\
\RH^p(M;\mathbb{Z}) \ \ar[r] & \ \RH^p(M;\mathbb{R})
}
\end{eqnarray*}
which leads to the exact sequence
\begin{eqnarray*}
0 \ \longrightarrow \ \RH^{p-1}(M;\mathbb{Z})\otimes \mathbb{R}/\mathbb{Z} \
\longrightarrow \ \check\RH{}^p(M) \ \longrightarrow \ \Omega_\mathbb{Z}^p(M)
\times_{[-]} \RH^p(M;\mathbb{Z})
\end{eqnarray*}
where $\Omega_\mathbb{Z}^p(M)
\times_{[-]} \RH^p(M;\mathbb{Z}):= \big\{(\omega,\xi) \ \big| \ [\omega]_{\rm
  dR}= \xi \big\}$.
\item Topologically trivial or flat fields $\chi_1=\chi_{A_1}$
  correspond to the class of a globally defined differential form $A_1$ on $M$; its
  product with any other character $\chi_2$ is also topologically
  trivial and given by
\begin{eqnarray*}
\chi_{A_1}\smile \chi_2= \chi_{A_1\wedge F_{\chi_2}} \ .
\end{eqnarray*}
More generally, the products of $\phi\in\ker F\subset \check\RH{}^p(M)$
and $\xi\in\ker c\subset \check\RH{}^p(M)$
with any character $\chi\in\check\RH{}^l(M)$ correspond respectively to the classes $(-1)^l\,
c(\chi)\smile\phi$ and $(-1)^l\,
F(\chi)\smile\xi$.
\item The Cheeger--Simons groups are completely characterized by
  two short exact sequences, which can be summarised in the diagram
\begin{equation}
\xymatrix{
0 \ar[dr] & & & & 0 \\
 & \RH^{p-1}(M;{\mathbb T}) \ar[dr] & & \RH^p(M;\mathbb{Z}) \ar[ur] & \\
 & & \check\RH{}^p(M) \ar[ur]^c \ar[dr]^F & & \\
 & \Omega^{p-1}(M) \,\big/ \, \Omega_\mathbb{Z}^{p-1}(M) \ar[ur] & &
 \Omega^p_\mathbb{Z}(M) \ar[dr] & \\
0 \ar[ur] & & & & 0
}
\label{CSexactseqs}\end{equation}
The sequence running from top to bottom is the field strength
sequence, where, by Poincar\'e duality,
$\RH^{p-1}(M;{\mathbb T})\cong{\sf Hom}_{\mathscr{A}b}( \RH_{p-1}(M;\mathbb{Z}),{\mathbb T})$ is the group of \emph{flat
fields} $\chi$ with $F_\chi=0$; it defines a torus
${\mathbb{T}}^p(M) \subset\check\RH{}^p(M)$ with fundamental group
\begin{eqnarray*}
\pi_1\check\RH{}^p(M)\cong \RH^{p-1}(M;\mathbb{Z})\,\big/\, {\sf Tor}\,
\RH^{p-1}(M;\mathbb{Z})
\end{eqnarray*}
based at the identity $0$. The sequence from bottom to top is the
characteristic class sequence, with $\Omega^{p-1}(M) /
\Omega_\mathbb{Z}^{p-1}(M)$ the torus of \emph{topologically trivial fields} whose
classes $[A]$ have curvature $F([A])={\rm d} A$. One also has the exact
sequence
\begin{equation}
0 \ \longrightarrow \ \RH^{p-1}(M;\mathbb{R})\,\big/\, \RH^{p-1}(M;\mathbb{Z}) \
\longrightarrow \ \RH^{p-1}(M;{\mathbb{T}}) \ \xrightarrow{ \ \beta \ } \ {\sf Tor}\,
\RH^p(M;\mathbb{Z}) \ \longrightarrow \ 0 \ ,
\label{CSflatseq}\end{equation}
where the torsion subgroup is the group of \emph{discrete Wilson
  lines} and $\beta$ is the Bockstein homomorphism.
This
yields a geometric picture of $\check\RH{}^p(M)$ as consisting of
infinitely many connected components $\check\RH{}^p_c(M)$ labelled by the charges $c\in\RH^p(M;\mathbb{Z})$, with each
topological sector a torus fibration over a vector space whose fibres are
finite-dimensional tori $\Omega^{p-1}_{\rm cl}(M) /
\Omega_\mathbb{Z}^{p-1}(M)$ represented by topologically trivial flat
fields, called \emph{Wilson lines}. In particular, there is a non-canonical splitting
$\check\RH{}^p(M)= \bigsqcup_{c\in\RH^p(M;\mathbb{Z})}\,
\check\RH{}^p_c(M)\cong T\times \Gamma\times V$ where $T$ is the torus of
Wilson lines, $\Gamma$ is the subgroup of topologically trivial flat
fields, and $V\cong{\rm im}({\rm d}^\dag)$ is the vector space of
\emph{oscillator modes}; there is an isomorphism
$\check\RH{}^p_0(M)\, /\, {\mathbb{T}}^p(M)\cong {\rm d}\Omega^{p-1}(M)$ of vector
spaces. Crucially, in contrast to ordinary cohomology groups, the
differential cohomology contains information about
both flat and topologically trivial fields on $M$, as they generally
have non-zero classes in $\check\RH{}^p(M)$.
\item The Cheeger--Simons groups satisfy \emph{Pontrjagin--Poincar\'e
    duality}
\begin{eqnarray*}
{\sf Hom}_{\mathscr{A}b}\big(\check\RH{}^p(M)\,,\, {\mathbb T}\big) \cong \check\RH{}^{n+2-p}(M) \ .
\end{eqnarray*}
This duality is a consequence of the fact that integration defines a
perfect bilinear pairing
\begin{eqnarray*}
\check\RH{}^p(M)\times \check\RH{}^{n+2-p}(M) \ \longrightarrow \
\check\RH{}^1({\rm pt})= {\mathbb T}
\end{eqnarray*}
by
\begin{eqnarray*}
\langle \chi_1,\chi_2\rangle:= \int^{\check\RH{}}\!\!\!\!\!\int_M \, \chi_1\smile \chi_2
\ .
\end{eqnarray*}
On cocycles we also denote this pairing by $([\check A_1],[\check
A_2])\mapsto \int^{\check\RH{}}\!\!\!\int_M\, [\check A_1]\smile[\check
A_2] =: \langle[\check A_1],[\check A_2]\rangle$. If the characteristic class of $\check A_1$ is zero then the
pairing is $\int_M\, A_1\wedge F_{\check A_2} \ {\rm mod}\ \mathbb{Z}$, and if also
$c(\check A_2)=0$ then this becomes $\int_M\, A_1\wedge{\rm d} A_2 \ {\rm
  mod}\ \mathbb{Z}$; note that both of these pairings are given by integrals
of forms. On the other hand, if the curvature $F_{\check A_1}=0$ with
$[\check A_1]=\alpha_1\in\RH^{p-1}(M;{\mathbb{T}})$, then the pairing is
$\int^{\RH{}}\!\!\!\!\int_M\, \alpha_1\smile c({\check A_2}) \ {\rm mod}\
\mathbb{Z}$.
\item A differential
character $\chi\in \check
\RH{}^p(M)$ defines a \emph{holonomy}
\begin{equation}
{\sf hol}_\Sigma(\chi):= \exp\Big({\,{\rm i}\,}\oint_\Sigma\, A_\chi
\Big) \ \in \ {{\rm U}(1)}
\label{charhol}\end{equation}
for any $p-1$-cycle $\Sigma\in
Z_{p-1}(M)$, where the potential $A_\chi\in\Omega^{p-1}(\Sigma)$ is defined by
$F_{\chi|_\Sigma}={\rm d} A_\chi$ and we have used $\RH^p(\Sigma;\mathbb{Z})=0$. For
flat fields $F_\chi=0$, the holonomy defines a class
$\big[{\sf hol}(\chi)\big] \in \RH^{p-1}(M;{{\rm U}(1)})$.
\end{enumerate}

\subsubsection*{Examples}

The groups $\check\RH{}^p(M)$ vanish for all $p<0$. For the first few
non-vanishing groups we have the following identifications:
\begin{itemize}
\item For $p=0$, $\check\RH{}^0(M)\cong \RH^0(M;\mathbb{Z})$ is identified
  via the characteristic class map $c$ as the group of
  connected components of $M$; the field strength map $F$ assigns an
  integer to each component.
\item For $p=1$, $\check\RH{}^1(M)\cong\Omega^0(M;{{\rm U}(1)})$ is the space
  of differentiable circle-valued maps $f:M\to{{\rm U}(1)}\cong S^1$. The field strength and
  characteristic class maps are given in this case
  by
\begin{eqnarray*}
f \
\stackrel{F}{\longmapsto} \ \mbox{$\frac1{2\pi\,\mathrm{i}\,}$}\, {\rm d} \log f \qquad \mbox{and} \qquad f \ \stackrel{c}{\longmapsto} \ f^*[{\rm d}\theta]  \ ,
\end{eqnarray*}
where $[{\rm d}\theta]$ is the fundamental class of $S^1$; these maps
describe how the function $f$ acts on cohomology. The holonomy is
the evaluation ${\sf hol}_x(f)=f(x)$ of $f$ at $x\in M$.
\item For $p=2$, $\check\RH{}^2(M)\cong {\sf Pic}_\nabla(M)$ is the Picard group of gauge
  equivalence classes of line bundles with connection $(L,\nabla)$ on
  $M$ and gauge group generated by $\check\RH{}^1(M)$. The field strength and characteristic class
  maps are given in this case by
\begin{eqnarray*}
(L,\nabla) \ \stackrel{F}{\longmapsto} \ \mbox{$\frac1{2\pi\,\mathrm{i}\,}$}\, \nabla^2 \qquad \mbox{and}
\qquad (L,\nabla) \ \stackrel{c}{\longmapsto} \ c_1(L) \ .
\end{eqnarray*}
The connection $\nabla$ determines a holonomy ${\sf hol}_\gamma(\nabla)$ for $\gamma\in Z_1(M)$
which coincides with
the holonomy (\ref{charhol}) of the corresponding differential
character.
\item For $p=3$, $\check\RH{}^3(M)$ is isomorphic to the group of gauge
  equivalence classes of ${{\rm U}(1)}$ gerbes $\mathscr{G}\downarrow M$ with
  2-connection $(A,B)$ and gauge group generated by the differential
  cohomology $\check\RH{}^2(M)$. The
  field strength map gives the curvature $H={\rm d} B$ of the $B$-field,
  while the characteristic class map returns the Dixmier--Douady class of
  $\mathscr{G}$. The 2-connection $(A,B)$ determines a holonomy
  ${\sf hol}_\Sigma(B) \in{{\rm U}(1)}$ for $\Sigma\in Z_2(M)$.
\item When $M$ is a point, one can use the exact sequences in
  (\ref{CSexactseqs}) to explicitly compute
\begin{eqnarray*}
\check\RH{}^p({\rm pt})= \left\{ \begin{matrix} \mathbb{Z} \ , & \quad p=0 \ , \\
    \mathbb{R}/\mathbb{Z} \ , & \quad p=1 \ , \\ 0 \ , & \quad p>1 \ ,
  \end{matrix} \right.
\end{eqnarray*}
where for $p=0$ only the characteristic class contributes while for
$p=1$ only topologically trivial flat fields contribute. From the
field strength exact sequence in (\ref{CSexactseqs}) one also finds
\begin{eqnarray*}
\check\RH{}^{n+2}(M)\cong \RH^{n+1}(M;{\mathbb T}) \qquad \mbox{and} \qquad
\check\RH{}^p(M)=0 \quad \mbox{for} \quad p>n+2 \ .
\end{eqnarray*}
\end{itemize}

\subsubsection*{Deligne cohomology}

An explicit cochain model for the Cheeger--Simons groups is provided
by Deligne cohomology, see e.g.~\cite{Brylinski}, which makes explicit
the
previous properties and examples together with their higher generalizations. The
degree $p$ smooth Deligne cohomology is the $p$-th \v{C}ech
hypercohomology of the truncated sheaf complex
\begin{eqnarray*}
0\ \longrightarrow \ {{\rm U}(1)}_M \ \xrightarrow{{\rm d}\log} \ \Omega_M^1 \
\xrightarrow{ \ {\rm d} \ } \ \Omega_M^2 \
\xrightarrow{ \ {\rm d} \ } \ \cdots \ \xrightarrow{ \ {\rm d} \ } \
\Omega_M^p \ ,
\end{eqnarray*}
where ${{\rm U}(1)}_M$ is the sheaf of smooth ${{\rm U}(1)}$-valued functions on
$M$ and $\Omega_M^p$ is the sheaf of differential $p$-forms on
$M$. The degree $p$ Deligne cohomology group $\RH_{\mathfrak{D}}^p(M)$
can be calculated as the cohomology of the total complex of the double
complex with respect to a good open cover
$\mathfrak{M}=\{M_\alpha\}_{\alpha\in I}$ of $M$ given by
\begin{eqnarray*}
\xymatrix{
\vdots & \vdots & & \vdots \\
C^2\big(\mathfrak{M}\,;\,{{\rm U}(1)}_M\big) \ \ar[u]^\delta \ \ar[r]^{\ {\rm d}\log} & \
C^2\big(\mathfrak{M}\,;\, \Omega_M^1\big) \ \ar[u]^\delta \ar[r]^{ \ \  \ \  \ {\rm d} }  & \
\cdots \ \ar[r]^{\!\!\!\!\!\!\!\!\!\!\!\!{\rm d} } & \
C^2\big(\mathfrak{M}\,;\, \Omega_M^p\big) \ \ar[u]^\delta \\
C^1\big(\mathfrak{M}\,;\,{{\rm U}(1)}_M\big) \ \ar[u]^\delta \ \ar[r]^{\ {\rm d}\log} & \
C^1\big(\mathfrak{M}\,;\, \Omega_M^1\big) \ \ar[u]^\delta \ar[r]^{  \ \  \ \ \ {\rm d} } & \
\cdots \ \ar[r]^{\!\!\!\!\!\!\!\!\!\!\!\!{\rm d} } & \
C^1\big(\mathfrak{M}\,;\, \Omega_M^p\big) \ \ar[u]^\delta \\
C^0\big(\mathfrak{M}\,;\,{{\rm U}(1)}_M\big) \ \ar[u]^\delta \ \ar[r]^{\ {\rm d}\log} & \
C^0\big(\mathfrak{M}\,;\, \Omega_M^1\big) \ \ar[u]^\delta \ar[r]^{  \ \  \ \ \ {\rm d} } & \
\cdots \ \ar[r]^{\!\!\!\!\!\!\!\!\!\!\!\!{\rm d} } & \
C^0\big(\mathfrak{M}\,;\, \Omega_M^p\big) \ \ar[u]^\delta
}
\end{eqnarray*}
which is the quotient of the abelian group of Deligne
$p$-cocycles by the subgroup of Deligne $p$-coboundaries; here
$\delta$ is the usual \v{C}ech coboundary operator, and
$C^p(\mathfrak{M};{{\rm U}(1)}_M)$ and $C^p(\mathfrak{M};\Omega^k_M)$ denote the
\v{C}ech $p$-cochains. Below we describe these groups explicitly in
low degree; contractible $k$-fold intersections of open sets of the cover
$\mathfrak{M}$ are
denoted by
$M_{\alpha_1\dots\alpha_k}:= M_{\alpha_1}\cap\cdots\cap
M_{\alpha_k}$.

A degree~$0$ smooth Deligne class in $C^0(\mathfrak{M};{{\rm U}(1)}_M)$ is just a
smooth map $g:M\to{{\rm U}(1)}$. This case applies to the sigma-model on $M$
of a scalar field $g$ compactified on a circle; the charge group is the
group of winding numbers $c\in\RH^1(M;\mathbb{Z})$ of the field $g$ around
$S^1$. In
  particular, $\check\RH{}^1(S^1)$ is the loop group $L{{\rm U}(1)}$ and if
  $\sigma\sim\sigma+1$ is the coordinate on the circle $M=S^1$, then
  Fourier series expansion gives the explicit decomposition
\begin{eqnarray*}
\log g(\sigma)= 2\pi{\,{\rm i}\,} g_0+2\pi{\,{\rm i}\,} c\, \sigma+ \sum_{k\neq0}\,
\frac{g_k}k \, \epsilon^{2\pi{\,{\rm i}\,} k\, \sigma} \ \in \ {\mathbb T} \oplus \Gamma_c \oplus V
\ .
\end{eqnarray*}

A Deligne one-cocycle is a pair
\begin{eqnarray*}
(g_{\alpha\beta},A_\alpha) \ \in \
C^1\big(\mathfrak{M}\,;\,{{\rm U}(1)}_M\big)\oplus C^0\big(\mathfrak{M}\,;\,
\Omega_M^1\big)
\end{eqnarray*}
satisfying the cocycle conditions
\begin{eqnarray*}
g_{\alpha\beta}\, g_{\beta\gamma}\, g_{\gamma\alpha}&=& 1 \qquad
\mbox{on} \quad M_{\alpha\beta\gamma} \ , \nonumber \\[4pt]
A_\alpha-A_\beta &=& {\rm d} \log g_{\alpha\beta} \qquad \mbox{on}
\quad M_{\alpha\beta} \ .
\end{eqnarray*}
A Deligne one-coboundary defines a gauge transformation and is a pair of the type
\begin{eqnarray*}
\big(h \,,\,
{\rm d}\log h\big)
\end{eqnarray*}
for a
smooth map $h:M\to{{\rm U}(1)}$. The ${{\rm U}(1)}$ \v{C}ech
one-cocycle $g_{\alpha\beta}:M_{\alpha\beta}\to
{{\rm U}(1)}$ determines smooth transition functions on overlaps for a hermitian
line bundle $L\to M$. This cocycle represents the first Chern class $c_1(L)=
[g_{\alpha\beta}]\in \RH^1(M;{{\rm U}(1)})\cong \RH^2(M;\mathbb{Z})$, where
the canonical isomorphism follows from the exponential sequence
\begin{eqnarray*}
0 \ \longrightarrow \ \mathbb{Z} \ \longrightarrow \ \mathbb{R} \ \xrightarrow{\exp}
\ {{\rm U}(1)} \ \longrightarrow \ 1 \ ;
\end{eqnarray*}
it is
the obstruction to triviality of the line bundle $L\to M$. The local one-forms
$A_\alpha\in\Omega^1(M_\alpha)$ define a unitary connection
$\nabla={\rm d}+A$ on $L$. This is the case that arose in Maxwell theory.

A Deligne two-cocycle is a triple
\begin{eqnarray*}
(g_{\alpha\beta\gamma},A_{\alpha\beta},B_\alpha) \ \in \
C^2\big(\mathfrak{M}\,;\, {{\rm U}(1)}_M\big)\oplus
C^1\big(\mathfrak{M}\,;\,\Omega_M^1\big)\oplus
C^0\big(\mathfrak{M}\,;\,\Omega^2_M\big)
\end{eqnarray*}
satisfying the cocycle conditions
\begin{eqnarray}
g_{\alpha\beta\gamma}\,
g^{-1}_{\beta\gamma\delta}\, g_{\gamma\delta\alpha}\,
g^{-1}_{\delta\alpha\beta} &=& 1 \qquad \mbox{on} \quad
M_{\alpha\beta\gamma\delta} \  , \nonumber \\[4pt]
A_{\alpha\beta}+A_{\beta\gamma}+ A_{\gamma\alpha} &=&
{\rm d} \log g_{\alpha\beta\gamma} \qquad \mbox{on} \quad
M_{\alpha\beta\gamma} \ , \nonumber \\[4pt]
B_\alpha-B_\beta &=& {\rm d} A_{\alpha\beta} \qquad \mbox{on} \quad
M_{\alpha\beta} \ .
\label{2cocycleconds}\end{eqnarray}
A Deligne two-coboundary defines a gauge transformation and is a triple of the type
\begin{eqnarray*}
\big(h_{\alpha\beta}\, h_{\beta\gamma}\, h_{\gamma\alpha}\,,\,
{\rm d}\log
h_{\alpha\beta}+a_\alpha-a_\beta\,,\, {\rm d} a_\alpha\big)
\end{eqnarray*}
for $(h_{\alpha\beta},a_\alpha)\in C^1(\mathfrak{M};{{\rm U}(1)}_M) \oplus C^0(\mathfrak{M};
\Omega_M^1)$.
The ${{\rm U}(1)}$ \v{C}ech
two-cocycle $g_{\alpha\beta\gamma}:M_{\alpha\beta\gamma}\to {{\rm U}(1)}$ specifies a hermitian
``transition'' line bundle $L_{\alpha\beta}$ over each overlap
$M_{\alpha\beta}$, an isomorphism
$L_{\alpha\beta}\cong L^*_{\beta\alpha}$, and a trivialization
of the line bundle
$L_{\alpha\beta}\otimes L_{\beta\gamma}\otimes L_{\gamma\alpha}$ on
each triple overlap $M_{\alpha\beta\gamma}$; the pair
$\mathscr{G}=(L_{\alpha\beta},g_{\alpha\beta\gamma})$ defines a {gerbe}
on $M$. This cocycle
represents the Dixmier--Douady class $dd(\mathscr{G})= [g_{\alpha\beta\gamma}]\in
\RH^2(M;{{\rm U}(1)})= \RH^3(M;\mathbb{Z})$; it is the obstruction to triviality of
the gerbe $\mathscr{G}\downarrow M$.
The \v{C}ech one-cochain $A_{\alpha\beta}$ defines connection one-forms on each line bundle
$L_{\alpha\beta}\to M_{\alpha\beta}$ such that the section
$g_{\alpha\beta\gamma}$ is covariantly constant with respect to the
induced connection on $L_{\alpha\beta}\otimes L_{\beta\gamma}\otimes
L_{\gamma\alpha}$; it defines a {0-connection} (or
{connective structure}) on the gerbe $\mathscr{G}$. The collection of two-forms
$B_\alpha\in\Omega^2(M_\alpha)$ defines a {1-connection} (or
{curving}) on $\mathscr{G}$. The pair $(A_{\alpha\beta},B_\alpha)$ defines a
{$2$-connection} on the gerbe $\mathscr{G}=(L_{\alpha\beta},g_{\alpha\beta\gamma})$.
The {gauge group} of the gerbe is generated by line bundles
$\ell \to M$ with connection $\nabla={\rm d}+a$ and curvature
$f_\nabla={\rm d} a$ with $F([\ell,\nabla]) = \frac1{2\pi
  {\,{\rm i}\,}}\,f_\nabla\in\Omega_\mathbb{Z}^2(M)$ through the gauge transformations
\begin{eqnarray*}
L_{\alpha\beta} \ \longmapsto \ L_{\alpha\beta}\otimes \ell\big|_{M_{\alpha\beta}} \ ,
  \qquad A_{\alpha\beta} \ \longmapsto \ A_{\alpha\beta}+
  a\big|_{M_{\alpha\beta}} \qquad \mbox{and} \qquad B_\alpha \
  \longmapsto \ B_\alpha+f_\nabla \ .
\end{eqnarray*}
The Deligne cohomology $\RH^2_{\mathfrak{D}}(M)$ applies to the
higher abelian gauge theory of the
Kalb--Ramond $B$-field of superstring theory, with $M$ a
ten-dimensional manifold. See~\cite{Mathai:2005sw} for a description
of the instanton moduli space in the bundle gerbe version of
generalized Maxwell theory.

For $p=3$, a Deligne class is represented by a quadruple
\begin{eqnarray*}
(g_{\alpha\beta\gamma\delta},A_{\alpha\beta\gamma},B_{\alpha\beta}, C_\alpha) \ \in \
C^3\big(\mathfrak{M}\,;\, {{\rm U}(1)}_M\big)\oplus
C^2\big(\mathfrak{M}\,;\,\Omega_M^1\big)\oplus
C^1\big(\mathfrak{M}\,;\,\Omega^2_M\big)\oplus
C^0\big(\mathfrak{M}\,;\,\Omega^3_M\big)
\end{eqnarray*}
satisfying the equations
\begin{eqnarray}
g_{\alpha\beta\gamma\delta}\, g_{\alpha\beta\delta\kappa}\,
g_{\beta\gamma\delta\kappa}\, g^{-1}_{\alpha\gamma\delta\kappa}\, g^{-1}_{\alpha\beta\gamma\kappa}
 &=& 1 \qquad \mbox{on} \quad
M_{\alpha\beta\gamma\delta\kappa} \  , \nonumber \\[4pt]
A_{\alpha\beta\gamma}+ A_{\alpha\gamma\delta}-A_{\alpha\beta\delta}-A_{\beta\gamma\delta} &=&
{\rm d} \log g_{\alpha\beta\gamma\delta} \qquad \mbox{on} \quad
M_{\alpha\beta\gamma\delta} \ , \nonumber \\[4pt]
B_{\alpha\beta}+B_{\beta\gamma}+ B_{\gamma\alpha} &=& {\rm d} A_{\alpha\beta\gamma} \qquad \mbox{on} \quad
M_{\alpha\beta\gamma} \ , \nonumber \\[4pt]
C_\alpha-C_\beta&=& {\rm d} B_{\alpha\beta} \qquad \mbox{on} \quad
M_{\alpha\beta} \ . \nonumber
\end{eqnarray}
Gauge transformations are generated by the Deligne three-coboundaries
\begin{eqnarray*}
\big(h_{\alpha\beta\gamma}\, h^{-1}_{\alpha\gamma\delta}\,
h_{\beta\gamma\delta}\, h^{-1}_{\alpha\beta\delta}\,,\, {\rm d} \log
h_{\alpha\beta\gamma} +a_{\alpha\beta}+a_{\beta\gamma}+
a_{\gamma\alpha}\,,\, {\rm d} a_{\alpha\beta}+b_\alpha-b_\beta\,,\, {\rm d}
b_\alpha\big)
\end{eqnarray*}
for $(h_{\alpha\beta\gamma},a_{\alpha\beta},b_\alpha)\in C^2(\mathfrak{M};{{\rm U}(1)}_M)\oplus
C^1(\mathfrak{M};\Omega_M^1)\oplus
C^0(\mathfrak{M};\Omega^2_M)$. This cocycle represents a 2-gerbe
$\underline{\mathscr{G}}=(\mathscr{G}_{\alpha\beta\gamma},g_{\alpha\beta\gamma\delta})$ with
3-connection
$(A_{\alpha\beta\gamma},B_{\alpha\beta},C_\alpha)$~\cite{Stevenson-thesis,Johnson,Brylinski2}.
The Deligne cohomology $\RH^3_{\mathfrak{D}}(M)$ is the one
appropriate to the abelian gauge theory of the three-form $C$-field of
M-theory, with $M$ an 11-dimensional manifold.

\subsubsection*{Holonomy and curvature}

The construction of holonomy and curvature of a Deligne class defines
an isomorphism~\cite{Brylinski} $$ \RH_{\mathfrak{D}}^{p}(M) \ \xrightarrow{ \
  \approx \ } \ \check \RH{}^{p+1} (M) \ . $$

Given a degree~$1$ smooth Deligne class $[(g_{\alpha\beta},A_\alpha)]$
represented by a hermitian line bundle $L\to M$ with unitary
connection $\nabla={\rm d}+A$, the
curvature is the globally defined two-form given by $F_\nabla={\rm d}
A_\alpha$ on $M_\alpha$ with $F([L,\nabla]) = \frac1{2\pi
  {\,{\rm i}\,}}\,F_\nabla\in\Omega_\mathbb{Z}^2(M)$.
By Stokes' theorem, the holonomy of $\nabla$ around any one-cycle
$\gamma\subset M$ is then obtained from the product formula~\cite{Kiyonori:2001aa}
\begin{eqnarray*}
{\sf hol}_\gamma(A) =\prod_{\alpha\in I} \, \exp\Big({\,{\rm i}\,}
\int_{\gamma_\alpha}\, A_\alpha\Big) \ \prod_{\alpha,\beta\in I}\,
g_{\alpha\beta}(\gamma_{\alpha\beta}) \ ,
\end{eqnarray*}
where $\gamma_\alpha\subset M_\alpha$ is a path in a subdivision of
the loop $\gamma$ into segments and $\gamma_{\alpha\beta}=\gamma_\alpha\cap
\gamma_\beta$ is a point in $M_{\alpha\beta}$. This
definition agrees with the general definition of holonomy
(\ref{charhol}) in terms of
differential characters.

Given a degree~$2$ smooth Deligne class
$[(g_{\alpha\beta\gamma},A_{\alpha\beta},B_\alpha)]$ represented by a
gerbe $\mathscr{G}\downarrow M$ with 2-connection $(A,B)$, the curvature
of the corresponding differential character is the globally defined
closed three-form $H=H_{(A,B)}$ given by $H={\rm d} B_\alpha$ on
$M_\alpha$ with $F([\mathscr{G},A,B]) = \frac1{2\pi{\,{\rm i}\,}}\, H\in\Omega_\mathbb{Z}^3(M)$,
while its characteristic class is the
Dixmier--Douady class $dd(\mathscr{G}) \in \RH^3(M;\mathbb{Z})$ of the gerbe $\mathscr{G}$.
Its holonomy around a two-cycle $\Sigma\subset M$ is obtained
by choosing a triangulation $\{\Sigma_\alpha\}_{\alpha\in I}$ of $\Sigma$ subordinate to the open cover
$\Sigma\cap\mathfrak{M}$. Keeping careful track of orientations, by repeated
application of Stokes' theorem one arrives at the product
formula~\cite{Brylinski,Kiyonori:2001aa}
\begin{eqnarray*}
{\sf hol}_\Sigma(B)=\prod_{\alpha\in I}\, \exp\Big({\,{\rm i}\,}\int_{\Sigma_\alpha}\,
B_\alpha\Big) \ \prod_{\alpha,\beta\in I}\,
\exp\Big({\,{\rm i}\,}\int_{\Sigma_{\alpha\beta}}\, A_{\alpha\beta}\Big) \
\prod_{\alpha,\beta,\gamma\in I}\,
g_{\alpha\beta\gamma}(\Sigma_{\alpha\beta\gamma})
\end{eqnarray*}
where $\Sigma_{\alpha\beta}$ is the common boundary edge of the surfaces $\Sigma_\alpha$ and
$\Sigma_\beta$, and $\Sigma_{\alpha\beta\gamma}=\Sigma_{\alpha\beta}\cap
\Sigma_{\beta\gamma}\cap\Sigma_{\gamma\alpha}$ are vertices of the
triangulation of $\Sigma$. The coincidence between this expression and the
general formula in terms of differential characters (\ref{charhol}) is shown
explicitly in~\cite{Carey:2002xp}. This construction first appeared in
the context of the Wess--Zumino--Witten model in~\cite{Gawedzki:1987ak}.

For $p=3$, the smooth Deligne class
$[(g_{\alpha\beta\gamma\delta},A_{\alpha\beta\gamma},B_{\alpha\beta},
C_\alpha)]$ of a 2-gerbe $\underline{\mathscr{G}}\downarrow\downarrow M$
with 3-connection $(A,B,C)$ has curvature $G$ given by $G={\rm d} C_\alpha$ on
$M_\alpha$ with $F([\,\underline{\mathscr{G}}\,,A,B,C]) = \frac1{2\pi{\,{\rm i}\,}}\, G
\in\Omega_\mathbb{Z}^4(M)$, and a degree~$4$ characteristic class
$[g_{\alpha\beta\gamma\delta}]\in \RH^4(M;\mathbb{Z})$. For a smooth three-cycle
$\Sigma\subset M$, choose a triangulation subordinate to the open
cover $\mathfrak{M}$ used to define the Deligne class; it consists of tetrahedra
$\Sigma_\alpha$, faces $\Sigma_{\alpha\beta}$, edges
$\Sigma_{\alpha\beta\gamma}$, and vertices
$\Sigma_{\alpha\beta\gamma\delta}$. Then the holonomy around $\Sigma$ is given
by~\cite{Johnson}
\begin{eqnarray*}
{\sf hol}_\Sigma(C)&=&\prod_{\alpha\in I}\, \exp\Big({\,{\rm i}\,}\int_{\Sigma_\alpha}\,
C_\alpha\Big) \ \prod_{\alpha,\beta\in I}\,
\exp\Big({\,{\rm i}\,}\int_{\Sigma_{\alpha\beta}}\, B_{\alpha\beta}\Big) \
\prod_{\alpha,\beta,\gamma\in I}\,
\exp\Big({\,{\rm i}\,}\int_{\Sigma_{\alpha\beta}\gamma}\,
A_{\alpha\beta\gamma}\Big) \\ && \times \ \prod_{\alpha,\beta,\gamma,
  \delta \in I}\,
g_{\alpha\beta\gamma\delta}(\Sigma_{\alpha\beta\gamma\delta}) \ .
\end{eqnarray*}

A general Deligne $p$-cocycle is represented by
\begin{eqnarray*}
\big(g_{\alpha_1\dots\alpha_{p+1}} , A_{\alpha_1\dots\alpha_p}^1,\dots,
  A^p_\alpha\big) \ \in \ C^p\big(\mathfrak{M}\,;\, {{\rm U}(1)}_M\big) \ \oplus \
  \bigoplus_{k=1}^p\,
  C^{p-k}\big( \mathfrak{M}\,;\, \Omega_M^k\big) \ .
\end{eqnarray*}
To compute its holonomy, triangulate a smooth $p$-cycle $\Sigma\subset
M$ by a $p$-dimensional simplicial complex $\mathfrak{S}(\Sigma)$; the
$k$-simplices of $\mathfrak{S}(\Sigma)$ are denoted $\sigma^k$ for
$k=0,1,\dots,p$. Let $\rho:\mathfrak{S}(\Sigma)\to I $ be the
index map for the triangulation~\cite{Kiyonori:2001aa}. Then the
holonomy around $\Sigma$ is given by~\cite{Johnson}
\begin{eqnarray*}
{\sf hol}_\Sigma(A^p)= \prod_{k=1}^p \
\prod_{\underline{\sigma}^k\in\mathfrak{S}(\Sigma)} \,
\exp\Big({\,{\rm i}\,}\int_{\sigma^k}\, A^k_{\rho(\sigma^p)\dots\rho(\sigma^k)}
\Big) \ \prod_{\underline{\sigma}^0 \in\mathfrak{S}(\Sigma)} \,
g_{\rho(\sigma^p)\dots\rho(\sigma^1) \rho(\sigma^0)}(\sigma^0) \ ,
\end{eqnarray*}
where the products are taken over \emph{flags} of simplices
$\underline{\sigma}^k:= \big\{(\sigma^k,\sigma^{k+1},\dots,\sigma^p) \
\big| \ \sigma^k\subset\sigma^{k+1}\subset\cdots \subset
\sigma^p\big\}$ for $k=0,1,\dots,p$.

\subsection{Configuration space and gauge transformations\label{Confspace}}

As in Maxwell theory (or more generally in Yang--Mills theory),
locality forces us to work with \emph{gauge potentials} $A$, rather
than with isomorphism classes of gauge fields $F$. The most convenient
mathematical framework for dealing with local quantum field theory is
through categorification, wherein we work directly at the level of
cochain complexes; this enables one to build a quantum field theory by
``gluing'' elementary constituents together. In particular, following the treatment of the
configuration space of semi-classical Maxwell theory, we seek a suitable groupoid of
higher abelian gauge fields which plays the role of the
semi-classical configuration space. This framework also leads to a quantum
definition of charge.

\subsubsection*{Quantum groupoid of fields}

We seek a groupoid
$\check\mathscr{H}{}^p(M)$ whose objects are gauge potentials $\check A$,
whose morphisms are ``gauge transformations'', and whose set of
isomorphism classes are gauge equivalence classes, so that
\begin{eqnarray*}
\pi_0{\check\mathscr{H}{}^p(M)} \cong\check\RH{}^p(M) \ .
\end{eqnarray*}
In
particular, every object has a group of automorphisms $\RH^{p-2}(M;{\mathbb T})$. The particular
sort of groupoid that we want is an example of an \emph{action
  groupoid}, obtained by the
action of a gauge group on a set of objects: Given an action $G\times X\to X$ of a group $G$ on a set
$X$, there is a groupoid $G\rightrightarrows X$ whose objects are the points
$x\in X$ and whose morphisms are the group actions $x\xrightarrow{ \ g
  \ } x'=g\triangleright x$ for $g\in G$ and $x\in X$. When $X$ is
e.g. a smooth manifold, this groupoid
is sometimes denoted $[X/G]$ and called a \emph{quotient stack}; it is
naturally related to the orbifold $X/G$.
The desired
properties of the category $\check\mathscr{H}{}^p(M)$ can be described as
follows.

Firstly, the gauge transformation law on corresponding
characters $\chi_{\check A}$ is given on $p$-chains $\Sigma$ with
$\partial\Sigma\neq0$ as
\begin{eqnarray*}
\chi_{\check A}(\Sigma) \ \longmapsto \ \check\chi(\partial\Sigma)\,
\chi_{\check A}(\Sigma) \qquad \mbox{with} \quad
\check\chi(\partial\Sigma) = \exp\Big(\,\mathrm{i}\, \int_\Sigma\, F_{\check\chi}
\Big) \ .
\end{eqnarray*}
Hence gauge transformations are given by differential characters
$\check\chi\in\check\RH{}^{p-1}(M)$; the action of $[\check
C] \in\check\RH{}^{p-1}(M)$ on a gauge potential $\check A$ is given by
\begin{equation}
g_{[\check C]}\triangleright \check A = \check A+ F\big([\check C] \big) \ .
\label{gcheckCcheckA}\end{equation}
The groupoid of morphisms is thus
the gauge group $\check\RH{}^{p-1}(M)$.

Secondly, the connected components $\check Z_c^p(M)$ of the space of
objects $\check Z^p(M)$ are labelled
by the charge group $c\in \RH^p(M;\mathbb{Z})$, each taken as a torsor for $\Omega^{p-1}(M)$. From
(\ref{gcheckCcheckA}) it follows that the flat characters in
$\RH^{p-2}(M;{\mathbb T})$ act trivially on the space of gauge fields
$\check\mathscr{H}{}^p(M)$, and hence the group of automorphisms of any object
$\check A$ is
\begin{eqnarray*}
\Aut_{\check\mathscr{H}{}^p(M)}(\check A)=\RH^{p-2}(M;{\mathbb T}) \ .
\end{eqnarray*}
On $M=\mathbb{R}\times N$, an automorphism $\alpha\in\RH^{p-2}(N;{\mathbb T})$ acts
on ``wavefunctionals'' $\psi(\check A)$ in the quantum Hilbert space
${\mathcal H}(N)$ of the gauge theory via elements of the quantum electric
charge group $Q\in\RH^{n-p+2}(N;\mathbb{Z})$ as $\alpha\triangleright\psi(\check
A)=\epsilon^{2\pi{\,{\rm i}\,}\langle\alpha,Q\rangle}\, \psi(\check A)$; the precise
definition of the Hilbert space ${\mathcal H}(N)$ is the subject of \S\ref{QuantHAGT} In each topological sector
$c\in\RH^p(M;\mathbb{Z})$ we choose a field strength $F_c$. Then an arbitrary
field strength in this sector can be written as $F=F_c+{\rm d} a$ for
$a\in\Omega^{p-1}(M)$; these are the oscillator modes. Gauge transformations act through $a\mapsto
a+\omega$ with $\omega\in\Omega_\mathbb{Z}^{p-1}(M)$; if
$\omega={\rm d}\varepsilon$ is exact then
this is called a \emph{small gauge transformation} and there are also
gauge transformations of the gauge transformations given by
$\varepsilon\mapsto\varepsilon + \eta$ with
$\eta\in\Omega^{p-2}_\mathbb{Z}(M)$.

The requisite quantum groupoid then has connected components given by the action groupoids $\check\mathscr{H}{}_c^p(M)=
\big[\check Z{}^p_c(M)\, \big/\, \check\RH{}^p(M)\big]$.

\subsubsection*{Category of differential cocycles}

An explicit model for the category $\check\mathscr{H}{}^p(M)$ is described in~\cite{Hopkins:2002rd}. In this formulation the space of
objects $\check Z{}^p(M)$ of
$\check\mathscr{H}{}^p(M)$ are \emph{cocycles}; these are triples
\begin{eqnarray*}
(c,h,\omega) \ \in \ \check C{}^p(M):= C^p(M;\mathbb{Z})\times C^{p-1}(M;\mathbb{R}) \times
\Omega^p(M)
\end{eqnarray*}
satisfying the cocycle condition
\begin{eqnarray*}
{\rm d}_{\check\RH}(c,h,\omega) := (\delta c,\omega-c-\delta h, {\rm d}\omega) = (0,0,0)
\end{eqnarray*}
with ${\rm d}_{\check\RH}^2=0$. Here we think of $c$ as the characteristic class
$c(\chi)$ of
a differential character~$\chi$, $\omega$ as its field
strength $F_\chi$, and $h$ as the ``monodromy'' $\log\chi$. Note that the
connected components of the space of objects of the category are indeed
labelled by the charge group $\RH^p(M;\mathbb{Z})$. Two objects
are connected
by a morphism $(c_1,h_1,\omega_1)\longrightarrow (c_2,h_2,\omega_2)$ if and only if
\begin{eqnarray*}
(c_1,h_1,\omega_1)=(c_2,h_2,\omega_2)+{\rm d}_{\check\RH} (b,k,0)
\end{eqnarray*}
for some $(b,k)\in C^{p-1}(M;\mathbb{Z})\times C^{p-2}(M;\mathbb{R})$ subject to the
equivalence relation
\begin{eqnarray*}
(b,k,0)\sim (b,k,0)-{\rm d}_{\check\RH} (b',k',0) \qquad \mbox{for} \quad (b',k'\,)
\in C^{p-2}(M;\mathbb{Z})\times C^{p-3}(M;\mathbb{R}) \ .
\end{eqnarray*}

Then the set of isomorphism classes of objects in the category
$\check\mathscr{H}{}^p(M)$ is isomorphic to the Cheeger--Simons differential cohomology
group $\check\RH{}^p(M)$. Moreover, the automorphism group of the trivial
object is given by
\begin{eqnarray*}
\Aut_{\check\mathscr{H}{}^p(M)}(0,0,0)\cong \RH^{p-2}(M;{\mathbb T}) \ ,
\end{eqnarray*}
and whence the flat characters in $\RH^{p-2}(M;{\mathbb T})$ act trivially on
the configuration space of abelian gauge fields
$\check\mathscr{H}{}^p(M)$. However, in this model there is no groupoid
decomposition $\check Z{}^p(M)=\bigsqcup_{c\in\RH^p(M;\mathbb{Z})}\, \check
Z_c^p(M)$ into topological sectors.

For $p=0$, $\check\mathscr{H}{}^0(M)$ is the category of maps $M\to\mathbb{Z}$ and
identity morphisms.

For $p=1$, $\check\mathscr{H}{}^1(M)$ is the category of
smooth maps $M\to{{\rm U}(1)}$ and identity morphisms; to each object
$(c,h,\omega)\in C^1(M;\mathbb{Z})\times C^0(M;\mathbb{R})\times \Omega^1(M)$ we
associate its differential character.

For $p=2$, $\check\mathscr{H}{}^2(M)$ is the monoidal category of
${{\rm U}(1)}$-bundles with connection, with groupoid structure of tensor
product. An object $\check A=(c,h,\omega)\in \check\mathscr{H}{}^2(M)$ determines a
${{\rm U}(1)}$-bundle with connection in the following way: For each open set
$U\subset M$, a principal homogeneous space $\Gamma(U)$ for the group of
isomorphism classes in the group $\check\mathscr{H}{}^1(U)$ of smooth maps
$U\to{{\rm U}(1)}$ is given by the set of trivialising ``scalar potentials''
$\check\sigma= (b,k,\theta)\in C^1(U;\mathbb{Z})\times C^0(U;\mathbb{R})\times
\Omega^1(U)$ with ${\rm d}_{\check\RH}\check\sigma=\check A$ modulo the
equivalence relation $\check\sigma\sim
\check\sigma+{\rm d}_{\check\RH}\check\tau$ for $\check\tau\in
C^1(U;\mathbb{Z})\times \{0\} \times
\Omega^0(U)$; any two potentials in $\Gamma(U)$ differ by an object of
the category $\check\mathscr{H}{}^1(M)$. The connection
$\nabla:\Gamma(U)\to\Omega^1(U)$ then sends $\check\sigma\mapsto\theta$.

\subsubsection*{Quantum 2-groupoid of fields}

The model of differential cocycles illustrates that the construction of the category $\check\mathscr{H}{}^p(M)$ may be iterated to give higher categories as well,
by the well-known process of categorification, which works for any
cochain complex: We replace the equivalence relation on morphisms
with 2-morphisms, and so on. These higher morphisms are necessary to
obtain a fully local gauge theory with local gauge symmetries as well;
they typically appear in the
quantization of reducible gauge systems with large symmetries, for example in
Batalin--Vilkovisky quantization the off-shell higher gauge symmetries
require introduction of both ghost fields and ghosts-for-ghosts. We
recall here
the pertinent category theory definitions; see e.g.~\cite{Baez} for
further details and references.

Here we shall only consider
the first member of this higher categorical hierarchy. A
\emph{2-category} consists of a set of objects $\check A$ (gauge potentials), a set of morphisms
$g:\check A\longrightarrow \check B$ from a source potential $\check
A$ to a target potential $\check B$ (gauge transformations), and a
set of 2-morphisms $\alpha:g\Longrightarrow h$ from a source gauge
transformation $g:\check A\longrightarrow \check B$ to a target gauge
transformation $h:\check A\longrightarrow \check B$ (gauge-for-gauge transformations). The composition of gauge transformations $g:\check B\longrightarrow
\check C$ and $h:\check A\longrightarrow \check B$ is written $g\circ h: \check A\longrightarrow
\check C$; it defines an associative multiplication with unit the identity
gauge transformation $\unit_{\check A}:\check
A\longrightarrow \check A$ for all gauge potentials $\check A$. For the gauge-for-gauge transformations there are two
types of composition. The ``vertical'' composition of 2-morphisms
$\alpha:g\Longrightarrow g'$ and $\alpha':g'\Longrightarrow
g^{\prime\prime}$ between gauge transformations $g,g',g^{\prime\prime}
:\check A\longrightarrow
\check B$ with the same source and target is denoted $\alpha\cdot\alpha':g\Longrightarrow
g^{\prime\prime}$; it defines an associative multiplication with unit
the identity vertical gauge-for-gauge transformation
$\unit_g:g\Longrightarrow g$ for all gauge transformations $g:\check A\longrightarrow
\check B$. The ``horizontal'' composition of 2-morphisms
$\alpha_1:g_1\Longrightarrow g_1'$ and $\alpha_2:g_2\Longrightarrow
g_2'$ between gauge transformations $g_1,g_1':\check B\longrightarrow
\check C$ and $g_2,g_2':\check A\longrightarrow \check B$ is written
$\alpha_1\circ\alpha_2: g_1\circ g_2\Longrightarrow g_1'\circ g_2'$, where
$g_1\circ g_2,g_1'\circ g_2':\check A\longrightarrow \check C$; again it
gives an associative multiplication with unit the identity horizontal
gauge-for-gauge transformation $\unit_{\unit_{\check A}}:\unit_{\check
  A}\Longrightarrow\unit_{\check A}$ for all gauge potentials $\check
A$. The two compositions of 2-morphisms obey the interchange law
\begin{equation}
(\alpha_1'\cdot\alpha_1)\circ(\alpha_2'\cdot\alpha_2)=
(\alpha_1'\circ\alpha_2')\cdot (\alpha_1\circ\alpha_2) \ .
\label{interchangelaw}\end{equation}

A \emph{2-groupoid} structure on this 2-category is obtained by
requiring that every gauge transformation $g:\check A\longrightarrow \check
B$ has an inverse $g^{-1}: \check B\longrightarrow \check A$ such that
$g^{-1}\circ g=\unit_{\check A}$ and $g\circ g^{-1}=\unit_{\check B}$, while
every
gauge-for-gauge transformation $\alpha:g\Longrightarrow h$ has a vertical inverse
$\alpha_v^{-1}:h\Longrightarrow g$ such that $\alpha_v^{-1}\cdot
\alpha=\unit_g$ and $\alpha\cdot \alpha_v^{-1}=\unit_h$, and a
horizontal inverse $\alpha_h^{-1}:g^{-1} \Longrightarrow h^{-1}$ such that
$\alpha_h^{-1}\circ \alpha=\unit_{\unit_{\check A}}$ and
$\alpha\circ\alpha_h^{-1}= \unit_{\unit_{\check B}}$.

The corresponding set of 2-isomorphism classes now has the structure
of a \emph{2-group} $\mathscr{G}$, which is a 2-groupoid with one object;
the morphisms $g$ form a group $G$ under composition whose unit
element is the identity morphism, while the 2-morphisms
$\alpha:g\Longrightarrow g'$ for $g,g' \in G$ form a group under horizontal
composition and can be composed vertically with the two compositions
tied together via the interchange law
(\ref{interchangelaw}). Equivalently, a 2-group is a groupoid $\mathscr{G}$
equipped with a monoidal structure that obeys the usual
group axioms; in many cases of interest we require that the axioms
(and in general all associativity conditions on the category) hold
only in a ``weak'' sense, i.e. up to natural isomorphism imposed
e.g. by equivalence relations.

An
important classification result states that 2-groups are the same things as \emph{crossed
  modules}~\cite{Baez}, which consist of pairs of groups
$G,H$ together with an
action of $G$ on $H$ by automorphisms and a group homomorphism ${\tt t}:H\to G$ which is
$G$-equivariant, i.e.
\begin{eqnarray*}
{\tt t}(g\triangleright h)=g\, {\tt t}(h)\, g^{-1}
\end{eqnarray*}
for all $g\in G$ and $h\in H$, and which satisfies the Peiffer
identity
\begin{eqnarray*}
{\tt t}(h)\triangleright h' = h\, h'\, h^{-1}
\end{eqnarray*}
for all $h,h'\in H$. Given a 2-group $\mathscr{G}$, we construct a crossed
module by taking $G$ to be the group of morphisms of $\mathscr{G}$,
$H$ as the group of 2-morphisms of $\mathscr{G}$ whose source is the
identity morphism, the homomorphism ${\tt t}:H\to G$ is defined by sending a
2-morphism to its target morphism, and the $G$-action on $H$ is defined
by $g\triangleright h =\unit_g\circ h\circ \unit_{g^{-1}}$. In this classification
the 2-morphisms of $\mathscr{G}$ form the crossed-product group $G\ltimes H$ under
horizontal composition: 2-morphisms $g\Longrightarrow
g'$ are equivalent to pairs $(g,h)\in G\times H$ with $g'={\tt t}(h)\,
g$. Moreover, the vertical composition of $g\Longrightarrow \tilde
g={\tt t}(h)\, g$ and $g'\Longrightarrow \tilde g'={\tt t}(h'\,)\, g'$ is given by
\begin{eqnarray*}
(g,h)\cdot(g',h'\,) = (g,h'\, h)
\end{eqnarray*}
for composable 2-morphisms, i.e. when $g'={\tt t}(h)\, g$ so that $\tilde
g'={\tt t}(h'\,)\, {\tt t}(h)\, g={\tt t}(h'\, h)\, g$, while horizontal composition
can be represented as
\begin{eqnarray*}
(g,h)\circ(g',h'\,)= \big(g\, g'\,,\, h\, (g\triangleright h'\,)\big) \ .
\end{eqnarray*}
In the ``weak'' case one replaces the homomorphism ${\tt t}:H\to G$ with
an element $[a]$ of the group cohomology $\RH^3(G,H)$ which comes from
the associator isomorphism $a$ on $\mathscr{G}\times\mathscr{G}\times \mathscr{G}$~\cite{Baez}.

For example, define the \emph{shifted} group ${\rm b}{{\rm U}(1)}$ as the Lie
2-group where $G=\unit$ is the trivial group, $H={{\rm U}(1)}$, and ${\tt t}$ is the trivial
homomorphism. Then a principal ${\rm b}{{\rm U}(1)}$-2-bundle with
2-connection, i.e. an object in the 2-category of ${{\rm U}(1)}$-bundles with connection, is a gerbe with 2-connection~\cite{Baez1}. On a trivial
gerbe, a 2-connection is a globally defined two-form
$B\in\Omega^2(M)$; in this case the holonomies of paths, regarded
as morphisms between points $x\in M$ in the path 2-groupoid of the smooth
manifold $M$, are all trivial while the 2-holonomies over
two-chains $\Sigma\subset M$ with $\partial\Sigma\neq0$, regarded as 2-morphisms in the path
2-groupoid, give elements $\exp\big({\,{\rm i}\,}\int_\Sigma\, B\big)\in{{\rm U}(1)}$.

\subsubsection*{Currents}

In the non-vacuum theory, i.e. when there are currents
present, the description of the configuration space changes somewhat. Consider a differential cocycle
\begin{eqnarray*}
\check j= (c,h,\omega) \ \in \ \check\mathscr{H}{}^p(M) \ ,
\end{eqnarray*}
so that $c=c(\check j)$, $j:=\omega=F(\check j)$, and $h$ is the
``holonomy'' of $\check j$. A \emph{trivialization} of $\check j$ is a
\emph{differential cochain}
\begin{eqnarray*}
\check A \ \in \ \check C{}^{p-1}(M)= C^{p-1}(M;\mathbb{Z})\times C^{p-2}(M;\mathbb{R})\times
\Omega^{p-1}(M) \qquad \mbox{with} \quad {\rm d}_{\check\RH}\check A=\check j \ .
\end{eqnarray*}
Associated to $\check A$ is a differential form $A\in\Omega^{p-1}(M)$
such that ${\rm d} A=F(\check j)=j\in \Omega_{\rm cl}^p(M)$.

Starting from
a current $j$, we consider a \emph{refinement} of $j$ to a
differential cocycle $\check j$ such that $F(\check j)=j$, and
regard the configuration space of higher abelian gauge fields as
the set of trivializations of $[\check j]\in\check\RH{}^p(M)$. The
set of all such trivializations is a torsor for the group
$\check\RH{}^p(M)$, and the group of gauge transformations is
isomorphic to $\check\RH{}^{p-1}(M)$.

\subsection{Generalized abelian gauge theory\label{Gendiffcoh}}

A \emph{generalized differential cohomology theory} $\check\E{}^\bullet$ is a
geometric refinement of a generalized cohomology theory $\E^\bullet$
on the category of smooth manifolds. For any manifold $M$, it
completes the pullback square
\begin{equation}
\xymatrix{
\check\E{}^\bullet(M) \ \ar[r] \ar[d] & \ \Omega_{\rm
  cl}(M;E^\bullet)^\bullet \ar[d]^{[-]_{\rm dR}} \\
\E^\bullet(M) \ \ar[r]_{\!\!\!\!\!\!\varphi} & \ \RH(M;E^\bullet)^\bullet
}
\label{Epullback}\end{equation}
where $E^\bullet := \E^\bullet({\rm pt})\otimes_\mathbb{Z}\mathbb{R}$ is a graded real
vector space, the image of the morphism $\varphi$ is a full lattice
while its kernel is the torsion subgroup $\ker\varphi= {\sf Tor}\,
\E^\bullet(M)$ (in particular $\varphi\otimes\mathbb{R}$ is a group isomorphism), and the grading on ordinary cohomology is given by the
total degree
\begin{eqnarray*}
\RH(M;E^\bullet)^d := \bigoplus_{p+q=d}\, \RH^p(M;E^q) \ .
\end{eqnarray*}

\begin{theorem}
Differential cohomology theories exist for any generalized cohomology theory.
\label{HStheorem}\end{theorem}

The proof of Thm.~\ref{HStheorem} can be found
in~\cite{Hopkins:2002rd} and it consists in replacing differential
cocycles by certain maps to the corresponding classifying spaces
$B\E$, the collection of which are called ``differential function
spaces'': One now considers triples $(c,h,\omega)$ where $c:M\to B\E$
is a smooth map,
$h\in C^\bullet(M)$ is a cochain on $M$, and $\omega\in\Omega_{\rm
  cl}^\bullet(M)$ is a closed differential form on $M$ such that $\delta h=\omega-c^*i$ for some cocycle $i\in
Z^\bullet(B\E)$, together with homotopy equivalence relations. Existence and
uniqueness of generalized differential cohomology theories is also
investigated by~\cite{BunkeSchick2007,BunkeSchick2009}. The groups
$\check\E{}^d(M)$ have analogous properties to those of the
Cheeger--Simons groups, including:
\begin{itemize}
\item[(i)] The connected components of $\check\E{}^d(M)$ are labelled by
  the charge group $\pi_0\check\E{}^d(M)=\E^d(M)$.
\item[(ii)] There is a field strength map $F:\check\E{}^d(M)\to
  \Omega_{\rm cl}(M;E^\bullet)^d$.
\item[(iii)] There is a torus ${\mathbb{T}}_{\E}^d(M)=\E^{d-1}(M;{\mathbb{T}})$ of
  flat fields in $\check\E{}^d(M)$, where $\E$-cohomology with
  coefficients in $\mathbb{R}/\mathbb{Z}$ is constructed using stable homotopy
  theory in terms of a spectrum in such a way that it fits into natural long exact sequences
\begin{eqnarray*}
\cdots \ \longrightarrow \ \E^{d-1}(M) \ \longrightarrow \ \E^{d-1}(M)\otimes\mathbb{R} \ \longrightarrow \
\E^{d-1}(M;{\mathbb{T}}) \ \longrightarrow \ \E^d(M) \ \longrightarrow \
\cdots \ .
\end{eqnarray*}
See~\cite{BunkeSchick2009} and~\cite[\S2.3]{Bunke:2010mq} for
conditions under which there is an isomorphism ${\mathbb{T}}_{\E}^d(M)\cong
\ker(F)$ of cohomology theories, and~\cite{Hopkins:2002rd} for an
explicit realization of the isomorphism.
\end{itemize}

Most of what we have said before concerning (higher) abelian gauge theories
have analogs in this more general setting. A \emph{generalized abelian
  gauge theory} is determined by a multiplicative
generalized cohomology theory $\E^\bullet$ with invertible closed
differential forms
\begin{equation}
\omega_M=\sqrt{F\big([{\tt or}_{\E}(M)]\big)}
\label{squareroot}\end{equation}
depending
functorially and locally on $M$ that normalize the morphism $\varphi$
in (\ref{Epullback}) such that the intersection pairing
$\E^\bullet(M)\otimes\E^\bullet(M)\to \mathbb{Z}$ becomes compatible with the integration of
curvatures. Here $[{\tt or}_{\E}(M)]\in\check\E{}^\bullet(M)$ is a smooth
$\E$-orientation on $M$, and we use invertibility to regard cup products with the cohomology class of $F\big([{\tt or}_{\E}(M)]\big)$ as an invertible linear operator on $\RH(M,E^\bullet)^\bullet$; if the cohomology is finitely-generated, then the square root (\ref{squareroot}) can be defined using the usual Jordan normal form. A gauge potential $\check A\in\check
C{}^d(M)$ is a non-flat trivialization of a current $\check
j\in\check Z{}^{d+1}(M)$ for some $d\in\mathbb{Z}$. If $\check j=0$, then the potential has
a class $[\check
A]\in\check \E{}^d(M)$; we will mostly consider this source-free case
in this article, as the gauge
theory in this instance involves only free fields and so its
quantization can be carried out in a rigorous way, e.g. along the
lines discussed in~\cite{Freed:2006ya,Freed:2006yc}. The gauge field $F=F([\check A])$ is a differential form of total
degree $d$ on spacetime, i.e. an element
\begin{eqnarray*}
F \ \in \ \Omega(M;E^\bullet)^d=\bigoplus_{k\in\mathbb{Z}}\,
\Omega^k(M;E^{d-k}) \ .
\end{eqnarray*}

In this paper we are primarily interested in two particular physical
applications of this general construction.
\begin{itemize}
\item When $\E^\bullet=\RH^\bullet$ is ordinary cohomology, this
  construction gives the differential cohomology $\check\RH{}^\bullet$ considered in
  this section. In this case $H^\bullet=\mathbb{R}$ and $\varphi$ is the map $\RH^\bullet(M;\mathbb{Z})\hookrightarrow
  \RH^\bullet(M;\mathbb{R})$ induced by the inclusion $\mathbb{Z}\hookrightarrow
  \mathbb{R}$ of abelian groups with $F\big([{\tt or}_{\RH}(M)]\big)=1$. This is the model that is appropriate to
  higher abelian gauge theory with extended $p-1$-brane charges,
  e.g.~the fluxes of supergravity.
\item When $\E^\bullet= {\rm R}^{-1}$ is the version of connective
  KO-theory defined by its truncated Postnikov spectrum of real vector
  spaces at degree four, which sits
inside an exact sequence
\begin{eqnarray*}
0 \ \longrightarrow \ \RH^3(M;\mathbb{Z}) \ \longrightarrow \ {\rm
R}^{-1}(M) \ \longrightarrow \ {\begin{matrix} \RH^0(M;\mathbb{Z}_2)\\ \oplus
\\ \RH^1(M;\mathbb{Z}_2) \end{matrix}} \ \longrightarrow \ 0 \ ,
\end{eqnarray*}
the corresponding smooth refinement $\check{\rm R}{}^{-1}$ can be
modelled by a 2-groupoid
consisting of invertible elements of a symmetric monoidal 2-category
whose objects are $\mathbb{C}$-algebras, morphisms are $\mathbb{Z}_2$-graded algebra
bimodules, 2-morphisms are intertwiners between bimodules, and
monoidal structure provided by tensor product of
$\mathbb{C}$-algebras. This model consistently reconciles the target space and
worldsheet field theories of the $B$-field; the three-form $H$-flux in Type~II
  superstring theory is
Dirac quantized by a ``differential $B$-field'' which is an object of
$\check{\rm R}{}^{-1}(M)$, whose charge group classifies the
twistings of the complex
K-theory of orbifolds.
 See~\cite{DFM,DFM2} for details.
\item When $\E^\bullet={\tt K}^\bullet$ is complex K-theory, this construction
  gives the differential K-theory $\check{\tt K}{}^\bullet$ of vector bundles
  with connection on $M$. Here $K^\bullet=\mathbb{R}(u)$ with $u^{-1}$ the
  Bott generator of degree $\deg(u^{-1})=-2$, and $\varphi$ is the
  modified Chern character from K-theory to real cohomology with
  normalising differential form
  $F\big([{\tt or}_{{\tt K}}(M)]\big) = \widehat{A}(M)$ the Atiyah--Hirzebruch class
  of the tangent bundle of $M$. This is
  the model that is appropriate to Ramond--Ramond gauge theory with
  D-brane charges in Type~II superstring theory. In this case the $p$-forms
  $F$ of \S\ref{GAGT}
correspond to Ramond--Ramond fields and
the submanifolds $W_e$ to the worldvolumes of D-branes; now the charges $q_e$ are classes in the complex K-theory
group ${\tt K}^0(W_e)$ and their pushforwards under the embedding $W_e\hookrightarrow M$
gives the Ramond--Ramond charge $[j_e]$ of a D-brane
wrapping $W_e$. These considerations are the subject
of the next section.
\end{itemize}

\bigskip

\section{Ramond--Ramond fields and differential K-theory\label{RRfields}}

\subsection{D-branes and K-cycles\label{DBranes}}

We begin with a brief mathematical introduction to D-branes in Type~II
superstring theory;
see~\cite{Szabo:2008hx} for further details and references. A D-brane
is a suitable boundary condition for the Euler--Lagrange equations in
a two-dimensional superconformal field theory on an open oriented
Riemann surface $\Sigma$. It is realized as a submanifold $W\subset M$
of spacetime onto which ``open strings attach''. Topologically, open
strings are the relative maps
\begin{eqnarray*}
(\Sigma,\partial\Sigma) \ \longrightarrow \ (M,W) \ .
\end{eqnarray*}
Compatibility with superconformal invariance constrains the allowed
``worldvolumes'' $W$, e.g. in the absence of $H$-flux,
Freed--Witten anomaly cancellation requires that $W$ be a spin$^c$
manifold (and hence K-oriented).

D-branes actually have more
structure: The worldvolume $W$ carries a complex
``Chan--Paton vector bundle'' $E$ with connection $\nabla$; here the
rank of $E$ is the ``number of D-branes wrapping'' $W\subset M$. Hence
the ``charge'' of a D-brane may be naturally considered as the complex
K-theory class $[E]\in{\tt K}^0(W)$.

However, in analogy with the charges in higher abelian gauge
theory, a homology theory is more natural in the description of
D-brane charges (see e.g.~\cite{Szabo:2002jv}); here we shall use the Baum--Douglas geometric
formulation of
K-homology~\cite{BaumDouglas}, which encodes important physical
aspects of D-branes in Type~I and
Type~II string theory~\cite{Reis:2005pp,Szabo:2008hx,Reis:2006th}. Most importantly, D-branes
are dynamical objects that ``interact with'' or ``couple to'' the
Ramond--Ramond fields of supergravity; this requires considerations
from differential K-theory which we explain later on. For the
moment, we briefly highlight a few of the salient features of this topological
description.

Let $M$ be a ten-dimensional spin manifold; a choice of spin structure
enables us to introduce fermions. Sometimes the manifold $M$ can also refer only to a
subspace of spacetime, for example when one considers string
compactifications; in that case $m=\dim(M)<10$. We suppose that there is no
background $H$-flux, which means that we can use untwisted cohomology
theories.

\begin{definition}
A \emph{D-brane} in $M$ is a Baum--Douglas K-cycle $(W,E,f)$, where
$f:W\hookrightarrow M$ is a closed spin$^c$ submanifold called the
\emph{worldvolume}, and $E\to W$ is a complex vector bundle with
connection called the \emph{Chan--Paton gauge bundle}.
\end{definition}

Note that the Chan--Paton bundle defines a \emph{stable} element of
${\tt K}^0(W)$. The collection of D-branes described in this way forms an
additive category under disjoint union of K-cycles. The quotient by Baum--Douglas
``gauge equivalence'' is isomorphic to the analytic K-homology of
$M$; the isomorphism classes of K-cycles generate the geometric
K-homology ${\tt K}_\bullet(M)$. In this way D-branes naturally provide K-homology classes on $M$
which are dual to K-theory classes $f_![E]\in{\tt K}^d(M)$, where $f_!$ is
the Gysin map in K-theory and $d$ is the codimension of $W$ in
$M$. There is a natural $\mathbb{Z}_2$-grading on K-cycles given by the
parity of the dimension of the worldvolume; the K-cycle $(W,E,f)$ is odd in Type~IIA
string theory and even in Type~IIB string theory.

Here we have used the usual physical intuition of a D-brane as an embedded
submanifold $S\subset M$ of spacetime. However, not all D-branes (regarded as consistent
boundary conditions in the underlying boundary conformal field theory)
admit such a geometric description. When they do we say that the
D-brane is ``representable''. The description of D-branes in terms of
Baum--Douglas K-cycles for K-homology naturally requires
non-representable branes~\cite{Reis:2005pp} with arbitrary maps
$f:W\to M$. A D-brane $(W,E,f)$ is said to \emph{wrap}
$S\subset M$ if $f(W)\subset S$, and to \emph{fill} $S$ if
$f(W)=S$.

As a consequence of the gauge equivalence relation of vector bundle modification,
together with the K-theory Thom isomorphism,
the class of any D-brane on $W$ may be expressed in terms of virtual
K-cycles on $M$ through
\begin{eqnarray*}
[M,\mathcal{S}_E^+,{\rm id}_M]-[M,\mathcal{S}_E^-,{\rm id}_M]= \pm\, [W,E,f] \ ,
\end{eqnarray*}
where $\mathcal{S}_E^\pm \to M$ are twisted spinor bundles. This is the
K-homology version of the \emph{Atiyah--Bott--Shapiro construction}; the
reduction of classes from the left-hand side to the right-hand side of this
equation represents the standard Sen--Witten construction of D-branes through \emph{tachyon condensation} on a brane-antibrane system
wrapping the whole spacetime $M$~\cite{Witten:1998cd,Olsen:1999xx}. More generally, for a given worldvolume $S$ the Sen--Witten
construction naturally assigns D-brane charges to classes of wrapped
branes in the K-homology ${\tt K}_\bullet(S)$~\cite{Reis:2005pp}.

The cohomological formula for the charge of a D-brane arises
physically through ``anomaly cancellation'' arguments. Mathematically,
it arises very naturally through the \emph{modified Chern character}
${\sf ch}\mapsto {\sf ch}\smile \sqrt{\widehat{A}(M)}$ which, by the
Atiyah--Singer index theorem, is an isometric isomorphism between
K-theory and cohomology groups over $\mathbb{R}$ with respect to their
natural bilinear pairings. On K-theory this pairing is given by the index
of the twisted Dirac operator, which coincides with the natural
intersection form on boundary states and computes the chiral fermion
anomaly on D-branes; on cohomology it is given by
evaluation on the fundamental class. Then the \emph{charge}
of a D-brane $(W,E,f)$ is given by
\begin{equation}
Q(W,E,f)={\sf ch}\big(f_![E]\big) \smile \sqrt{\widehat{A}(M)} \ \in \
\RH^\bullet(M;\mathbb{R}) \ .
\label{Dbranecharge}\end{equation}
This form of the charge vector is called the \emph{Minasian--Moore
  formula}~\cite{Minasian:1997mm}. It respects the Baum--Douglas gauge equivalence relations.

\subsection{Ramond--Ramond gauge theory\label{RRGT}}

Let us now look at D-branes and their charges as currents in a
suitable generalized abelian gauge theory. As before, let $M$ be a
ten-dimensional spin manifold. The generalized abelian gauge theory of Ramond--Ramond fields arises as a low-energy limit
of Type~II superstring theory from the quantum Hilbert space of states of
closed superstrings on the manifold $M$; we are interested in the
corresponding equations of motion in Type~II supergravity. We begin with a description
of topologically trivial Ramond--Ramond fields as elements of the
differential complex $\Omega^\bullet(M)$.

For this, let $K^\bullet$ be the $\mathbb{Z}$-graded real
vector space of Laurent polynomials
$\mathbb{R}(u)$, where $u^{-1}$ is the Bott generator of
${\tt K}^{-2}({\rm pt})\cong\mathbb{Z}[u^{-1}]$ with $\deg(u)=2$. Let
$\Omega(M;K^\bullet)^j$ denote the vector space of differential forms
on $M$ of \emph{total} degree $j$. In this article we are interested
mostly in the cases $j=0,-1$; an element $F\in\Omega(M;K^\bullet)^j$
then admits an expansion in even degree forms
\begin{equation}
F=\sum_{k=0}^5\, u^{-k}\otimes F_{2k} \qquad \mbox{for} \quad j=0
\label{IIARR}\end{equation}
and in odd degree forms
\begin{equation}
F=\sum_{k=1}^5\, u^{-k}\otimes F_{2k-1} \qquad \mbox{for} \quad j=-1 \
,
\label{IIBRR}\end{equation}
where $F_p\in\Omega^p(M)$. We call an element
$F\in\Omega(M;K^\bullet)^j$ the total \emph{Ramond--Ramond field
  strength}, where $j=0$ for the Type~IIA string theory while $j=-1$
for the Type~IIB string theory. In the IIA theory, the standard
supergravity Bianchi identity is
\begin{eqnarray*}
{\rm d} F=0 \ .
\end{eqnarray*}

The space of forms $\Omega(M;K^\bullet)^j$ is a symplectic vector
space with symplectic form given by
\begin{eqnarray*}
\omega_j=\Big[\, \frac12\, \int_M\, \delta F\wedge\Psi^{-1}_j(\delta F)\,
\Big]_{u^0} \ ,
\end{eqnarray*}
where the operation $[-]_{u^0}:= u^{-{\rm deg}/2}\, (-)$ projects out the constant coefficient
in $\Omega^j(M)$
of a Laurent polynomial in $\mathbb{R}(u)$, and
\begin{eqnarray*}
\Psi^{-1}_j\, :\, \Omega(M;K^\bullet)^j \ \longrightarrow \
\Omega(M;K^\bullet)^{10-j}
\end{eqnarray*}
is the map which essentially sends $F$ to its complex conjugate
$\overline{F}$, where $\overline{u}:=-u$; on decomposable elements
$F=u^k\otimes f$ it is given by
\begin{eqnarray*}
\Psi^{-1}_j(u^k\otimes f):= (-1)^{j\, (j-1)/2}\, u^{5-j}\, (-u)^k
\otimes f \
.
\end{eqnarray*}
In the IIA/IIB theories, one has the respective expansions
\begin{eqnarray*}
\omega_0(F,G)=\int_M \ \sum_{k=0}^5\, (-1)^{k+1}\, F_{2k}\wedge
G_{10-2k}
\end{eqnarray*}
and
\begin{eqnarray*}
\omega_{-1}(F,G)=\int_M \
\sum_{k=1}^5\, (-1)^{k+1}\, F_{2k-1}\wedge G_{11-2k} \ .
\end{eqnarray*}

Now we let $(M,g)$ be a ten-dimensional lorentzian spin manifold. Then
there is a metric of indefinite signature on the vector space
$\Omega(M;K^\bullet)^j$ given by
\begin{eqnarray*}
g_j(F,G):=\Big[\, \int_M\, F\wedge \check\iota(G)\,
\Big]_{u^0} \ ,
\end{eqnarray*}
where the map
\begin{eqnarray*}
\check\iota \,:\, \Omega(M;K^\bullet)^j \ \longrightarrow \
\Omega\big(M \,;\,
(K^\bullet)^*\big)^{10-j}
\end{eqnarray*}
is essentially the Hodge duality operator $\star$ associated to the lorentzian
metric $g$ on $M$, with the convention $\star:u\mapsto u^{-1}$; on decomposable elements
$F=u^k\otimes f$ it is given by
\begin{eqnarray*}
\check\iota(u^k\otimes f)= u^{-k}\otimes \star f \ .
\end{eqnarray*}
In the IIA/IIB theories, one has the respective expansions
\begin{eqnarray*}
g_0(F,G)=\int_M \ \sum_{k=0}^5\, F_{2k}\wedge \star
G_{2k} \qquad \mbox{and} \qquad g_{-1}(F,G)=\int_M \
\sum_{k=1}^5\, F_{2k-1}\wedge\star G_{2k-1} \ .
\end{eqnarray*}

The metric and symplectic form together define an involution
\begin{equation}
I_j\, :\, \Omega(M;K^\bullet)^j \ \longrightarrow \
\Omega(M;K^\bullet)^{j} \ , \qquad
I_j(F):=-\big((\Psi^{-1}_j)^{-1}\circ\check\iota\big)(F)
\label{Ijdef}\end{equation}
which has the property
\begin{eqnarray*}
g_j(F,G)=\omega_j\big(I_j(F)\,,\, G\big) \ .
\end{eqnarray*}
In the IIA/IIB theories, one has the respective expansions
\begin{equation}
I_0(F)= \sum_{k=0}^5\, (-1)^{k+1} \, u^{-k}\otimes \star F_{10-2k} \qquad
\mbox{and} \qquad I_{-1}(F)= \sum_{k=1}^5\, (-1)^k\, u^{-k}\otimes
\star F_{11-2k} \ .
\label{I0I-1}\end{equation}
This involution defines a $\mathbb{Z}_2$-grading on the vector space of
differential forms through the decomposition into $\pm\,1$ eigenspaces
\begin{eqnarray*}
\Omega(M;K^\bullet)^j= \Omega_+(M;K^\bullet)^j\oplus
\Omega_-(M;K^\bullet)^j
\end{eqnarray*}
with $I_j$ acting as multiplication by $\pm\,1$ on $\Omega_\pm(M;K^\bullet)^j$.

Forms $F^+\in \Omega_+(M;K^\bullet)^j$, i.e. forms $F^+$ which satisfy
\begin{equation}
I_j(F^+)=+\, F^+ \ ,
\label{IjF+}\end{equation}
are called \emph{self-dual forms}. An alternative
formulation of the self-duality equation (\ref{IjF+}) can be given using Clifford
algebras~\cite{Belov:2006xj}. On any lorentzian manifold $(M,g)$ of dimension $4k+2$,
$k\in\mathbb{N}$, the associated volume form ${\rm vol}_g$ defines a Clifford algebra
involution $\Gamma:={\tt c}({\rm vol}_g)$, where ${\tt c}(\omega)$ denotes
Clifford multiplication by the form $\omega$. We may then define the
involution $I_j$ on $\Omega(M;K^\bullet)^j$ by
\begin{eqnarray*}
{\tt c}\big(I_j(F)\big):= \Gamma\, {\tt c}(F)\ .
\end{eqnarray*}
This definition agrees with (\ref{I0I-1}) by using the property
\begin{eqnarray*}
\Gamma\, {\tt c}(F_p) = (-1)^{p\,(p+1)/2}\, {\tt c}(\star F_p)
\end{eqnarray*}
of Clifford multiplication for $F_p\in\Omega^p(M)$. Note that if we
work in euclidean signature instead, then $I_j$ would define a complex
structure which is compatible with the euclidean metric $g_j$ and the
symplectic form $\omega_j$; see~\cite{Belov:2006xj} for further details.

All the supergravity equations of motion for the Ramond--Ramond fields
in Type~II string theory can be rewritten using only the self-dual
form $F^+$. In particular, the equation
\begin{eqnarray*}
{\rm d} F^+=0
\end{eqnarray*}
contains both the Bianchi identity and the Ramond--Ramond equation of
motion
\begin{eqnarray*}
{\rm d} F=0 \qquad \mbox{and} \qquad {\rm d}\star F=0 \ .
\end{eqnarray*}
These equations are identical to the equations of motion that we
encountered in \S\ref{Abgauge} for abelian gauge theory, like the
Maxwell theory. This suggests that the Ramond--Ramond gauge theory
should be modelled on some sort of generalized differential
cohomology theory; we shall elaborate on this model soon.

For the
Type~IIA theory, the self-duality equations are
\begin{eqnarray*}
F_6=-\star F_4 \ , \qquad F_8=\star F_2 \qquad \mbox{and} \qquad
F_{10}=-\star F_0 \ ,
\end{eqnarray*}
and hence from (\ref{IIARR}) the Type~IIA self-dual Ramond--Ramond
field has an expansion
\begin{eqnarray*}
F^+=u^0\otimes F_1+u^{-1}\otimes F_2+u^{-2}\otimes F_4+u^{-3}\otimes\star
F_4-u^{-4}\otimes \star F_2+u^{-5}\otimes\star F_0
\end{eqnarray*}
with the equations of motion
\begin{eqnarray*}
{\rm d} F_0={\rm d} F_2={\rm d} F_4=0={\rm d}\star F_4={\rm d}\star F_2 \ .
\end{eqnarray*}
Similarly, from (\ref{IIBRR}) the Type~IIB self-dual Ramond--Ramond
field has an expansion
\begin{eqnarray*}
F^+= u^{-1}\otimes F_1+u^{-2}\otimes F_3+u^{-3}\otimes
F_5^++u^{-4}\otimes \star F_3-u^{-5}\otimes\star F_1 \ ,
\end{eqnarray*}
with $\star F_5^+=-F_5^+$ and the equations of motion
\begin{eqnarray*}
{\rm d} F_1={\rm d} F_3=0={\rm d}\star F_3={\rm d}\star F_1 \qquad \mbox{and} \qquad
{\rm d} F_5^+=0 \ .
\end{eqnarray*}

Note that these expressions are just particular parametrizations of the self-dual
field $F^+$: It can always be written as
\begin{eqnarray*}
F^+=F+I_j(F) \qquad \mbox{with} \quad F\in \Omega(M;K^\bullet)^j \ ,
\end{eqnarray*}
but the form $F$ is \emph{not} unique. The self-duality condition on the total
Ramond--Ramond field strength is a feature that we will have to deal
with carefully later on. Together with the constraint on the parity of
differential form degree, it is the requirement of the GSO projection
in the underlying closed superstring theory on the manifold $M$. Note also
that, generally, a necessary condition for the existence of solutions
to the self-duality equations on a lorentzian manifold $(M,g)$ is that $\dim(M)=4k+2$ with $k\in\mathbb{N}$;
only under these conditions is the map (\ref{Ijdef}) an involution.

\subsubsection*{Ramond--Ramond currents}

At the level of topologically trivial fields, the Ramond--Ramond
fields are \emph{sourced} by D-branes on $M$, just like the
electromagnetic fields of Maxwell theory are \emph{sourced} by
electrically charged particles. ``Anomaly cancellation'' arguments in
the Ramond--Ramond abelian gauge theory requires that, in the presence
of a D-brane $(W,E,f)$, the Ramond--Ramond fields obey the equations
of motion
\begin{equation}
{\rm d} F=0 \qquad \mbox{and} \qquad {\rm d}\star F=j(W,E,f) \ ,
\label{RReoms}\end{equation}
where $j(W,E,f)$ is the ``Ramond--Ramond current'' whose cohomology
class is given by the D-brane charge vector (\ref{Dbranecharge}) and
as before we use a distributional representative of the Poincar\'e
dual class ${\sf Pd}_M(f(W))$. Note the formal equivalence of (\ref{RReoms}) to the equations of
motion (\ref{GAGTeom}) of (higher) abelian gauge theories. In particular, the
Ramond--Ramond field is a trivialization of the Ramond--Ramond
current. However, these equations are incompatible with the
self-duality of $F$.

\subsection{Semi-classical quantization}

Since the Ramond--Ramond charges of D-branes are classified by the complex
K-theory ${\tt K}_c^{j}(M)$ of spacetime with compact support (with
$j=0/-1$ in Type~IIB/IIA theory), it is natural to expect that the
Ramond--Ramond fields are also classified in some way via
K-theory. This statement about the K-theory classification of
Ramond--Ramond fields on a locally compact spacetime $M$ follows from
the relation between D-brane charges and the group of Ramond--Ramond
fluxes ``measured at infinity''.

For this, let $M$ be a non-compact manifold, e.g. $M=\mathbb{R}\times N$ with
$N$ non-compact. If the worldvolume $W$ is compact inside the K-cycles
$(W,E,f)$, then the current $j(W,E,f)$ is supported in the interior
$\mathring{M}\subset M$. Let $M_\infty$ be the ``boundary of $M$ at
infinity'', e.g. $(\mathbb{R}^n)_\infty=S^{n-1}$. Since $j(W,E,f)$ is
trivialized by $F$ in $\mathring{M}$, the D-brane charge lives in the
kernel of the natural forgetful homomorphism
\begin{eqnarray*}
\mathfrak{q}^\bullet \,:\, {\tt K}^\bullet_c(M) \ \longrightarrow \
{\tt K}^\bullet(M)
\end{eqnarray*}
induced by the inclusions
\begin{eqnarray*}
(M,\emptyset) \ \hookrightarrow \ (M,M_\infty) \qquad \mbox{and}
\qquad i\,:\, M_\infty \ \hookrightarrow \ M
\end{eqnarray*}
of (relative pairs of) locally compact spaces; this morphism forgets about the compact support condition, with
${\tt K}_c^\bullet(M)\cong {\tt K}^\bullet(M,M_\infty)$ given by relative K-theory. By Bott periodicity,
the long exact sequence for the pair $(M,M_\infty)$ in K-theory
truncates to the six-term exact sequence
\begin{eqnarray*}
\xymatrix{{\tt K}^{-1}(M_\infty)~\ar[r]&~{{\tt K}^{0}(M,M_\infty)}~
\ar[r]^{ \ \ \mathfrak{q}^0}& ~{\tt K}^{0}(M)\ar[d]^{i^*}\\
{\tt K}^{-1}(M)~\ar[u]^{i^*}&\ar[l]^{\!\!\mathfrak{q}^{-1}}~{\tt K}^{-1}(M,M_\infty)~&
\ar[l]~{\tt K}^{0}(M_\infty) }
\end{eqnarray*}
It follows that the D-brane charge groups are given by
\begin{eqnarray*}
\ker(\mathfrak{q}^0)\cong {\tt K}^{-1}(M_\infty)\,\big/\,
i^*\big({\tt K}^{-1}(M)\big) \qquad \mbox{and} \qquad
\ker(\mathfrak{q}^{-1})\cong {\tt K}^0(M_\infty)\,\big/\,
i^*\big({\tt K}^0(M)\big) \ .
\end{eqnarray*}
We interpret these formulas in the following way. D-brane charge,
regarded as the total charge of a Ramond--Ramond current
$j(W,E,f)$, can only be detected by classes of fields at infinity
$M_\infty$ which are \emph{not} the restrictions of fields defined on
$\mathring{M}$, i.e. which cannot be extended to all of spacetime
$M$. Moreover, the group ${\tt K}^j(M)$ for $j=0,-1$ classifies fields $F$
which do not contribute to the D-brane charge, i.e. ${\tt K}^j(M)$
topologically classifies gauge equivalence classes of Ramond--Ramond
fields in the absence of D-branes, where $j=0,-1$ for
Type~IIA/IIB string theory. In the following we will \emph{assume}
that this relation between Ramond--Ramond fields and K-theory holds
for arbitrary spacetime manifolds $M$.

Let us now make explicit the relation between the Ramond--Ramond
fields and cohomology, i.e. the de~Rham cohomology class
$[F(\xi)]_{\rm dR}$ associated to an element $\xi\in{\tt K}^j(M)$ that
determines (the class of) the Ramond--Ramond field
$F$. In~\cite{Moore2000} it is argued using the Ramond--Ramond
equation of motion from (\ref{RReoms}) that
\begin{eqnarray*}
[F]_{\rm dR} \ \in \ \Lambda_{{\tt K}^j}\subset \RH(M;K^\bullet)^j \ ,
\end{eqnarray*}
where the full lattice $\Lambda_{{\tt K}^j}$ is the image of the modified
Chern character map
\begin{eqnarray*}
{\sf ch}\wedge\sqrt{\widehat{A}(M)} \,:\, {\tt K}^j(M) \ \longrightarrow \
\RH(M;K^\bullet)^j
\end{eqnarray*}
which is a group isomorphism over $\mathbb{R}$. This means that the cohomology class of
the Ramond--Ramond field $F$ associated to the K-theory class
$\xi\in{\tt K}^j(M)$ is
\begin{equation}
\big[F(\xi)\big]={\sf ch}(\xi)\smile \sqrt{\widehat{A}(M)} \ .
\label{RRfieldKclass}\end{equation}
This formula is interpreted as the Dirac quantization condition for
Ramond--Ramond fields in Type~II string theory. It follows that the
Ramond--Ramond field is given by a representative for an element of
\emph{differential K-theory}, which we now proceed to describe in some
detail.

\subsection{Differential K-theory\label{DiffK}}

The set of gauge inequivalent Ramond--Ramond fields (or equivalently
gauge equivalence classes of Ramond--Ramond currents) lives inside an
infinite-dimensional abelian Lie group $\check{\tt K}{}^j(M)$, the
differential K-theory group of spacetime $M$; its connected components
are labelled by the complex K-theory ${\tt K}^j(M)$, the group of D-brane charges. The group $\check{\tt K}{}^j(M)$
extends the setwise fibre product
\begin{eqnarray*}
\Omega_\mathbb{Z}(M;K^\bullet)^j\times_{[-]} {\tt K}^j(M):=\Big\{(F,\xi)\ \Big| \ {\sf ch}(\xi)\wedge \sqrt{\widehat{A}(M)} =
[F]_{\rm dR} \Big\}
\end{eqnarray*}
by the torus of topologically trivial flat Ramond--Ramond fields,
i.e. there is an exact sequence
\begin{eqnarray*}
0 \ \longrightarrow \ {\tt K}^{j-1}(M)\otimes{\mathbb T} \ \longrightarrow \
\check{\tt K}{}^j(M) \ \longrightarrow \ \Omega_\mathbb{Z}(M;K^\bullet)^j\times_{[-]} {\tt K}^j(M) \ \longrightarrow \ 0 \ .
\end{eqnarray*}
In general, a Ramond--Ramond \emph{potential} is a representative for
a class $[\check C]$
in the differential K-theory $\check{\tt K}{}^j(M)$. As before, this group
can be characterised by two short exact sequences which are summarised
in the diagram
\begin{equation}
\xymatrix{
0 \ar[dr] & & & & 0 \\
 & {\tt K}^{j-1}(M;{\mathbb T}) \ar[dr] & & {\tt K}^j(M) \ar[ur] & \\
 & & \check{\tt K}{}^j(M) \ar[ur]^c \ar[dr]^F & & \\
 & \Omega(M;K^\bullet)^{j-1} \,\big/ \, \Omega_\mathbb{Z}(M;K^\bullet)^{j-1} \ar[ur] & &
 \Omega_\mathbb{Z}(M;K^\bullet)^j \ar[dr] & \\
0 \ar[ur] & & & & 0
}
\label{diffKexactseqs}\end{equation}
where the kernel of the field strength map $F$ is the group of flat
Ramond--Ramond fields on $M$, while the kernel of the characteristic
class map $c$ is the torus of topologically trivial Ramond--Ramond
gauge potentials. Let us pause to briefly describe the structures of each of
these classes of fields, as they will play a prominent role in our
applications.

\subsubsection*{Flat Ramond--Ramond fields}

The group ${\tt K}^j(M;{\mathbb T})$ of flat fields can be described as explained
in \S\ref{Gendiffcoh}, by using the
short exact sequence of abelian groups (\ref{ZRTseq}) to write the
corresponding long exact sequence in complex K-theory
\begin{equation}
\cdots \ \longrightarrow \ {\tt K}^j(M) \ \longrightarrow \ {\tt K}^j(M)\otimes\mathbb{R}
\ \longrightarrow \
{\tt K}^j(M;{\mathbb T}) \ \xrightarrow{ \ \delta \ } \ {\tt K}^{j+1}(M) \ \longrightarrow \
\cdots \ .
\label{Ktheorylongexact}\end{equation}
Using the Chern character homomorphism, the flat Ramond--Ramond fields
are thus described by the short exact sequence
\begin{eqnarray*}
0 \ \longrightarrow \ \RH^j(X;\mathbb{R})\,\big/ \, \Lambda_{{\tt K}^j} \
\longrightarrow \ {\tt K}^j(M;{\mathbb T}) \ \xrightarrow{ \ \beta \ } \
{\sf Tor}\, {\tt K}^{j+1}(M) \ \longrightarrow \ 0 \ ,
\end{eqnarray*}
where the Bockstein homomorphism $\beta$ is induced from the
connecting homomorphism $\delta$ in the long exact sequence
(\ref{Ktheorylongexact}). If the K-theory group ${\tt K}^{j+1}(M)$ is pure
torsion, then the flat torsion Ramond--Ramond fields can be
represented in terms of virtual flat vector bundles over $M$ as
\begin{equation}
{\tt K}^j(M;{\mathbb T})\cong {\sf Tor}\, {\tt K}^{j+1}(M) \ .
\label{KjMTTor}\end{equation}
By Pontrjagin duality of K-theory, we have
\begin{equation}
{\tt K}^j(M;{\mathbb T})\cong{\sf Hom}_{\mathscr{A}b}\big({\tt K}_j(M)\,,\, {\mathbb T}\big) \ ,
\label{PontrdualityKth}\end{equation}
where ${\tt K}_\bullet$ is geometric K-homology. The
isomorphism (\ref{PontrdualityKth}) follows by using the fact that
${\mathbb T}=\mathbb{R}/\mathbb{Z}$ is a divisible group along with the universal coefficient
theorem for K-theory to find $${\sf Ext}_{\mathscr{A}b}\big({\tt K}_j(M)\,,\,{\mathbb T} \big)=0$$ for all $j\in\mathbb{Z}$;
this implies that the contravariant functor $G\mapsto {\sf Hom}_{\mathscr{A}b}(G,{\mathbb T})$
from the category of abelian groups into itself takes exact sequences
into exact sequences.

The Ramond--Ramond flux couplings implied by
(\ref{KjMTTor})--(\ref{PontrdualityKth}) can be made explicitly to
``background D-branes'', which are \emph{K-chains} $\big( \,
\widetilde{W}\,,\, \widetilde{E}\,,\, \widetilde{f}\ \big)$ whose boundary
\begin{equation}
\partial_{{\tt K}} \big( \,
\widetilde{W}\,,\, \widetilde{E}\,,\, \widetilde{f}\ \big):= \big( \,
\partial\widetilde{W}\,,\, \widetilde{E}\,\big|_{\partial{\widetilde{W}}}\,,\,
\widetilde{f}\, \big|_{\partial{\widetilde{W}}}\, \big) = (W,E,f)
\label{Kchainbdry}\end{equation}
is a Baum--Douglas K-cycle. The \emph{holonomy} over such a
D-brane background with flat Ramond--Ramond flux given by
\begin{eqnarray*}
\xi=[E_0]-[E_1] \ \in \ {\tt K}^{-1}(M;{\mathbb T})\cong{\sf Hom}_{\mathscr{A}b}\big({\tt K}_{\rm odd}(M) \,,\,
{\mathbb T} \big) \ ,
\end{eqnarray*}
where $E_0,E_1$ are complex vector bundles on $M$ of equal rank, is
then defined by the virtual K-chain
\begin{equation}
\big( \,
\widetilde{W}\,,\, \widetilde{f^*E_0}\,,\, \widetilde{f}\ \big) - \big( \,
\widetilde{W}\,,\, \widetilde{f^*E_1}\,,\, \widetilde{f}\ \big) \ .
\label{virtualKchain}\end{equation}
Unlike the couplings to D-branes, these couplings do not define spin$^c$
bordism invariants.

\subsubsection*{Topologically trivial Ramond--Ramond fields}

The torus of topologically trivial fields
$\Omega(M;K^\bullet)^{j}/\Omega_\mathbb{Z}(M;K^\bullet)^{j}$ consists of globally defined
differential forms on $M$, i.e. $[\check C]=[C]$ with
$C\in\Omega(M;K^\bullet)^j$; these are the Ramond--Ramond potentials that are normally considered in
the physics literature. The field strength of such a potential is
\begin{eqnarray*}
F\big( [C]\big)={\rm d} C
\end{eqnarray*}
and the gauge invariance is
\begin{eqnarray*}
C \ \longmapsto \ C+{\rm d}\xi \qquad \mbox{with} \quad
\xi\in\Omega(M;K^\bullet)^{j-1}\, \big/\, \Omega_\mathbb{Z}(M;K^\bullet)^{j-1} \ .
\end{eqnarray*}

\subsubsection*{Properties}

\begin{enumerate}
\item The differential K-theory is 2-periodic:
\begin{eqnarray*}
\check{\tt K}{}^{j+2}(M) \cong \check{\tt K}{}^j(M) \ .
\end{eqnarray*}
\item There is a graded-commutative ring multiplication
\begin{eqnarray*}
\smile \,:\, \check{\tt K}{}^j(M)\otimes \check{\tt K}{}^{j'}(M) \ \longrightarrow \
\check{\tt K}{}^{j+j'}(M)
\end{eqnarray*}
which acts on topologically trivial fields $C$ as
\begin{eqnarray*}
[C]\otimes [\check C{}'\,] \ \longmapsto \ \big[C\wedge F\big([\check
C{}'\,]\big) \big] \ .
\end{eqnarray*}
\item A \emph{$\check{\tt K}$-orientation} or \emph{smooth K-orientation} on a manifold $M$ is a
  choice of spin$^c$ structure together with a riemannian structure
  and a compatible smooth connection on the spin$^c$ bundle. For
  $M$ $\check{\tt K}$-oriented there is an integration map
\begin{eqnarray*}
\int^{\check{\tt K}}\!\!\!\!\!\int_M \,:\, \check{\tt K}{}^j(M) \ \longrightarrow \
\check{\tt K}{}^{j-m}({\rm pt})
\end{eqnarray*}
where $m=\dim(M)=10$. For topologically trivial fields $C$ it is given
by
\begin{eqnarray*}
\int^{\check{\tt K}}\!\!\!\!\!\int_M \, [C] =u^{\lfloor m/2\rfloor}\, \Big[\, \int_M\,
C\wedge\widehat{A}(M)\, \Big]_{u^0} \quad \mbox{mod} \ \mathbb{Z} \ .
\end{eqnarray*}
The integration map commutes with the field strength map, if the
integration of forms is defined appropriately using the orientation curvature, in the sense
that the curvature of $\int^{\check{\tt K}}\!\!\!\int_M \, [\check C]$ is $\int_M\,
\widehat{A}(M)\wedge F([\check C])$ by the Riemann--Roch theorem.
\end{enumerate}

\subsubsection*{Examples}

Using the exact sequences from (\ref{diffKexactseqs}) one can work out
differential K-theory groups explicitly in a number of basic examples.
\begin{itemize}
\item When $M$ is a point one has
\begin{eqnarray*}
\check{\tt K}{}^0({\rm pt})=\mathbb{Z} \qquad \mbox{and} \qquad \check{\tt K}{}^{-1}({\rm pt}) =
{\mathbb T} \ .
\end{eqnarray*}
\item Let $R$ be a linear vector space over $\mathbb{C}$. Then $R$ is
contractible, so one has $\RH(R;K^\bullet)^{-1} = 0 = {\tt K}^{-1}(R)$ and
${\tt K}^0(R)=\mathbb{Z}$. Whence the group of Type~IIA Ramond--Ramond potentials on
$R$ is given by
\begin{eqnarray*}
\check{\tt K}{}^0(R)=\Omega_\mathbb{Z}(R;K^\bullet)^0 \ \longrightarrow \
\mathbb{Z} \, \oplus \, \Omega(R;K^\bullet)^{-1} \, \big/\, \Omega_\mathbb{Z}(R;K^\bullet)^{-1} \ .
\end{eqnarray*}
It naturally contains those fields which trivialize the Ramond--Ramond
currents sourced by the stable D0-branes of the Type~IIA theory,
corresponding to characteristic classes $[c]\in{\tt K}^0(R)=\mathbb{Z}$. Since $R$ is contractible, the potential is determined in positive
degree by a
globally-defined differential form $C$ of curvature $F([C])= {\rm d} C$, with
the gauge invariance $C\mapsto C+{\rm d}\xi$. The arrow is then the
natural map which associates to the field strength $F$ the
corresponding globally well-defined Ramond--Ramond potential $C$. The group of Type~IIB
Ramond--Ramond potentials on $R$ is on the other hand given by
\begin{eqnarray*}
\check{\tt K}{}^{-1}(R)= \Omega(R;K^\bullet)^{0} \, \big/\, \Omega_\mathbb{Z}(R; K^\bullet)^{0} \ .
\end{eqnarray*}
In this case there is no extension as the Type~IIB theory has no
stable D0-branes, and hence the Ramond--Ramond fields are determined
entirely by the potentials $C$ which are globally defined differential
forms of even degree.
\end{itemize}

\subsection{Models for differential K-theory}

Let us now look at some explicit models for the differential K-theory
groups, stressing the virtues and drawbacks of each approach from a
physical perspective. For brevity we consider only the degree zero
groups $\check{\tt K}{}^0(M)$ pertinent to the Type~IIA string theory.

\subsubsection*{Differential function spaces}

The foundational construction of differential K-theory is found
in~\cite{Hopkins:2002rd}; this approach is based on classifying maps
for complex K-theory. Let ${\tt Fred}$ denote the algebra of Fredholm
operators on a separable Hilbert space. Taking the index bundle of a
homotopy class of maps $c:M\to{\tt Fred}$ determines an isomorphism
\begin{equation}
[M,{\tt Fred}] \ \xrightarrow{\Index} \ {\tt K}^0(M) \ .
\label{FredK0}\end{equation}
The cocycles for $\check{\tt K}{}^0(M)$ are triples $(c,h,\omega)$, where
$c:M\to{\tt Fred}$ represents a K-theory class via the isomorphism
(\ref{FredK0}), $h\in C(M;K^\bullet)^{-1}$ is a cochain on $M$, and
$\omega\in\Omega_{\rm cl}(M;K^\bullet)^0$ is a closed differential form on $M$ of even
degree such that
$c^*{\tt u}-\delta h=\omega$ where the cocycle ${\tt u}\in Z({\tt Fred};K^\bullet)^0$
represents the Chern character of the universal vector bundle. One then
defines an equivalence relation by declaring two cocycles to be
equivalent ``up to homotopy''. Although powerful because of its generality,
this approach is not very useful for constructing the extra geometrical
ingredients required in gauge
theory; a graded-commutative product structure in this model is
described in~\cite{Upmeier}.

\subsubsection*{Chan--Paton gauge fields}

A more geometric approach is given
in~\cite{Freed:2000ta}, which may be thought of as equipping the
Chan--Paton vector bundles of background D-branes that wrap the whole spacetime $M$ with
connections, and then constructing Ramond--Ramond potentials in an
analogous way to that described in \S\ref{DBranes} In this model one represents classes in
$\check{\tt K}{}^0(M)$ by pairs $(E,\nabla)$, where $E\to M$ is a hermitian
vector bundle and $\nabla$ is a unitary connection on $E$. The cocycles are
then triples $(f,\eta,\omega)$, where $f:M\to BU$ is a classifying
map for $E$, $\omega={\sf ch}(\nabla)$ is the Chern--Weil representative of
the Chern characteristic class ${\sf ch}([E])$, and $\eta$ is a Chern--Simons form
with the property
\begin{eqnarray*}
{\rm d}\eta=f^*\omega_{BU}-\omega \ ,
\end{eqnarray*}
with $\omega_{BU}={\sf ch}(\nabla_{BU})$ the Chern characteristic class of
the universal bundle over $BU$ with universal connection
$\nabla_{BU}$. A refinement of the index theorem in this model can be
found in~\cite{FreedLott}.

\subsubsection*{Configuration space and gauge transformations of Ramond--Ramond fields}

As we have explained, locality of quantum field theory requires the
use of cocycles rather than isomorphism classes. We will regard the
Ramond--Ramond gauge fields as objects in a certain monoidal category
$\check\mathscr{K}_M$ whose morphisms are gauge transformations. A
construction of a category $\check\mathscr{K}_M$ of differential K-cocycles is sketched
in~\cite{Freed:2006yc} whose isomorphism classes are precisely the
differential K-theory classes in the group
$\check{\tt K}{}^0(M)$, and which is a \emph{groupoid}; below we elaborate on
this description. We identify gauge
fields up to isomorphism of cocycles. The monoidal structure on
$\check\mathscr{K}_M$ is generated by the sum of cocycles.

The objects of the
category $\check\mathscr{K}_M$ are triples $\check C= (E,\nabla,C)$, where
$E\to M$ is a $\mathbb{Z}_2$-graded hermitian
vector bundle, $\nabla$ is a unitary connection on $E$, and
$C\in\Omega(M;K^\bullet)^{-1}$ is a differential form on $M$ of odd
degree. The field strength of such an object is given by~\cite{FreedLott}
\begin{eqnarray*}
F(E,\nabla, C)={\sf ch}(\nabla)+{\rm d}  C \ ,
\end{eqnarray*}
where
\begin{eqnarray*}
{\sf ch}(\nabla)= {\rm Tr} \exp\big(-\mbox{$\frac1{2\pi{\,{\rm i}\,}}$}\,
u^{-1}\otimes\nabla^2\, \big) \ \in \
\Omega_{\rm cl}(M;K^\bullet)^0
\end{eqnarray*}
is the corresponding Chern character form which gives the curvature
contribution from background D-branes. In the topologically
trivial case we take $E=\emptyset$ to be the empty vector bundle and the differential form $C$ is
what is normally called the Ramond--Ramond field (or more precisely
potential) of Type~IIA string theory. The monoidal structure on objects is given by
\begin{eqnarray*}
\hat C + \hat C{}'= (E,\nabla,C)+(E',\nabla',C'\,)= (E\oplus
E',\nabla\oplus \nabla',C+C'\,) \ ,
\end{eqnarray*}
and a zero object $\hat C=0$ is represented by $(E\oplus E^{\rm
  op},\nabla\oplus\nabla,0)$ for a $\mathbb{Z}_2$-graded vector bundle $E$,
where $E^{\rm op}$ denotes the bundle $E$ with the opposite grading.

A pre-morphism $g: \check C_0\longrightarrow\check C_1$ between two
objects $\check C_0=(E_0,\nabla_0, C_0)$ and
$\check C_1=(E_1,\nabla_1, C_1)$ is a triple
$\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,,\, { \lambda}\ \big)$,
where $\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \, \big)$ is a $\mathbb{Z}_2$-graded
vector bundle with connection on
$M\times I$, $I=[0,1]$ such that
\begin{eqnarray*}
\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,
\big)\Big|_{M\times 0}= (E_0,\nabla_0) \qquad \mbox{and} \qquad
\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,
\big)\Big|_{M\times 1}= (E_1,\nabla_1) \ ,
\end{eqnarray*}
with $\widetilde{F}=F\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,,\,
{ \lambda}\, \big)$ constant along $t\in[0,1]$,
i.e. $i_{\partial/{\partial t}}\widetilde{F}=0$, and
$\lambda\in\Omega(M;K^\bullet)^{0}$ such that
\begin{eqnarray*}
 C_1=  C_0+ {\sf CS}(\nabla_0,\nabla_1) +{\rm d}\lambda
\end{eqnarray*}
is given by a transgression form obtained from a canonically defined
Chern--Simons class~\cite{Lott}
\begin{eqnarray*}
{\sf CS}(\nabla_0,\nabla_1)=\int_0^1\, {\sf ch}\big(\, \widetilde{\nabla}\, \big) \ \in \
\Omega(M;K^\bullet)^{-1}\,\big/\, {\rm im}({\rm d})
\end{eqnarray*}
with the property
\begin{eqnarray*}
{\rm d}{\sf CS}(\nabla_0,\nabla_1)={\sf ch}(\nabla_0)-{\sf ch}(\nabla_1) \ .
\end{eqnarray*}
The relations are $E_2=E_1+E_3$ whenever there is a short exact
sequence of vector bundles
\begin{eqnarray*}
0 \ \longrightarrow \ E_1 \ \xrightarrow{ \ i \ } \ E_2 \ \xrightarrow{
  \ j \ } \ E_3 \ \longrightarrow \ 0 \ .
\end{eqnarray*}
Choosing a splitting $s:E_3\to E_2$ gives an isomorphism $i\oplus
s:E_1\oplus E_3\to E_2$. If $\nabla^{E_i}$ is a connection on $E_i\to
M$, then the corresponding relative Chern--Simons form
\begin{eqnarray*}
{\sf CS}\big(\nabla^{E_1}\,,\,\nabla^{E_2}
\,,\,\nabla^{E_3}\big):={\sf CS}\big((i\oplus s)^*\nabla^{E_2}\,,\,
\nabla^{E_1}\oplus\nabla^{E_3}\big) \ \in \
\Omega(M;K^\bullet)^{-1}\,\big/\, {\rm im}({\rm d})
\end{eqnarray*}
is independent of the choice of splitting morphism $s$ and satisfies
\begin{eqnarray*}
{\rm d}{\sf CS}\big(\nabla^{E_1}\,,\,\nabla^{E_2}
\,,\,\nabla^{E_3}\big) = {\sf ch}\big(\nabla^{E_2}\big) -
{\sf ch}\big(\nabla^{E_1}\big)- {\sf ch}\big(\nabla^{E_3}\big) \ .
\end{eqnarray*}
We then set $C_2=C_1+C_3-{\sf CS}\big(\nabla^{E_1}\,,\,\nabla^{E_2}
\,,\,\nabla^{E_3}\big)$.

Two pre-morphisms
\begin{eqnarray*}
(E_0,\nabla_0, C_0)\xrightarrow{(\,\widetilde{G}_0,\widetilde{\nabla}_0
  ,{ \lambda}_0 \, )}(E_1,\nabla_1, C_1) \qquad \mbox{and} \qquad
(E_0,\nabla_0, C_0)\xrightarrow{(\,\widetilde{G}_1 ,\widetilde{\nabla}_1
  , { \lambda}_1 \, )}(E_1,\nabla_1, C_1)
\end{eqnarray*}
are said to
be equivalent if there exists a triple $\big(\mbf{G},
\mbf{\nabla} , \mbf{ \lambda})$, where $\big(\mbf{G},
\mbf{\nabla} )$ is a $\mathbb{Z}_2$-graded vector bundle with connection on $M\times
I\times I$
such that
\begin{eqnarray*}
(\mbf{G},
\mbf{\nabla}) \big|_{M\times
  0\times I}= \big(\,\widetilde{G}_0\,,\,\widetilde{\nabla}_0 \big) \qquad \mbox{and} \qquad (\mbf{G},
\mbf{\nabla}) \big|_{M\times
  I\times 0} = (E_0\times I,\nabla_0\times 1)
\end{eqnarray*}
while
\begin{eqnarray*}
(\mbf{G},
\mbf{\nabla})\big|_{M\times 1\times I} =
\big(\,\widetilde{G}_1\,,\,\widetilde{\nabla}_1 \big) \qquad \mbox{and} \qquad (\mbf{G},
\mbf{\nabla}) \big|_{M\times
  I\times 1} = (E_1\times I,\nabla_1\times 1) \ ,
\end{eqnarray*}
with $\mbf\lambda\in\Omega(M;K^\bullet)^{-1}/\,{\rm im}(d)$ such that
\begin{eqnarray*}
\lambda_1= \lambda_0+\int_0^1\, {\sf ch}(\mbf\nabla)
+{\rm d}\mbf\lambda \ .
\end{eqnarray*}
This generates an equivalence relation. Note that because of the
geometric product structure of $(\mbf G,\mbf\nabla)$, one has ${\rm d}
{\sf CS}\big(\, \widetilde\nabla_0\,,\,\widetilde\nabla_1
\, \big) =
{\sf ch}\big(\, \widetilde\nabla_0\, \big)-{\sf ch}\big(\,
\widetilde\nabla_1\, \big)$ and hence
\begin{eqnarray*}
\int_0^1\, {\sf ch}\big(\, \widetilde{\nabla}_0\, \big) +{\rm d}\lambda_0 = \int_0^1\,
{\sf ch}\big(\, \widetilde{\nabla}_1\, \big) +{\rm d}\lambda_1 \ .
\end{eqnarray*}
A \emph{gauge transformation} from $\check C_0$ to $\check C_1$ is an
equivalence class of pre-morphisms
$\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,,\, {
  \lambda}\, \big)$. We refer to the
shift of $C_0$ by ${\rm d}\lambda$ as a \emph{small} gauge transformation,
while the shift by the transgression form is called a \emph{large} gauge
transformation. Gauge transformations leave the corresponding
Ramond--Ramond field strengths invariant, $F([{\check C_0}]) =F([{\check
  C_1}] )$.

Next we construct the composition of gauge transformations. The
composition of pre-morphisms
\begin{eqnarray*}
\check C_0=(E_0,\nabla_0, C_0) \ \xrightarrow{(\,\widetilde{G}_1,\widetilde{\nabla}_1
  , { \lambda}_1\, )}  \ \check C_1= (E_1,\nabla_1, C_1)
\end{eqnarray*}
and
\begin{eqnarray*}
\check C_1= (E_1,\nabla_1, C_1) \ \xrightarrow{(\,\widetilde{G}_2 ,\widetilde{\nabla}_2
  , { \lambda}_2\, )} \ \check C_2= (E_2,\nabla_2, C_2)
\end{eqnarray*}
is the pre-morphism $\check
C_0\xrightarrow{(\,\widetilde{G},\widetilde{\nabla}
  , { \lambda} \, )}\check C_2$ defined as follows. There is a graded vector
bundle with connection on $M\times I$ defined by
\begin{eqnarray*}
\big(\,\widetilde{G}\,'\,,\,\widetilde{\nabla}' \,
\big) := \big(\,\widetilde{G}_1 \oplus \widetilde{G}_2
\,,\,\widetilde{\nabla}_1\oplus \widetilde{\nabla}_2 \,
\big)
\end{eqnarray*}
with
\begin{eqnarray*}
C_2=C_0+\int_0^1\,{\sf ch}\big(\,\widetilde\nabla'\, \big)
+{\rm d}(\lambda_1+\lambda_2) \ .
\end{eqnarray*}
Via concatenation of
paths, we now set $\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \, \big)\big|_{M\times t}$ equal to
$\big(\,\widetilde{G}_1\,,\,\widetilde{\nabla}_1 \, \big)\big|_{M\times (2t)}$ for  $0\leq t\leq\frac12$ and
to $\big(\,\widetilde{G}_2\,,\,\widetilde{\nabla}_2 \, \big)\big|_{M\times(2t-1)} $ for $\frac12\leq t\leq1$.
This is compatible with the required identity
\begin{eqnarray*}
{\sf CS}(\nabla_0,\nabla_2)=
\int_0^1\, {\sf ch}\big(\,\widetilde\nabla\,
\big)={\sf CS}(\nabla_0,\nabla_1)+{\sf CS}(\nabla_1,\nabla_2) \ .
\end{eqnarray*}
Likewise, we use concatenation of paths to define the graded vector bundle with connection $(\mbf E,{{\Large\blacktriangledown}})$ on
$M\times I\times I$ having the three boundary faces
\begin{eqnarray*}
\big((E_0,\nabla_0)\,,\,(E_1,\nabla_1) \big) \ , \qquad
\big((E_1,\nabla_1)\,,\,( E_2,\nabla_2) \big) \qquad  \mbox{and} \qquad
\big((E_2,\nabla_2)\,,\, (E_0,\nabla_0) \big) \ .
\end{eqnarray*}
One shows that
${\rm d}\int_0^1\,
{\sf ch}({{\Large\blacktriangledown}})=\int_0^1\,\big({\sf ch}(\,\widetilde\nabla_1\,)+{\sf ch}(\,\widetilde\nabla_2\,)
-{\sf ch}(\,\widetilde\nabla'\,) \big)$.
We set
\begin{eqnarray*}
\lambda=\lambda_1+\lambda_2+\int_0^1\,
{\sf ch}({{\Large\blacktriangledown}}) +{\rm d}\kappa
\end{eqnarray*}
for some $\kappa\in\Omega(M;K^\bullet)^{-1}/\,{\rm im}({\rm d})$.

\begin{lemma}
The composition $\big(\,\widetilde{G}_1\,,\,\widetilde{\nabla}_1 \,,\,
{ \lambda}_1\, \big)\circ
\big(\,\widetilde{G}_2\,,\,\widetilde{\nabla}_2 \,,\, {
  \lambda}_2 \, \big):= \big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,,\, { \lambda}\, \big)$
in
$\check\mathscr{K}_M$ is well-defined and associative.
\end{lemma}
\begin{proof}
We show that the composition is well-defined. Suppose, for
example, that the gauge transformation $g:\check C_0\longrightarrow\check C_1$ is
represented by equivalent pre-morphisms $\big(\,\widetilde{G}_1\,,\,\widetilde{\nabla}_1 \,,\,
{ \lambda}_1\, \big) $ and
$\big(\,\widetilde{G}^{\,\prime}_1\,,\,\widetilde{\nabla}^{\, \prime}_1 \,,\,
{ \lambda}^{\prime}_1\, \big) $, implemented by a triple
$(\mbf{G},
\mbf{\nabla} , \mbf{ \lambda }) $. Set $
\big(\,\widetilde{G}^{\,\prime}\,,\,\widetilde{\nabla}^{\,\prime}
\, \big) =\big(\,\widetilde{G}_1^{\, \prime}\,,\,\widetilde{\nabla}^{\, \prime}_1 \, \big)\circ
\big(\,\widetilde{G}_2\,,\,\widetilde{\nabla}_2 \, \big)$ and
$\lambda'=\lambda_1'+\lambda_2+\int_0^1\,
{\sf ch}(\,{{\Large\blacktriangledown}}'\,)+{\rm d}(\kappa- \mbf\lambda)$, where the vector
bundle
with connection $(\mbf E',{{\Large\blacktriangledown}}'\,)$ on $M\times I\times I$ is
obtained from $(\mbf E,{{\Large\blacktriangledown}})$ by replacing $\widetilde G_1$ with
$\widetilde G_1^{\,\prime}$. Then the condition
$\lambda_1^{\prime}= \lambda_1+\int_0^1\,{\sf ch}(\mbf\nabla)
+{\rm d}\mbf\lambda$ immediately implies that $\big(\,\widetilde{G}\,,\,\widetilde{\nabla} \,,\, { \lambda}\, \big)$ and $
\big(\,\widetilde{G}^{\,\prime}\,,\,\widetilde{\nabla}^{\,\prime}
\,,\, { \lambda}^{\prime}\, \big)$ determine equivalent gauge transformations. We
leave the check of associativity to the interested reader.
\end{proof}

The composition law above defines a group structure on the set of all
gauge transformations on $\check\mathscr{K}_M$. The identity morphism is given by
$\unit_{(E,\nabla,C)}:(E,\nabla,C)\xrightarrow{(E\times I,\nabla\times1,0)}
(E,\nabla,C)$, with ${\sf CS}(\nabla,\nabla)=\int_0^1\, {\sf ch}(\nabla\times1)=0$. The inverse of a morphism
$(E,\nabla,C)\xrightarrow{(\,\widetilde{G},\widetilde\nabla,\lambda
  \ )}(E',\nabla',C'\,)$ is given by
$(E',\nabla',C'\,)\xrightarrow{(\,\widetilde{G}{}^{\,{\rm op}},\widetilde\nabla,-\lambda
  \, )} (E,\nabla,C)$. To see
this, we must show that the composition
$\big(\,\widetilde{G}\,'\,,\,\widetilde\nabla\,' \,,\,\lambda'
  \, \big)$ of these two morphisms is
equivalent to the identity $\unit_{(E,\nabla,C)}$. Consider the morphism
$(E',\nabla',C'\,)\xrightarrow{(\,\widetilde{G},\widetilde\nabla,\lambda
  \, )^{-1}} (E,\nabla,C)$ defined via path inversion
\begin{eqnarray*}
\big(\,\widetilde{G}\,,\,\widetilde\nabla\,,\,\widetilde\lambda
  \ \big)^{-1}\Big|_{M\times t}:= \big(\,\widetilde{G}\,,\,\widetilde\nabla\,,\,\widetilde\lambda
  \ \big)\Big|_{M\times(1-t)}
\end{eqnarray*}
for all $t\in I$. Note that $\big(\,\widetilde{G}\,'\,,\,\widetilde\nabla\,' \,,\,\widetilde\lambda\,'
  \, \big)\big|_{M\times t}$ is equal to  $ \big(\,\widetilde{G}\,,\,\widetilde\nabla\,,\,\widetilde\lambda
  \ \big)\big|_{M\times(2t)}$ for $0\leq t\leq\frac12$ and to $\big(\,\widetilde{G}\,,\,\widetilde\nabla\,,\,\widetilde\lambda
  \ \big)\big|_{M\times2(1-t)}$ for $\frac12\leq t\leq1$, so that
\begin{eqnarray*}
\int_0^1\, {\sf ch}\big(\, \widetilde\nabla\,'\, \big) = 0 \ .
\end{eqnarray*}
Furthermore, in this case we have
\begin{eqnarray*}
{\rm d}\int_0^1\, {\sf ch}({{\Large\blacktriangledown}}) = \int_0^1\,\big( {\sf ch}(\, \widetilde
\nabla\, )-{\sf ch}(\, \widetilde\nabla\, )-{\sf ch}(\nabla\times 1)\big) = 0
\end{eqnarray*}
and
\begin{eqnarray*}
\lambda-\lambda+\int_0^1\, {\sf ch}({{\Large\blacktriangledown}}) = \int_0^1\, {\sf ch}({{\Large\blacktriangledown}}) \ .
\end{eqnarray*}
This shows that every morphism is invertible.

This construction defines the \emph{category $\check\mathscr{K}_M$ of
  Ramond--Ramond fields} on the manifold $M$, which is a strictly
symmetric monoidal category; it defines an action groupoid and has a
physical interpretation in boundary string field theory, generalized
to incorporate superconnections~\cite{Freed:2006yc}. The objects are the gauge
fields $\check C=(E,\nabla,C)$, while the morphisms are the gauge
transformations $\big(\,\widetilde
G\,,\,\widetilde\nabla\,,\,\lambda\, \big)$ together with the group law
described above. The set of gauge equivalence classes is the group of
isomorphism classes which coincides with the differential K-theory
$\check{\tt K}{}^0(M)$. Moreover, we see that gauge transformations
generate the differential K-theory group $\check{\tt K}{}^1(M)$; this
follows from the description of $\check{\tt K}{}^1(M)$ given
in~\cite{Freed:2006yc} by integrating classes in
$\check{\tt K}{}^0(M\times S^1)$, which are trivial at each point of $S^1$,
over $S^1$.

Every object of the cocycle category of fields $\check\mathscr{K}_M$ is invertible: The inverse of
the gauge field $\check C=(E,\nabla,C)$ is $\check
C^{-1}=(E^{\rm op},\nabla,-C)$. Thus $\check\mathscr{K}_M$ is a Picard category. The zero
object (of the monoidal structure) has non-trivial
automorphisms; from the above construction it follows that the
corresponding automorphism group coincides with the group of flat
fields
\begin{eqnarray*}
\Aut_{\check\mathscr{K}_M}(0)\cong{\tt K}^0(M;{\mathbb{T}}) \ .
\end{eqnarray*}

The categorical structure of the gauge theory configuration space may
be iterated to define higher categories $\check\mathscr{K}_M^k$ in a similar
manner. Let us describe explicitly the next member $\check\mathscr{K}_M^2$ in the
multi-categorical hierarchy. In the same way that we went from the
definition of the differential K-theory to the category
$\check\mathscr{K}_M=\check\mathscr{K}_M^1$, we now replace the equivalence relation on
(1-)morphisms by 2-morphisms. Then we lose the strict notion of
composition of 1-morphisms, as explained in~\S\ref{Confspace} Since every gauge transformation has an
inverse, we can consider the composition as a certain subset
$\Comp^1\subset {\sf Hom}_{\check\mathscr{K}^1_M}(\check C_0,\check C_1)\times
{\sf Hom}_{\check\mathscr{K}^1_M}(\check C_1,\check C_2)\times {\sf Hom}_{\check\mathscr{K}_M^1}(\check
C_2,\check C_0)$ such that $(g_1,g_2,g_3)\in \Comp^1$ if and only if $g_1\circ
g_2\circ g_3=\unit_{\check C_0}$. On the other hand, it is no longer true in general that $g_1$ and $g_2$ determine $g_3$ uniquely for the subset
$(g_1,g_2,g_3)\in \Comp^2\subset {\sf Hom}_{\check\mathscr{K}^2_M}(\check C_0,\check C_1)\times
{\sf Hom}_{\check\mathscr{K}^2_M}(\check C_1,\check C_2)\times {\sf Hom}_{\check\mathscr{K}_M^2}(\check
C_2,\check C_0)$.

We now explain some details of the construction. The objects of the
category $\check\mathscr{K}_M^2$ are the same as those for $\check\mathscr{K}_M^1$. Every
object $\check C$ has a canonical inverse $\check C^{-1}$. As in
$\check\mathscr{K}_M^1$, a morphism $\check C_0\longmapsto \check C_1$ is the same thing
as a morphism $\check C_0^{-1}+\check C_1\longmapsto 0$. Therefore, we need
only describe morphisms to the zero object. A morphism
$g:(E,\nabla,C)\longmapsto0$ is given by a triple $\big(\,\widetilde
G\,,\,\widetilde\nabla\,,\,\lambda \, \big)$, with the pair $\big(\,\widetilde
G\,,\,\widetilde\nabla \, \big)$ on $M\times I$ such that
$\big(\,\widetilde
G\,,\,\widetilde\nabla \,
\big)\big|_{M\times0}=(E,\nabla)$ and $\big(\,\widetilde
G\,,\,\widetilde\nabla \, \big)\big|_{M\times1}= 0$,
while $-C+{\rm d}\lambda=\int_0^1\, {\sf ch}(\, \widetilde\nabla\, )$. Let
$g':(E,\nabla,C)\xrightarrow{(\,\widetilde
  G\,',\widetilde\nabla\,',\lambda'\, )} 0$ be another
morphism. A 2-morphism $\alpha:g\Longrightarrow g'$ is given by a triple
$(\mbf G,\mbf\nabla,\mbf\lambda)$, where $(\mbf G,\mbf\nabla)$ is
graded vector bundle with connection on $M\times I\times I$ such that
$(\mbf G,\mbf\nabla)\big|_{M\times 0\times I}= \big(\,\widetilde
G\,,\,\widetilde\nabla\, \big)$,  $(\mbf
G,\mbf\nabla,\mbf\lambda)\big|_{M\times I\times0} = (E\times
I,\nabla\times1)$ and $(\mbf
G,\mbf\nabla)\big|_{M\times 1\times I}= \big(\,\widetilde
G\,'\,,\,\widetilde\nabla\,' \, \big)$,  $(\mbf
G,\mbf\nabla)\big|_{M\times I\times1} = 0$, and $\mbf\lambda\in
\Omega(M;K^\bullet)^{-1}/\, {\rm im}(d)$ such that
$\lambda'= \lambda+\int_0^1\,{\sf ch}(\mbf\nabla)+{\rm d}\mbf\lambda$.

We declare a pair of 2-morphisms $\alpha_0,\alpha_1:g\Longrightarrow g'$ to be
equivalent if there is a triple $\big(\,\widetilde{\mbf
  G}\,,\,\widetilde{\mbf\nabla}\,,\, \widetilde{\mbf\lambda}\,\big)$,
where $\big(\,\widetilde{\mbf
  G}\,,\,\widetilde{\mbf\nabla}\, \big)$ is a $\mathbb{Z}_2$-graded vector
bundle with connection
on $M\times I\times I\times I$ having the boundary values
\begin{eqnarray*}
\big(\,\widetilde{\mbf G} \,,\,
\widetilde{\mbf\nabla} \, \big) \big|_{M\times
  0\times I\times I}= (\mbf{G}_0 ,\mbf{\nabla}_0) \quad &
\mbox{and} &
\quad \big(\,\widetilde{\mbf G}\,,\,
\widetilde{\mbf\nabla} \, \big) \big|_{M\times
  1\times I\times I}= (\mbf{G}_1 ,\mbf{\nabla}_1) \ , \nonumber\\[4pt]
\big(\,\widetilde{\mbf G}\,,\,
\widetilde{\mbf\nabla} \, \big) \big|_{M\times
  I\times 0\times I}= \big(\,
\widetilde{G}_0\times I \,,\,\widetilde{\nabla}_0\times1\, \big) \quad
& \mbox{and} &
\quad \big(\,\widetilde{\mbf{G}}\,,\,
\widetilde{\mbf\nabla} \, \big) \big|_{M\times
  I\times 1\times I}= \big(\, \widetilde{G}_1\times
I\,,\,\widetilde{\nabla}_1\times 1\, \big)  \ , \nonumber\\[4pt]
\big(\,\widetilde{\mbf G}\,,\,
\widetilde{\mbf\nabla} \, \big) \big|_{M\times
  I\times I\times 0}= (E\times I\times I,{\nabla}\times1\times1) \quad
& \mbox{and} &
\qquad \big(\,\widetilde{\mbf G}\,,\,
\widetilde{\mbf\nabla} \, \big) \big|_{M\times
  I\times I\times 1}= 0 \ ,
\end{eqnarray*}
and $\widetilde{\mbf\lambda}\in\Omega(M;K^\bullet)^{0}/\, {\rm im}(d)$ such that
$\mbf\lambda_1-\mbf\lambda_0-\int_0^1\,
{\sf ch}(\,\widetilde{\mbf\nabla}\,) ={\rm d}\widetilde{\mbf\lambda}$.

Composition of 2-morphisms is now defined in the same manner as
composition for 1-morphisms in the preceeding level of the
hierarchy. The set $\Comp^2\subset {\sf Hom}_{\check\mathscr{K}^2_M}(\check C_0+\check
C_1^{-1},0)\times {\sf Hom}_{\check\mathscr{K}^2_M}(\check C_1+\check C_2^{-1},0)\times
{\sf Hom}_{\check\mathscr{K}_M^2}(\check C_2+\check C_0^{-1},0)$ now consists of all
triples $(g_1,g_2,g_3)$ such that there exists a 2-morphism $g_1\circ g_2\circ
g_3\Longrightarrow \Symm$, where $\Symm$ represents the symmetric 2-morphisms. One
can show that all 2-morphisms are isomorphisms. The set of
isomorphism classes in $\check\mathscr{K}_M^2$ coincides with the set of morphisms
in $\check\mathscr{K}_M^1$. The composition of 2-morphisms is associative. The
composition of 1-morphisms is associative up to 2-morphisms. One
can also replace cylinders in the construction of $\check\mathscr{K}^k_M$ by
general bordisms.

\subsubsection*{Geometric cocycles}

The index theory model of~\cite{BunkeSchick2007} readily
permits all constructions required in gauge theory, at the price of
introducing a very large configuration space, containing broad
classes of fields, some of which have no
interpretation in terms of D-branes wrapping cycles. Let $\pi:E\to M$
be a proper submersion with closed fibres and even-dimensional vertical bundle
$T^v\pi:=\ker({\rm d}\pi)$. Choose a
fibrewise riemannian metric on $T^v\pi$, and a complement $T^h\pi\subset TE$ which
defines a horizontal distribution. We pick an orientation on $T^v\pi$, and also a family of Dirac bundles
over $E$, i.e. a $\mathbb{Z}_2$-graded hermitian vector bundle with
connection $(V,\nabla)$ on $E$ and Clifford multiplication
${\tt c} : T^v\pi\otimes V\to V$. In~\cite{Bunke2009,BunkeSchick2007} this collection of
data was subsumed into the notion of a geometric family ${\mathcal E}$. A cocycle for a differential K-theory class in $\check{\tt K}{}^0(M)$ is a pair
$({\mathcal E},\xi)$, where ${\mathcal E}$ is a geometric family and $\xi \in
\Omega(M;K^\bullet)^{-1} /\, {\rm im}({\rm d})$ is a class of differential
forms on $M$ of odd degree; the equivalence relations
on cocycles can be found in~\cite{BunkeSchick2007}. These classes are
extensions of those defined above in terms of vector bundles with
connection, to which they reduce when $\pi={\rm id}_M$ has fibre consisting
of just a point; within this model lie the well-developed and very
powerful techniques of local index theory, whose properties can be
used as a ``black box'' to efficiently carry out all constructions.
The index of the family of Dirac operators $\Dirac({\mathcal E})$ on a geometric
family ${\mathcal E}$ over $M$ can be naturally considered as
an element of K-theory $\Index({\mathcal E})\in {\tt K}^0(M)$; it defines the
characteristic class map $c:\check{\tt K}{}^0(M)\to {\tt K}^0(M)$ as
$$c\big([{\mathcal E},\xi] \big):=\Index({\mathcal E}) \ . $$
For a geometric family ${\mathcal E}$, the local index form $\Omega({\mathcal E})\in\Omega(M;K^\bullet)^0$~\cite{Bunke2009,BunkeSchick2007} is
the adiabatic limit of local traces of the heat kernel of a Bismut superconnection on the associated
Hilbert bundle $H({\mathcal E})\to M$ with fibres $H_x:={\rm
  L}^2(E_x;V|_{E_x})$ for $x\in M$; it provides a canonical and explicit de~Rham
representative for the Chern character of the index of ${\mathcal E}$ through
the index theorem for families~\cite{BGV} which reads ${\sf ch}\big(\Index({\mathcal E})\big) = \big[\Omega({\mathcal E})\big]$.
The field strength map $F:\check{\tt K}{}^0(M)\to \Omega_\mathbb{Z}(M;K^\bullet)^0$ is then given by
$$F\big( [{\mathcal E},\xi] \big) :=\Omega({\mathcal E})-{\rm d}\xi \ . $$
A refinement of the Chern character homomorphism between differential
K-theory and differential cohomology in this model can be found
in~\cite{BunkeSchick2007}.

We will now explain how topologically non-trivial quantized Ramond--Ramond fields
naturally fit into this framework as cocycles in the absence of
D-brane sources, i.e. as induced solely by the closed string
background $(M,g)$. For this, we will give a physical interpretation of this description in
terms of brane-antibrane annihilation in boundary string field
theory by presenting a special class of cocycles which
exhibit the salient features of the construction of the
Ramond--Ramond field associated to a K-theory class in (\ref{RRfieldKclass}). In this setting a
{Ramond--Ramond field} on the manifold $M$ is taken to be a
pair $\check{C}=({\mathcal E},-C)$, where ${\mathcal E}$ is a
geometric family over $M$ and $C\in\Omega(M;K^\bullet)^{-1}$ (not taken modulo
${\rm im}({\rm d})$). In the topologically trivial case one sets ${\mathcal E}=\emptyset$
and the differential form $C$ is what is usually called the
Ramond--Ramond field of the Type~IIA theory.

Consider first the
Ramond--Ramond field $\check C=(\mathcal{V},0)$ for the geometric family
$\mathcal{V}$ with underlying fibre bundle $\pi={\rm id}_M:M\to M$
having zero-dimensional vertical bundle. The $\mathbb{Z}_2$-graded
bundle $V=V^+\oplus V^-\to M$ represents $\Index(\mathcal{V})=[V]:=[V^+]-[V^-]\in
{\tt K}^0(M)$. The geometric K-homology class
$$
[M,V^+,{\rm id}_M]-[M,V^-,{\rm id}_M]
$$
represents a brane-antibrane pair filling $M$ with Chan--Paton
bundles $(V^+,V^-)$~\cite{Reis:2005pp}. The connection $\nabla$ and
hermitian structure of the family of Dirac bundles $\mathcal{V}$ is the extra dynamical
information on the D-branes encoded in the boundary string field
theory, which naturally defines an element of differential
K-theory. Every class in ${\tt K}^0(M)$ (and hence every D-brane on $M$)
can be realized via this construction as the index of a geometric
family~\cite{BunkeSchick2007}. Using the explicit expression
for the local index form $\Omega(\mathcal{V})$ in this
case~\cite{Bunke2009}, the corresponding Ramond--Ramond field strength is given by
\begin{eqnarray*}
F(V) = {\sf ch}(V)\wedge\sqrt{\widehat{A}(M)} \ .
\end{eqnarray*}
This construction thus reproduces the Moore--Witten
derivation~\cite{Moore2000} for the Ramond--Ramond field strength
(\ref{RRfieldKclass}) associated to the K-theory element
$[V]\in{\tt K}^0(M)$ classifying the background brane-antibrane system
wrapping $M$.

As in the case of geometric K-homology~\cite{Reis:2005pp}, the
inclusion of more general families $\check C=({\mathcal E},-C)$ extends this
description to include non-representable brane-antibrane pairs filling
$M$ which are represented by the K-homology classes
\begin{eqnarray*}
\big[E\,,\,\Index({\mathcal E})\,,\,\pi\big] \ ,
\end{eqnarray*}
where $\pi:E\to M$ is the underlying fibre bundle of ${\mathcal E}$ and
$\Index({\mathcal E})\in{\tt K}^0(M)$. This modifies the associated Ramond--Ramond
field strength to
\begin{eqnarray*}
F\big(\Index({\mathcal E})\big)=\Big(\, \int_{E/M}\, {\sf ch}(W)\wedge
\widehat{A}(T^v\pi) +{\rm d} C \, \Big)\wedge \sqrt{\widehat{A}(M)} \ ,
\end{eqnarray*}
where we have decomposed the family of Dirac bundles into the spinor
bundle of $T^v\pi$ as $V=\mathcal{S}(T^v\pi)\otimes W$
for a twisting bundle $W\to E$ with metric and compatible connection.
Here the fibrewise integral is the curvature generated by the
(non-representable) background D-branes
given by the local index form
$\Omega({\mathcal E})\in\Omega(M;K^\bullet)^0$, which depends only on the
geometric family ${\mathcal E}$, while ${\rm d} C$ is the contribution of a
topologically trivial Ramond--Ramond field, which as such is not
sourced by any D-branes.

\subsubsection*{Holonomy on D-branes}

In analogy to the model of differential cohomology provided by
Cheeger--Simons differential characters, which are ${{\rm U}(1)}$-valued
homomorphisms on the group of smooth cycles in $M$, one can define the
differential K-theory $\check{\tt K}{}^\bullet(M)$ as a group of
${{\rm U}(1)}$-valued homomorphisms on the set of Baum--Douglas K-cycles for
geometric K-homology; these maps are called differential characters
for K-theory
in~\cite{Benamour} and are interpreted as holonomies on D-branes
in~\cite{Reis:2006th}. They are characterized by their restrictions to
boundaries of K-chains (\ref{Kchainbdry}), which are given by pairing
a certain differential form $\omega|_{\widetilde{W}}$ with the
index density ${\sf ch}\big(\,\widetilde{E}\,\big)\wedge\widehat{A}\big(\, \widetilde{W}\,\big)$.

As an explicit example, define the reduced eta-invariant
of a K-chain with boundary (\ref{Kchainbdry}) by
\begin{eqnarray*}
\Xi\big(\,\widetilde{W}\,,\,\widetilde{E}\,,\,\widetilde{f}\
\big)=\mbox{$\frac12$} \,\Big(\dim\big({\mathcal{H}}^W_E \big)+
\eta\big(\Dirac_E^W\big) \Big) \ \in \ \mathbb{R}/\mathbb{Z} \ ,
\end{eqnarray*}
where ${\mathcal H}_E^W$ is the space of harmonic $E$-valued spinors on $W$,
and $\eta\big(\Dirac_E^W\big)$ is the spectral asymmetry of the
$E$-twisted Dirac operator $\Dirac_E^W$ on $W$ which is the meromorphic
continuation at $s=0$ of the absolutely convergent series
\begin{eqnarray*}
\eta\big(s,\Dirac_E^M\big)=
\sum_{\lambda\in{\rm spec}^0(\Dirac_E^M)-0} \
\frac\lambda{|\lambda|^{s+1}}
\end{eqnarray*}
for $s\in\mathbb{C}$ with $\Re(s)\gg0$, with the sum taken over the spectrum of the
closure of $ \Dirac_E^M$ which is the bounded Fredholm operator
$\Dirac_E^M\, \big(1+(\Dirac_E^M)^2\big)^{-1/2}$. The map $\Xi$
respects disjoint union, direct sum and Baum--Douglas vector bundle
modification of K-chains, but \emph{not} spin$^c$ bordism~\cite{Benamour}. Then
the \emph{holonomy} of the flat D-brane background defined by
(\ref{virtualKchain}) is given by
\begin{eqnarray*}
\Omega\big(\,\widetilde{W}\,,\,\widetilde{\xi}\,,\,
\widetilde{f}\,\big)=\exp\Big(2\pi{\,{\rm i}\,}\big(\Xi(\,\widetilde{W},\widetilde{f^*E_0},
\widetilde{f}\,)-\Xi(\,\widetilde{W},\widetilde{f^*E_1},
\widetilde{f}\,)\big) \Big) \ \in \ {{\rm U}(1)} \ .
\end{eqnarray*}

\subsection{Self-dual field theories\label{Selfduality}}

We will now formulate the self-duality property of Ramond--Ramond fields
more precisely. We do this first in the more general setting of
\S\ref{Gendiffcoh}

\begin{definition}
A generalized cohomology theory $\E^\bullet$ is \emph{Pontrjagin
  self-dual} if there exists a ``shift'' $s\in\mathbb{Z}$ such that
\begin{eqnarray*}
\E^\bullet(M)\cong {\sf Hom}_{\mathbb{Z}}\big(\E_{\bullet+s}(M)\,,\,\mathbb{Z}\big)
\end{eqnarray*}
for all spaces $M$.
\label{Pontrjagindef}\end{definition}

In Def.~\ref{Pontrjagindef}, $\E_\bullet$ is the homology theory obtained from
$\E^\bullet$ through its \emph{spectrum} $\{\mathcal{E}_k\}$ such that
$\E^k(M)$ is the set of homotopy classes of maps $M\to \mathcal{E}_k$; there
is a homotopy equivalence between $\mathcal{E}_k$ and the based loop space
$\Omega\mathcal{E}_{k+1}$. The $\E$-homology is given by the directed limit
\begin{eqnarray*}
\E_k(M)=\lim_{\stackrel{\scriptstyle \longrightarrow}{r}}\,
\pi_{k+r}\big(M_+\wedge\mathcal{E}_k \big) \ ,
\end{eqnarray*}
where $M_+=M\sqcup m_0$ is the one-point compactification of $M$ by
a fixed base point $m_0\in M$, and $X\wedge Y= X\times Y\big/(X\times
y_0\sqcup x_0\times Y)$ is the smash product of locally compact
spaces. Def.~\ref{Pontrjagindef} is equivalent to the statement that
for each $k\in\mathbb{Z}$ the natural pairing of real vector spaces
\begin{equation}
\check\iota\,:\, E^{k-s}\otimes E^{-k} \ \longrightarrow \ \mathbb{R}
\label{iotaEd}\end{equation}
is non-degenerate, where $E^k:=\E^k({\rm pt})\otimes_\mathbb{Z} \mathbb{R}$.

\begin{definition}
A \emph{self-dual} generalized abelian gauge theory on a compact
$n$-dimensional smoothly $\E$-oriented manifold $N$ consists of a
Pontrjagin self-dual multiplicative cohomology theory $\E^\bullet$
with shift $s\in\mathbb{Z}$, and its associated configuration space of gauge fields
$\check\E{}^d(N)$ for some $d\in\mathbb{Z}$, together with a natural isomorphism
\begin{equation}
\Psi^{-1}\,:\, \E^d(N) \ \xrightarrow{ \ \approx \ } \ \E^{n-s+1-d}(N) \ .
\label{phiEd}\end{equation}
\end{definition}

Let $N$ be an $\E$-oriented riemannian manifold of dimension $n$, and
$M=\mathbb{R}\times N$ the associated lorentzian spacetime of signature
$(1,n)$. The \emph{self-duality equations} for the gauge field
$F\in\Omega(M;E^\bullet)^d$ read
\begin{equation}
{\rm d} F=0 \qquad \mbox{and} \qquad \Psi^{-1}(F)=\check\iota(\star F) \ \in \
\Omega(M;E^\bullet)^{n-s+1-d} \ ,
\label{selfdualityeqsEd}\end{equation}
where the first equation is the Bianchi identity while the second
equation is the self-duality condition. Here
\begin{eqnarray*}
\Psi^{-1}\,:\, \Omega^k(M;E^{d-k}) \ \longrightarrow \
\Omega^k(M;E^{n-s+1-d-k})
\end{eqnarray*}
is induced by the isomorphism (\ref{phiEd}), the map
\begin{eqnarray*}
\star\,:\, \Omega^{n+1-k}(M;E^{d+k-n-1}) \ \longrightarrow \
  \Omega^k\big(M\,; \, (E^{d+k-n-1})^*\big)
\end{eqnarray*}
is the lorentzian Hodge duality operator, and
\begin{eqnarray*}
\check\iota\,:\, \Omega^k\big(M\,;\, (E^{d+k-n-1})^*\big) \
\longrightarrow \ \Omega^k(M;E^{n-s+1-d-k})
\end{eqnarray*}
is induced by the pairing (\ref{iotaEd}). The equations
(\ref{selfdualityeqsEd}) define a first order linear hyperbolic
differential equation, so a solution is determined at any fixed time
$t\in\mathbb{R}$; whence the space of solutions is isomorphic to the real
vector space $\Omega_{\rm cl}(N;E^\bullet)^d$.

Note that the \emph{classical flux} $[F]_{\rm dR}$
defines a map $\Omega_{\rm cl}(N;E^\bullet)^d\to
\RH(N;E^\bullet)^d$. In the semi-classical
theory with Dirac charge quantization, the gauge field is a geometric
representative of a class in $\check\E{}^d(M)$; the space of classical
solutions on $M$ is then the differential cohomology group
$\check\E{}^d(N)$.

Incorporating sources into a self-dual gauge theory further requires
an isomorphism between electric and magnetic currents $j_e$ and $j_m$, as well as a
quadratic refinement of the bilinear pairing $\check\E{}^d(N)\otimes
\check\E{}^{n-s+1-d}(N)\to {\mathbb{T}}$ between the corresponding
differential cocycles $\check j_e$ and $\check j_m$.

\subsubsection*{Type~II Ramond--Ramond fields}

In our main application, we take $n=9$ and $\E^\bullet={\tt K}^\bullet$ to
be complex K-theory, so that $s=0$. A Ramond--Ramond field on a
compact riemannian spin manifold $N$ has a gauge equivalence in the
differential K-theory $\check{\tt K}{}^j(N)$, where $j=0$ for Type~IIA
string theory and $j=-1$ for Type~IIB. The K-theory of a point is
given by the Laurent polynomial ring ${\tt K}^\bullet({\rm pt})\cong \mathbb{Z}(u)$, where $u$ has degree two and
the dual involution maps $u\mapsto u^*:=u^{-1}$. The automorphism
$\Psi^{-1}$ is the Adams operation on K-theory which acts as
complex conjugation, with $u\mapsto -u$. The lift of the Adams operation
$\check\Psi{}^{-1}$ to differential K-theory is then given
by
\begin{equation}
\check\Psi{}^{-1}\big([\check C]\big) = u^\ell \ \overline{[\check C]}
\ ,
\label{Adamsop}\end{equation}
where $\ell=5$ for Type~IIA and $\ell=6$ for Type~IIB, and if $[\check
C]\in\check{\tt K}{}^j(N)$ is represented by a complex vector bundle $E\to
N$ with connection $\nabla$, then the class $\overline{[\check C]}$ is
represented by the complex conjugate bundle $\overline{E}\to N$ with
conjugate connection $\overline{\nabla}$; a model independent
construction of all Adams operations $\check\Psi{}^k$, $k\in\mathbb{Z}$, is
given in~\cite{Bunke2009b}. The self-duality equations
for the field strengths $F\in\Omega\big(\mathbb{R}\times N,K^\bullet \big)^j$ are
then as described in~\S\ref{RRGT}

\bigskip

\section{Quantization of generalized abelian gauge
  fields\label{HamQuant}}

\subsection{Quantum actions and partition functions\label{Pathquant}}

We begin with some general remarks about the approach to the
quantization of abelian gauge theories that
we shall pursue. Recall that a generalized abelian gauge field on a
manifold $M$ is an
object of a suitable groupoid $\check\mathscr{E}{}^d(M)$ whose isomorphism
class sits in the generalized differential cohomology group
$\check\E{}^d(M)$; this semi-classical quantization of the gauge
theory leads to integrality of coupling constants and secondary
invariants, and also to Dirac charge quantization. Once we have identified the configuration space $\check\mathscr{E}{}^d(M)$
of a generalized abelian gauge theory, in the functional integral
approach to quantization we ``integrate'' over the isomorphism classes
$\check\E{}^d(M)$ using a suitable translation invariant measure; such
a Haar-like measure exists at least formally for gaussian fields and is induced
by the riemannian metric on $M$. Let us briefly explain the meaning of such an
integration, illustrated through several explicit examples.

To set up the path integral of the gauge theory, we regard the set of local
fields $\mathscr{F}$ as a certain covariant functor from the (opposite) category of smooth
manifolds with suitable morphisms to the category of sets. Locality of the fields is
implemented by the requirement that the functor $\mathscr{F}$ satisfies a
Mayer--Vietoris sheaf property, i.e. there is a pullback square
\begin{eqnarray*}
\xymatrix{
\mathscr{F}(U\cup V) \ \ar[d] \ar[r] & \ \mathscr{F}(V) \ar[d] \\
\mathscr{F}(U) \ \ar[r] & \ \mathscr{F}(U\cap V)
}
\end{eqnarray*}
for any pair of open charts $U,V$. In most of our examples we take
$\mathscr{F}=\Omega^q$, with $q=0$ corresponding to scalar fields, $q=1$ to
gauge fields, and so on. In our gauge theory examples we can
generalize this to require that the fields be valued in the suitable
configuration space, which requires
replacing the category of sets such that one considers sheaves of
groupoids, higher groupoids,
or even $\infty$-groupoids; such is the case for e.g. double covers
whose target is the category of simplicial sets.

Let $\mathscr{B}ord_m$ be the bordism category of smooth $m$-manifolds; an
object of $\mathscr{B}ord_m$ is a closed $m-1$-manfiold $N$, while a morphism from
$N_0$ to $N_1$ is an $m$-manifold $M$ with boundary $\partial M=N_0
\sqcup N_1$ and composition defined by gluing. Given a collection of fields
$\mathscr{F}$, the bordism category $\mathscr{B}ord_m(\mathscr{F})$ enriched by $\mathscr{F}$ has
the same objects, but its morphisms are extended to pairs $(M,\Phi)$ where
$\Phi\in\mathscr{F}(M)$. Let $\mathscr{V}ect_\mathbb{C}$ be the category of complex vector
spaces with linear transformations. The partition function of our gauge theory is a monoidal
functor
\begin{equation}
\mathscr{Z}_\mathscr{F} \,:\, \mathscr{B}ord_m(\mathscr{F}) \ \longrightarrow \ \mathscr{V}ect_\mathbb{C} \ ,
\label{BordQFT}\end{equation}
which sends disjoint unions to tensor products. Semi-classical
quantization corresponds to restricting $\mathscr{Z}_\mathscr{F}$ so that it takes
values in
invertible objects of $\mathscr{V}ect_\mathbb{C}$; if $M$ is closed then
$\mathscr{Z}_\mathscr{F}(M,\Phi)\in\mathbb{C}^\times$ and we write $\mathscr{Z}_\mathscr{F}(M,\Phi)=:\exp{\,{\rm i}\,}
S_M[\Phi]$. See~\cite{FHLT} for further details and constructions.

Let us look at a simple example of a higher abelian gauge theory to
demonstrate the need for using cocycles as objects in a suitable
category in order to formulate the path integral of the quantum theory. In
the setting of \S\ref{GAGT}, the field content of a generic higher abelian
gauge theory is $\Phi=(g,\check j_e,\check j_m,F)$ where $g$ is the
metric of $M$, the differential cocycles $\check j_e$ and $\check j_m$
are smooth refinements of electric and magnetic current forms
$j_e={\rm d}\star F\in
\Omega^{n-p+2}(M)$ and $j_m={\rm d} F\in\Omega^{p+1}(M)$, and
$F\in\Omega^p(M)$. We take $p=1$, and set $j_e=\sum_{x\in W_e} \, q_e(x)\, {\sf Pd}_M(x)$ where $q_e(x)\in\mathbb{R}$ are electric
charges inserted at a collection of points $x\in W_e\subset M$. If $j_m=0$, then
${\rm d} F=0$ and $F$ can be refined to a differential cohomology class
$\lambda\in\check\RH{}^1(M)= \Omega^0(M;{{\rm U}(1)})$, i.e. a smooth map
$\lambda:M\to S^1$. Then $F={\rm d}\log\lambda$. In the quantum gauge
theory, exponentiation of the action functional (\ref{GAGTaction}) gives
\begin{equation}
\exp {\,{\rm i}\,} S_M[\lambda] = \exp\Big(-\frac\ii2 \, \int_M\,
\frac{{\rm d}\lambda\wedge\star{\rm d}\lambda}{\lambda^2} \, \Big) \ \prod_{x\in
  W_e}\, \lambda(x)^{q_e(x)} \ ,
\label{GAGTquaction}\end{equation}
which is well-defined and $\mathbb{C}$-valued provided that electric charge is quantized,
$q_e(x)\in\mathbb{Z}$. Suppose now that $j_m\neq0$. Since $j_m={\rm d} F$ is
trivialised, we can refine it to a class in the differential
cohomology $\check\RH{}^2(M)$, represented by a hermitian line bundle with
connection $(L,\nabla)$ on $M$. We now take $\lambda\in \Omega^0(M;L)$
and set $F={\rm d}_\nabla\log\lambda$ so that $j_m=\nabla^2$ is the
curvature of $\nabla$. Then the product in (\ref{GAGTquaction}) lies in the fibres $\bigotimes_{x\in
  W_e}\, (L_x)^{\otimes q_e(x)}$, and the quantum action
(\ref{GAGTquaction}) takes values in a line bundle (rather than
in~$\mathbb{C}$). The line bundle is an obstruction to defining the path
integral and it represents an \emph{anomaly}. ``Anomaly cancellation'' corresponds to a trivialization of
this line bundle; see~\cite{Freed:2000ta} for further details,
and~\cite{Freed:2000ta,Freed:2000tt} for an extension to
Green--Schwarz anomaly cancellation in Type~I superstring theory.

More generally, the product in (\ref{GAGTquaction}) is replaced with
\begin{eqnarray*}
\chi(W) = \exp\Big({\,{\rm i}\,} \int_W\, q_e\, A\big|_W\Big)
\end{eqnarray*}
for a $p$-brane $W$. Locality requires that
$\chi\in{\sf Hom}_{\mathscr{A}b}(Z_{p-1}(M),{{\rm U}(1)})$. The equations of motion imply that
\begin{eqnarray*}
\chi(W'\,)= \chi(W) \, \exp\Big({\,{\rm i}\,}\int_B\, q_e\, F\Big)
\end{eqnarray*}
if $B$ is a bordism between $W$ and $W'$. This means that $\chi$ is a
Cheeger--Simons differential character (Def.~\ref{CheegerSimonsdef}), and $q_e\,
F\in{\rm im}(\delta_1)$ where $\delta_1:\check\RH{}^p(M)\to
\Omega^p_\mathbb{Z}(M)$ is the field strength map $\delta_1(\chi)=F_\chi$. When $p=0$ and the field strength $F$ is produced by a
magnetic brane as above, we immediately arrive at Dirac quantization
of charge $q_e\, q_m\in2\pi\, \mathbb{Z}$, as argued from a different
perspective in \S\ref{Maxwellsemi} More generally, the charges live in
the lattice obtained from the image of integral cohomology in
(\ref{classchargegp}). In dimensions $m=n+1=4s+3$ with $p=2s+2$, one can
also add a Chern--Simons term
\begin{eqnarray*}
\exp\big({\,{\rm i}\,} \langle\check A,\check A\rangle \big) \ .
\end{eqnarray*}
For $s=0$ this term is well-defined by picking a spin structure on the
three-manifold $M$.

One can
also have charges in images of generalised cohomology theories. For example, in
Type~II superstring theory the D-brane $(W,E,f)$ carries a vector bundle
with connection $(E,\nabla)$. If $C$ is a globally-defined
Ramond--Ramond gauge potential, then the product in
(\ref{GAGTquaction}) is replaced with
\begin{eqnarray*}
\exp\Big({\,{\rm i}\,}\int_W\, Q(W,E,f)\wedge C\big|_W\Big)
\end{eqnarray*}
where $Q(W,E,f)$ is the charge vector (\ref{Dbranecharge}).

Let us finally consider an example from M-theory. The field content
$\Phi=(\sigma,g,A,\psi,C)$ of supergravity on an 11-dimensional spin
manifold $M$ consists of a spin structure $\sigma$ on $M$, a riemannian
metric $g\in\Omega^0(M;T^*M\otimes T^*M)$, a connection one-form $A$ on a
principal bundle over $M$, a twisted spinor field $\psi\in\Omega^0(M;T^*M\otimes \mathcal{S}_M)$
where $\mathcal{S}_M$ is the twisted spin bundle of $M$, and an abelian gauge
potential $C\in\Omega^3(M)$ with field strength $G={\rm d} C\in
\Omega^4(M)$. The relevant terms in the quantum supergravity action
are
\begin{equation}
\exp\Big({\,{\rm i}\,}\int_M\, G\wedge\star\, G+ 2{\,{\rm i}\,} \int_M\, \big(C\wedge
G\wedge G-C\wedge I_8(g)\big) \Big)
\label{11daction}\end{equation}
where $I_8(g)=\frac1{48}\, \big(4p_2(M)-p_1(M)^{\wedge 3}\big)$ and
$p_k(M)\in \RH^{4k}(M;\mathbb{Z})$ are the Pontrjagin classes of the tangent
bundle of $M$. For topologically non-trivial fields, we refine the
three-form $C$ to a class $\check C\in\check\RH{}^4(M)$. Then the
topological terms in (\ref{11daction}) refine to $\exp\big(\frac\ii6\,
\int^{\check\RH{}}\!\!\!\int_M \, \check C\smile\check C\smile\check
C\big)$; making this term well-defined requires a cubic refinement of
the trilinear form $\check\RH{}^4(M)\times \check\RH{}^4(M)\times
\check\RH{}^4(M)\to {\mathbb{T}}$ defined by it. Since $K(\mathbb{Z},4)=B\E_8$ the
charge $c\in\RH^4(M;\mathbb{Z})$ is an isomorphism class of a principal
$\E_8$-bundle over $M$~\cite{Diaconescu:2000wy} (up to approximation
on the skeleton of $M$). The groupoid of fields $\check\mathscr{H}^4(M)$
consists of cocycles $\check C=(P,\nabla, C)\in\check Z{}^4(M)$, where
$P\to M$ is an $\E_8$-bundle with connection $\nabla$ and
$ C\in\Omega^3(M)$; gauge transformations connect cocycles
$(P,\nabla, C)$ and $(P',\nabla', C'\,)$ with
$C'-C ={\sf CS}(\nabla,\nabla'\,)+F_\chi$ for some $\chi\in\check\RH{}^3(M)$. This implies that $G= F(\check
C)= {\rm Tr}\big(
F_\nabla\wedge F_\nabla \big) -\frac12\,{\rm Tr}\big(R(g)\wedge R(g)\big)
+{\rm d} C$ is gauge-invariant, where
$F_\nabla=\nabla^2$ is the curvature of the connection $\nabla$ and
$R(g)$ is the curvature two-form of the metric $g$ with
${\rm Tr}\big(R(g)\wedge R(g)\big)=\frac14\, p_1(M)$;
see~\cite{Witten:1996md,Diaconescu:2003bm,Freed:2004yc} for further
details.

The functor (\ref{BordQFT}) with values in an invertible quantum field
theory can be formally gotten by performing the functional integral
over the configuration groupoid $\check\mathscr{H}{}^p(M)$, with
$\pi_0\check\mathscr{H}{}^p(M)= \check\RH{}^p(M)$, of free higher
abelian gauge theory, which is studied in~\cite{Kelnhofer:2007jf} using techniques of covariant
quantization on compact closed manifolds: For $\Phi=(g,\check A)$ with
$g$ a riemannian metric on $M$ and $[\check A]\in\check\RH{}^p(M)$,
by~\cite[Thm.~4.5]{Kelnhofer:2007jf} the partition function is
rigorously defined by the formula
\begin{equation}
\mathscr{Z}_p(M) = \prod_{j=0}^{p-1}\, \bigg(\,
\frac{\det'\big({\rm d}^\dag\,{\rm d}\big|_{\Omega^j(M)\cap{\rm
      im}({\rm d}^\dag)}\big)}{{\rm
    vol}\big({\tt harm}^j(M)\,\big/\,{\tt harm}_\mathbb{Z}^j(M)\big)^2}\,
\bigg)^{\frac12\,(-1)^{p-j}} \ \Theta_p(M) \ \big|{\sf Tor}\,
\RH^p(M;\mathbb{Z})\big|
\label{partfnrig}\end{equation}
where
$\Theta_p(M)=\sum_{f\in{\tt harm}^p_\mathbb{Z}(M)}\,
\exp\big(-\frac12\,\int_M\, f\wedge\star f\big)$ is a Riemann
theta-function on the lattice of harmonic $p$-forms $f$ on $M$,
i.e. ${\rm d} f=0={\rm d}\star f$, with
integer periods; it can be interpreted as a section of a line bundle
over $\check\RH{}^p(M)$, of the type that arises in Chern--Simons theory. The product in (\ref{partfnrig}) arises from a formal
gaussian integral over oscillator modes $F_0+{\rm d} a$, with
$a\in\Omega^{p-1}(M)$ modulo the small gauge invariances
$a\mapsto a+{\rm d}\varepsilon$, $\varepsilon\mapsto \varepsilon+{\rm d}
\eta$, and so on; it can be interpreted as a sort of analytic
torsion~\cite{Belov:2006jd}, i.e. as a Quillen norm of a section of
some determinant
line bundle over the space of metrics on $M$. In~\cite{Kelnhofer:2007jf} it is shown that the
partition function (\ref{partfnrig}) exhibits an electric-magnetic
duality relation wherein $\mathscr{Z}_p(M)$ and $\mathscr{Z}_{n+1-p}(M)$ are
proportional to each other, which follows from Hodge theory and the
Poisson resummation formula. A functional integral
approach to the quantization of self-dual higher abelian gauge fields
is similarly described in~\cite{Belov:2006jd} using higher-dimensional
Chern--Simons theories, and further elucidated
in~\cite{Monnier:2010ww}; an analogous path integral quantization of Ramond--Ramond
gauge theory is carried out in~\cite{Belov:2006xj}.

\subsection{Hamiltonian quantization\label{Quant}}

Another approach to constructing the functor (\ref{BordQFT}) into an
invertible quantum field theory is to categorify the partition
function to the Hilbert space of the quantum field theory; as the
partition function is generally valued in a line bundle, the Hilbert
space is thus valued in a gerbe. In the remainder of this article we
will explain how to construct this Hilbert space; we set $\check
j_e=0=\check j_m$ for the rest of the section.

Consider again the spacetime manifold $M=\mathbb{R}\times N$ where $N$
is a compact $\E$-oriented $n$-dimensional riemannian manifold. As we demonstrate below, the configuration space of a
free generalized abelian gauge theory on $M$ is the generalized
differential cohomology group $\check\E{}^d(N)$. Heuristically, the general principles of hamiltonian
quantization suggest that the
\emph{Hilbert space} of the quantum field theory on which the fields
act as operators is the space ${\mathcal H}={\rm L}^2\big(\check\E{}^d(N)\big)$ of
square integrable functions on the manifold $\check\E{}^d(N)$ with
respect to a suitable measure. The problem, however, is that the
differential cohomology $\check\E{}^d(N)$ is an infinite-dimensional
vector space, so it is tricky to define measures on it. Instead, we
will approach the problem of quantization from a group theory
perspective, and appeal to the representation theory of the Heisenberg
group. This will identify the quantum Hilbert space as a
representation of a certain Heisenberg extension of $\check\E{}^d(N)$~\cite{Freed:2006ya,Freed:2006yc}.

Recall the classical definition of a Heisenberg group ${\tt Heis}(V,\omega)$
associated to a symplectic vector space $(V,\omega)$: It is a central extension of the translation group $V$ by the
circle group ${{\rm U}(1)}=\{z\in\mathbb{C} \ | \ |z|=1\}$. Topologically
${\tt Heis}(V,\omega)\cong V\times{{\rm U}(1)}$ with a twisted multiplication
\begin{eqnarray*}
(v_1,z_1)\cdot (v_2,z_2) = \big(v_1+v_2\,,\,\epsilon^{\pi {\,{\rm i}\,}
  \omega(v_1,v_2)}\, z_1\, z_2 \big) \ .
\end{eqnarray*}

The idea behind the relevance of the Heisenberg group in quantization is
as follows. Let $\mathcal{G}$ be a topological abelian Lie group with Haar measure,
and $\widehat{\mathcal{G}}$ the Pontrjagin dual group of characters $\chi:\mathcal{G}\to
{{\rm U}(1)}$. The groups $\mathcal{G}$ and $\widehat{\mathcal{G}}$ both act on the Hilbert space
${\mathcal H}:= {\rm L}^2(\mathcal{G})$, respectively as the translation or ``momentum'' operators
\begin{eqnarray*}
(T_h\psi)(g)=\psi(g+h)
\end{eqnarray*}
and as the multiplication or ``position'' operators
\begin{eqnarray*}
(M_\chi\psi)(g)=\chi(g)\, \psi(g)
\end{eqnarray*}
for $\psi\in{\mathcal H}$, $h,g\in \mathcal{G}$, and $\chi\in\widehat{\mathcal{G}}$. The Hilbert
space ${\mathcal H}$ is not a representation of $\widetilde{\mathcal{G}}=\mathcal{G}\times
\widehat{\mathcal{G}}$, since
\begin{equation}
T_h\circ M_\chi=\chi(h)\, M_\chi\circ T_h \ .
\label{ThMchi}\end{equation}
But the commutation relations (\ref{ThMchi}) can be thought of as
originating from a suitable cocycle, and ${\mathcal H}$ \emph{is} a representation of the Heisenberg group
${\tt Heis}(\, \widetilde{\mathcal{G}}\, )$ associated to $\widetilde{\mathcal{G}}$, which is a certain central extension of
$\widetilde{\mathcal{G}}$ by ${{\rm U}(1)}$; specifically, ${\mathcal H}$ is the unique
Stone--von~Neumann representation of ${\tt Heis}(\, \widetilde{\mathcal{G}}\,)$. We
will now proceed to define these concepts precisely.

\subsection{Heisenberg groups and their representations\label{Heisenberg}}

We will begin by collecting some general results concerning
central extensions of Lie groups and their representations,
following~\cite{Freed:2006ya}.

\begin{definition}
Let $\mathcal{G}$ be an abelian Lie group.
A \emph{generalized Heisenberg group} is a Lie
group ${\tt Heis}(\mathcal{G})$ which sits inside the exact sequence
\begin{displaymath}
1~\longrightarrow~{{\rm U}(1)} ~\longrightarrow~
{\tt Heis}(\mathcal{G})~\longrightarrow~\mathcal{G}~
\longrightarrow~{0} \ ,
\end{displaymath}
with the circle group ${{\rm U}(1)}$ contained in the center ${{Z}_{{\tt
 Heis}(\mathcal{G})}}$. We will further require that the group
manifold of ${\tt Heis}(\mathcal{G})$ is a smooth, locally trivial
circle bundle over $\mathcal{G}$. This is guaranteed by assuming the
group $\mathcal{G}$ fits inside the exact sequence~\cite{Freed:2006ya}
\begin{displaymath}
\xymatrix{1 \ \ar[r]& \ \pi_{1}(\mathcal{G}) \ \ar[r]& \ \mathfrak{g} \
  \ar[r]^{\exp}& \ \mathcal{G} \ \ar[r]& \ \pi_{0}(\mathcal{G}) \ \ar[r]& \ 0}
\end{displaymath}
where $\mathfrak{g}$ is the Lie algebra of $\mathcal{G}$, and $\exp$ is the
exponential map. A generalized Heisenberg group is
said to be \emph{maximally noncommutative} if ${Z}_{{\tt
  Heis}(\mathcal{G})}={{\rm U}(1)}$. A maximally noncommutative
generalized Heisenberg group is simply called a Heisenberg group.
\end{definition}

Any smooth map $c:\mathcal{G}\times\mathcal{G}\to{{\rm U}(1)}$ satisfying
the cocycle condition
\begin{displaymath}
c(g_{1},g_{2})\,c(g_{1}+g_{2},g_{3})=c(g_{1},g_{2}+g_{3})\,c(g_{2},g_{3})
\end{displaymath}
for all ${g_{1},g_{2},g_{3}\in\mathcal{G}}$ defines a generalized
Heisenberg group denoted ${\tt Heis}(\mathcal{G};c)$. As a manifold
${\tt Heis}(\mathcal{G};c)$ is topologically the product
$\mathcal{G}\times{{\rm U}(1)}$, while the multiplication is defined by
\begin{equation}
(g_{1},z_{1})\cdot(g_{2},z_{2}):=
\big(g_{1}+g_{2}\,,\,c(g_{1},g_{2})\,z_{1}\,z_{2}\big)
\label{Heismult}\end{equation}
for all ${g_{1},g_{2}\in\mathcal{G}}$ and
$z_{1},z_{2}\in{{\rm U}(1)}$. From the group cocycle $c$ we construct the
\emph{commutator map
\begin{equation}
s\,:\,\mathcal{G}\times\mathcal{G}~\longrightarrow~{{\rm U}(1)}
\label{commmap}\end{equation}
defined by
\begin{equation}\label{commcocycle}
s(g_{1},g_{2}):=\frac{c(g_{1},g_{2})}{c(g_{2},g_{1})}
\end{equation}
for all ${g_{1},g_{2}\in\mathcal{G}}$. The commutator map $s$ enjoys
the following properties:
\begin{enumerate}
\item From the definition (\ref{Heismult}) of the group operation in
  ${\tt Heis}(\mathcal{G};c)$ and (\ref{commcocycle}) it follows that the group commutator is given by
\begin{equation}
\big[(g_1,z_1) \,,\, (g_2,z_2)\big]= \big(0\,,\, s(g_1,g_2)\big) \ .
\label{Heisgroupcomm}\end{equation}
\item $s$ is alternating:
\begin{eqnarray*}
s(g,g)=1 \ .
\end{eqnarray*}
\item $s$ is bimultiplicative:
\begin{eqnarray*}
s(g_1+g_2,h)=s(g_1,h)\, s(g_2,h) \qquad \mbox{and} \qquad
s(g,h_1+h_2)= s(g,h_1)\, s(g,h_2) \ .
\end{eqnarray*}
\item $s$ is skew-symmetric:
\begin{eqnarray*}
s(g,h) = s(h,g)^{-1} \ .
\end{eqnarray*}
\end{enumerate}

Given a smooth map $f:\mathcal{G}\to{{\rm U}(1)}$, consider the cocycle
$\tilde{c}$ for the group $\mathcal{G}$ defined by
\begin{displaymath}
\tilde{c}(g_{1},g_{2}):=\dfrac{f(g_{1}\,g_{2})}{f(g_{1})\,f(g_{2})}\,
c(g_{1},g_{2}) \ .
\end{displaymath}
We say that $\tilde{c}$ and $c$ differ by a
\emph{coboundary}. The ma
\begin{displaymath}
(g,z)~\longmapsto~\big(g\,,\,f(g)\,z\big)
\end{displaymath}
induces an isomorphism
\begin{displaymath}
{\tt Heis}(\mathcal{G};c)~\xrightarrow{ \ \approx \ }~
{\tt Heis}(\mathcal{G};\tilde{c}\,) \ .
\end{displaymath}
It follows easily tha
\begin{displaymath}
\tilde{s}(g_{1},g_{2})=s(g_{1},g_{2})
\end{displaymath}
for all ${g_{1},g_{2}}\in\mathcal{G}$. A complete characterization of
generalized Heisenberg groups is given in~\cite{Freed:2006ya}.

\begin{proposition}\label{class} Given an abelian Lie group
  $\mathcal{G}$, any generalized Heisenberg group ${\tt
    Heis}(\mathcal{G})$ is of the form ${\tt Heis}(\mathcal{G};c)$ for
  some cocycle $c$, and ${\tt Heis}(\mathcal{G})$ is uniquely
  determined up to isomorphism by its commutator map
  (\ref{commmap}). Conversely, every alternating and bimultiplicative
  map $s:\mathcal{G}\times\mathcal{G}\to{{\rm U}(1)}$ uniquely
  determines a Heisenberg group ${\tt Heis}(\mathcal{G})$ up to
  isomorphism.
\end{proposition}

Denote by $\mathscr{E}_{\mathcal{G}}$ the category of central
extensions of $\mathcal{G}$ by the circle group ${{\rm U}(1)}$ with the usual
morphisms. Let $\mathscr{C}_{\mathcal{G}}$ be the category whose
objects are bimultiplicative maps $\psi:\mathcal{G}\times \mathcal{G}\to {{\rm U}(1)}$
(and hence automatically satisfy the cocycle condition), and whose morphisms
are \emph{quadratic} maps $f:\mathcal{G}\to{{\rm U}(1)}$, sending $\psi$ to the
map $\psi\, \psi_{f}$ where
\begin{displaymath}
\psi_{f}(g_{1},g_{2})=\frac{f(g_{1}\, g_{2})}{f(g_{1})\, f(g_{2})}
\ .
\end{displaymath}
The bimultiplicativity of the coboundary $\psi_{f}$ is precisely what is meant by $f$
being quadratic. Then there is a functor
\begin{displaymath}
\mathscr{C}_{\mathcal{G}}~\longrightarrow~\mathscr{E}_{\mathcal{G}}
\end{displaymath}
which assigns a central extension to a cocycle. By
Prop.~\ref{class}, this defines a
natural equivalence of categories.

Suppose that we weaken the definition of the commutator map $s$ so that it is skew-symmetric but not alternating. This implies
\begin{displaymath}
s(g,g)^{2}=1
\end{displaymath}
for all $g\in\mathcal{G}$, and so the group $\mathcal{G}$ acquires a
natural $\mathbb{Z}_2$-grading given by the homomorphism $g\mapsto
s(g,g)\in\mathbb{Z}_2$. A \emph{graded (generalized) Heisenberg
  group} is a central extension ${\tt Heis}(\mathcal{G})$ of
$\mathcal{G}$ by ${{\rm U}(1)}$ which is at the same time a
$\mathbb{Z}_2$-graded group; the maps in the central extension are
$\mathbb{Z}_2$-graded homomorphisms, with ${{\rm U}(1)}$ regarded as trivially graded. A graded central extension naturally
determines a commutator map which is skew-symmetric but not
alternating~\cite{Freed:2006ya}. Note that to every such skew-symmetric bimultiplicative map $s$ one can assign an alternating bimultiplicative map $\widetilde s$ by defining
\begin{equation}
\widetilde{s}(g_{1},g_{2}):=s(g_1,g_2) \ \exp\big(-\pi {\,{\rm i}\,}
\varepsilon(g_{1})\, \varepsilon(g_{2}) \big)
\label{stildeeps}\end{equation}
where $\varepsilon(g)$ is defined (modulo 2) through $s(g,g)=\exp\big(
\pi
  {\,{\rm i}\,} \varepsilon(g) \big)$.

\begin{proposition}\label{class2} Every graded central extension of an
  abelian Lie group $\mathcal{G}$ by ${{\rm U}(1)}$ is determined
  uniquely up to isomorphism by its graded commutator map
  (\ref{commmap}). Conversely, every skew-symmetric and bimultiplicative map
  $s:\mathcal{G}\times\mathcal{G}\to{{\rm U}(1)}$ uniquely determines
  such a graded central extension up to isomorphism.
\end{proposition}

\subsubsection*{Generalized Stone--von~Neumann theorem}

One of the main results in the theory of generalized Heisenberg groups
is the fact that the irreducible unitary representations are uniquely
determined. This is essentially an extension of the Stone--von~Neumann
theorem. Consider the group
\begin{equation}\label{center}
Z_{\mathcal{G};c}:=\big\{g\in\mathcal{G}\:\big| \:s(g,h)=1\quad
\forall h\in\mathcal{G}\big\} \ .
\end{equation}
The center $Z_{{\tt Heis}(\mathcal{G};c)}$ of ${\tt
  Heis}(\mathcal{G};c)$ sits in the exact sequence
\begin{displaymath}
1~\longrightarrow~{{\rm U}(1)}~\xrightarrow{ \ i \ }~
Z_{{\tt Heis}(\mathcal{G};c)}~\longrightarrow~{Z_{\mathcal{G};c}}~
\longrightarrow~0
\end{displaymath}
where $i$ is the inclusion. In any irreducible unitary representation $\rho$ of ${\tt
  Heis}(\mathcal{G};c)$, by Schur's lemma the center acts by scalar
multiplication as elements of the circle group ${{\rm U}(1)}$. Since the representations
we are considering satisfy $(\rho\circ i)(z)=z\, {\rm id}$ for all $z\in{{\rm U}(1)}$, it follows that this sequence splits non-canonically via a homomorphism $\chi:Z_{{\tt
    Heis}(\mathcal{G};c)}\to{{\rm U}(1)}$.

\begin{proposition}\label{representation}
Any irreducible unitary representation of a
generalized Heisenberg group of finite
dimension ${\tt Heis}(\mathcal{G};c)$ for which
${{\rm U}(1)} \subseteq Z_{{\tt Heis}(\mathcal{G};c)}$ acts by the identity
character is uniquely
determined up to isomorphism by a splitting homomorphism
$\chi:Z_{{\tt Heis}(\mathcal{G};c)}\to{{\rm U}(1)}$. Conversely, any
such homomorphism $\chi$ gives rise to such an irreducible unitary representation of ${\tt Heis}(\mathcal{G};c)$.
\end{proposition}

\begin{corollary}
If the commutator map $s$
is \emph{non-degenerate}, i.e. the group (\ref{center}) is the trivial
group $Z_{\mathcal{G};c}=0$, then up to isomorphism there is a unique irreducible unitary
representation of ${\tt Heis}(\mathcal{G};c)$ for which the center $Z_{{\tt Heis}(\mathcal{G};c)}=\{(0,z) \ |
\ z\in{{\rm U}(1)}\}$
acts by scalar multiplication.
\end{corollary}

\subsubsection*{Examples}

\begin{itemize}
\item Let us return to the example $\widetilde{\mathcal{G}}=\mathcal{G}\times \widehat{\mathcal{G}}$
  and ${\mathcal H}= {\rm L}^2(\mathcal{G})$ from \S\ref{Quant} The Heisenberg group
  extending $\widetilde{\mathcal{G}}$ has a representation
\begin{eqnarray*}
{\tt Heis}(\widetilde{\mathcal{G}}\,) \ \longrightarrow \ {\rm GL}({\mathcal H}) \ , \qquad
\big((g,\chi) \,,\, z) \ \longmapsto \ z\, T_g\circ M_\chi \ .
\end{eqnarray*}
The cocycle in this case is given by
\begin{eqnarray*}
c\big((g_1,\chi_1)\,,\, (g_2,\chi_2)\big) = \frac{1}{\chi_1(g_2)} \ ,
\end{eqnarray*}
and its antisymmetrization gives the commutator map
\begin{eqnarray*}
s\big((g_1,\chi_1)\,,\, (g_2,\chi_2)\big) =
\frac{\chi_2(g_1)}{\chi_1(g_2)} \ .
\end{eqnarray*}
\item Let $\mathcal{G}=\mathbb{R}$, which we regard as parametrizing ``coordinate''
  operators $\epsilon^{{\,{\rm i}\,} p\, \hat x}$. The Pontrjagin dual
  $\widehat{\mathcal{G}}=\widehat{\mathbb{R}}\cong \mathbb{R}$ may then be regarded as parametrizing ``momentum'' operators $\epsilon^{{\,{\rm i}\,} x\, \hat p}$, so that
  $\widetilde{\mathcal{G}}=\mathbb{R}\times\mathbb{R}$ is ``phase space''.  More precisely, any character on
  $\mathcal{G}$ in this case is of the form $\chi(p)=\epsilon^{{\,{\rm i}\,} x\, p}$ for some
  $x\in\mathbb{R}$. Then the commutator map $s$ gives the canonical
  symplectic pairing on phase space, and the uniqueness result of
  Prop.~\ref{representation} is the usual Stone--von~Neumann theorem of
  quantum mechanics expressing uniqueness of the irreducible
  Schr\"odinger representation of the Heisenberg commutation relations.
\end{itemize}

\subsubsection*{Polarization}

Prop.~\ref{representation} can be generalized to
infinite-dimensional abelian groups which are
\emph{polarized}~\cite{Freed:2006ya}.

\begin{definition}
A \emph{polarization} of an abelian Lie group $\mathcal{G}$ is an action of the real line $\mathbb{R}$ on the Lie
algebra $\mathfrak{g}$ of $\mathcal{G}$ via operators
$\{u_{t}\}_{t\in{\mathbb{R}}}$ which preserve the Lie bracket and decompose
the complexification $\mathfrak{g}_{\mathbb{C}}$ into a countable
direct sum of finite-dimensional subspaces $\mathfrak{g}_{\lambda}$,
$\lambda\in\mathbb{R}$, such that $u_{t}$ for each $t$ acts on
$\mathfrak{g}_{\lambda}$ as multiplication by
$\epsilon^{{\,{\rm i}\,}\lambda\,{t}}$. If $\mathcal{G}$ is a polarized group, then a
unitary representation of the Heisenberg group ${\tt
  Heis}(\mathcal{G})$ on a Hilbert space $\mathcal{H}$ is said to be
of \emph{positive energy} if there is a unitary action of the real
line on $\mathcal{H}$ by operators $U_t=\exp({\,{\rm i}\,} t\, H)$,
$t\in{\mathbb{R}}$, which intertwine with the action of ${\tt
  Heis}(\mathcal{G})$ on $\mathcal{H}$ such that the operator $H$
has discrete non-negative spectrum.
\end{definition}

In physical applications, the
one-parameter family $\{u_{t}\}$ is typically given by hamiltonian flow on phase
space while $\{{U}_{t}\}$ determines the time evolution of the
associated quantum theory, hence the positive energy condition.

\begin{proposition}\label{representationinf}
For a polarized generalized Heisenberg group ${\tt
  Heis}(\mathcal{G};c)$, any irreducible unitary representation of
positive energy for which
${{\rm U}(1)} \subseteq Z_{{\tt Heis}(\mathcal{G};c)}$ acts by the identity
character is uniquely determined up to isomorphism by a
splitting homomorphism $\chi:Z_{{\tt
    Heis}(\mathcal{G};c)}\to{{\rm U}(1)}$. Conversely, any such
homomorphism $\chi$ gives rise to such an irreducible unitary representation of
${\tt Heis}(\mathcal{G};c)$ of positive energy.
\end{proposition}

If ${\tt Heis}(\mathcal{G})$ is a $\mathbb{Z}_2$-graded
generalized Heisenberg group, then the quantum Hilbert space
$\mathcal{H}$ automatically acquires a $\mathbb{Z}_2$-grading as
well.

\subsection{Quantization of free generalized abelian gauge theory\label{Quantgenab}}

We will now explain the setting for the quantization of
generalized abelian gauge theories following~\cite{Freed:2006ya,Freed:2006yc}. We
consider hamiltonian quantization of an abelian gauge theory with
semi-classical configuration space $\check\E{}^d(M)$ given by a smooth refinement $\check\E{}^\bullet$ of a generalized cohomology theory $\E^\bullet$ on the spacetime $M=\mathbb{R}\times N$ with metric of indefinite signature, where $N$ is a compact oriented riemannian manifold. For $[\check{A}]\in\check\E{}^d(M)$, the classical equations of motion for the gauge theory are
\begin{equation}\label{maxwell}
{\rm d} F([\check{A}])=0 \qquad \mbox{and} \qquad
{\rm d}\star F([\check{A}])=0
\end{equation}
where $F:\check\E{}^d(M)\to \Omega_\mathbb{Z}(M;E^\bullet)^d$ is the field strength map (curvature), with $E^\bullet=\E^\bullet({\rm pt})\otimes_\mathbb{Z}\mathbb{R}$, and $\star$ denotes the Hodge duality operator on $M$. Of course, the first equation is automatically satisfied. We are interested in the \emph{space of classical solutions}, i.e. the subspace $\mathcal{M}\subset{\check\E{}^d(M)}$ of gauge fields $[\check A]$ which solve the equations (\ref{maxwell}).

For this, we decompose $F([\check{A}])$ on $M$ as
\begin{equation}\label{decomposition}
F([\check{A}])=B(t)-E(t)\wedge{{\rm d} t}
\end{equation}
where $t$ is the time coordinate on $\mathbb{R}$, and $B(t)$ and $E(t)$ for
each $t\in\mathbb{R}$ are $d$- and $d-1$-forms on $N$, respectively. (The
notation stems from the fact that when $\E^\bullet=\RH^\bullet$ is
ordinary cohomology and $d=2$, i.e. in Maxwell theory, the forms $B(t)$ and $E(t)$ are the
magnetic and electric fields, respectively.) Then (\ref{maxwell}) can be rewritten as
\begin{equation}\label{hamiltonian}
\dfrac{\partial}{\partial{t}}B=-\tilde {\rm d} E \qquad \mbox{and} \qquad
\dfrac{\partial}{\partial{t}}\, \tilde\star E=\tilde {\rm d}\, \tilde\star B \ ,
\end{equation}
where $\tilde\star$ denotes the Hodge duality operator and $\tilde {\rm d}$
the exterior derivative on $N$. The Cauchy data for these
first order linear elliptic differential equations are the values of
$B(t)$ and $E(t)$ at a given initial time $t=t_0$; the corresponding
solutions uniquely determine $F([\check{A}])$ on $M$ through~(\ref{decomposition}).

In particular, we can identify the solution space $\mathcal{M}$ with the
tangent bundle $T\check\E{}^d(N)$ in the following way. First, notice
that $T\check\E{}^d(N)$ can be trivialized as $\check\E{}^d(N)\times
\Omega(N;E^\bullet)^{d-1} /\, {\rm im}({\rm d})$. Consider the map
\begin{displaymath}
i_{t_0}\,:\, N \ \longrightarrow \ \mathbb{R}\times{N} \ , \qquad i_{t_0}(x)=(t_0,x) \ .
\end{displaymath}
It induces a map from $\mathcal{M}$ to $T\check\E{}^d(N)$ by assigning
to $[\check{A}]$ the pair $(i^{*}_{t_0}[\check{A}],E(t_0))$, where
$E(t)$ is determined by the decomposition (\ref{decomposition}). The
inverse map is obtained by assigning to the pair $([\check{B}],E)$ the
unique element $[\check{A}]\in\check\E{}^{d}(M)$ such that
$i_{t_0}^{*}[\check{A}]=[\check{B}]$ and
$F([\check{A}])=B(t)-E(t)\wedge {\rm d} t$, where $B(t)$ and $E(t)$ are
obtained from (\ref{hamiltonian}) with initial conditions given by
$B(t_0)=B$ and $\tilde\star E(t_0)=\tilde\star E$. The uniqueness of
$[\check{A}]$ is assured by the fact that the map $i_{t_0}$ induces
the isomorphism $\E^{d-1}(M;{\mathbb T})\cong \E^{d-1}(N;{\mathbb T})$ of cohomology
classes (flat fields) in the kernel of the field strength
transformation.

With the identification of the space of classical solutions as
$\mathcal{M}=T\check\E{}^d(N)$, the standard hamiltonian quantization scheme
suggests that the quantum Hilbert space of the generalized abelian
gauge theory is given heuristically by the ``space of ${\rm L}^2$-functions
on $\mathcal{G}=\check\E{}^d(N)$''. A more precise definition is given
in~\cite{Freed:2006ya,Freed:2006yc}, where it is proposed that the
quantum (projective) Hilbert space ${\mathcal H}$ of a generalized abelian gauge theory with
configuration space a group $\mathcal{G}$ is an
irreducible representation of the generalized
Heisenberg group
\begin{eqnarray*}
{\tt Heis}\big(\mathcal{G}\times\widehat{\mathcal{G}}\, \big) \ ,
\end{eqnarray*}
where $\widehat{\mathcal{G}}={\sf Hom}_{\mathscr{A}b}(\mathcal{G},{{\rm U}(1)})$ is the group of
characters of $\mathcal{G}$ in the category $\mathscr{A}b$ of abelian groups. The case of self-dual gauge theories is somewhat simpler, as then the phase
space $\mathcal{G}\times\widehat{\mathcal{G}}$ degenerates to the
configuration space; in this case, due to the self-duality equations (\ref{selfdualityeqsEd}),
the space of classical solutions on $M$ may be identified with the
diagonal subgroup $\mathcal{G}\cong\widehat{\mathcal{G}}$ and the quantization is
carried out using the Heisenberg group ${\tt
  Heis}(\mathcal{G})$ itself. This technique can be applied to any abelian group
$\mathcal{G}$ based on a smooth refinement of a Pontrjagin self-dual
generalized cohomology theory $\E^\bullet$~\cite[App.~B]{Freed:2006ya}; one quantizes the Poisson
manifold $\mathcal{G}$ in this case.

Isomorphism classes of Heisenberg group extensions are determined by
maps $s:\widetilde{\mathcal{G}}\times\widetilde{\mathcal{G}}\to {{\rm U}(1)}$ which are
skew-symmetric, alternating and bimultiplicative, where
$\widetilde{\mathcal{G}}=\mathcal{G}\times\widehat{\mathcal{G}}$. For any generalized differential cohomology theory one can define a
pairing
\begin{equation}
\check\E{}^d(N)\otimes \check\E{}^{n-s+1-d}(N)
\ \longrightarrow \ {\mathbb T} \ , \qquad \big( [\check A]\,,\, [\check
A'\,] \big) \ \longmapsto \ \int^{\check\E}\!\!\!\!\!\int_N \, [\check A]\smile [\check
A'\,] \ .
\label{genEpairing}\end{equation}
The perfectness of the pairing (\ref{genEpairing}) is a feature of any
generalized differential cohomology theory $\check\E{}^\bullet$, defined as explained
in \S\ref{Gendiffcoh}, for which $\E^\bullet$ is a Pontrjagin
self-dual generalized cohomology theory, defined as in
\S\ref{Selfduality} The proof makes use of the fact that for such
theories there is a perfect pairing
\begin{eqnarray*}
\E^d(N)\otimes \E^{n-s-d}(N;{\mathbb T}) \ \longrightarrow \ {\mathbb T} \ ,
\end{eqnarray*}
and that the $\mathbb{R}/\mathbb{Z}$ cohomology $\E^\bullet(N;{\mathbb T})$ appears as the
kernel of the field strength map; see~\cite[App.~B]{Freed:2006ya} for
details. The commutator map $s$ may then be constructed by exponentiating the
pairing~(\ref{genEpairing}).

The equations (\ref{maxwell}) can be obtained as the variational
equations for the action functional
\begin{equation}\label{lag}
{S}([\check{A}]):=-\frac{1}{2}\, \int_{M}\, F([\check{A}])\wedge\star
F([\check{A}]) \ ,
\end{equation}
and the hamiltonian derived from (\ref{lag}) is given by
\begin{equation}\label{ham}
{H}(t):=\frac{1}{2}\, \int_{N}\,
\big(B\wedge\tilde\star B+E\wedge\tilde\star E \big) \ .
\end{equation}
The hamiltonian (\ref{ham}) is a non-negative function defined on the cotangent bundle $T^{*}\mathcal{G}$. At the identity,
$T_0^*\mathcal{G}$ is the dual $\mathfrak{g}^*$ of the Lie algebra
$\mathfrak{g}$ of $\mathcal{G}$. The canonical hamiltonian flow $\mathbb{R}\to T^*\mathcal{G}$
yields a family of maps $u_t:\mathfrak{g}^*\to \mathfrak{g}^*$ which
is an action of $\mathbb{R}$ on $\mathfrak{g}^*$. If $\widehat\mathcal{G}$ is the
Pontrjagin dual of $\mathcal{G}$ obtained through a non-degenerate pairing
$\mathcal{G}\otimes\mathcal{G} \to{\mathbb T}$, then we obtain a family of operators acting
on the Lie algebra $\mathfrak{g}\oplus \mathfrak{g}^*$ of
$\mathcal{G}\times\widehat\mathcal{G}$ which satisfies all the properties of a
polarization.
Quite generally, the choice of polarization also appears in K\"ahler
quantization, wherein the K\"ahler form is given by the differential
of the antisymmetric pairing; in this instance though one should
clarify the origin of a suitable pre-quantum line bundle on the
configuration groupoid.

In the self-dual case, this polarization does \emph{not}
induce a polarization on the diagonal subgroup. See~\cite{Freed:2006yc} for
a way to relate the self-dual gauge theory to a non-self-dual gauge
theory in dimensions $\dim(M)=4k+2$, $k\in\mathbb{N}$; see also~\cite{Belov:2006jd,Belov:2006xj,Monnier:2010ww} where the
complete pre-quantization data is specified. The problems with
formulating self-dual higher abelian gauge theories which are both
local and covariant go back to e.g.~\cite{Henneaux:1988gg}, see also~\cite{Dunne:1989hv}.

In the following we will explicitly work out the cases where
$\E^\bullet=\RH^\bullet$ is ordinary cohomology and where
$\E^\bullet={\tt K}^\bullet$ is complex K-theory.

\subsection{Quantization of higher abelian gauge theory\label{QuantHAGT}}

We will first apply this formalism to the Cheeger--Simons
groups. Let us begin by giving the heuristic argument using canonical
quantization of free fields. Let
$(\check A,\Pi)$ denote local coordinates on the phase space
$T^*\check\RH{}^p(N)= \check\RH{}^p(N)\times \Omega_{\rm cl}^{n-p+1}(N)$ where
$\Pi=\star F\big|_N$ with $[\star F]_{\rm dR}\in\RH^{n-p+1}(N;\mathbb{R})$; we think of the ``conjugate momentum'' $\Pi$ as
the functional derivative operator
$-{\,{\rm i}\,} \hbar\, \frac\delta{\delta\check A}$ which generates translations
on the configuration space $\check\RH{}^p(N)$.  The
differential cohomology $\check\RH{}^p(N)$ is an abelian Lie group
with a translation-invariant measure induced formally on $T\check\RH{}^p(N)$ by
the riemannian metric on $N$. By quantizing $F,\Pi$
to operators $\hat F,\hat\Pi$ acting on the Hilbert space ${\mathcal H}:={\rm
  L}^2\big(\check\RH{}^p(N)\big)$ we get the Heisenberg commutation relations
\begin{eqnarray*}
\Big[\,\int_N\, \omega_1\wedge \hat F\,,\, \int_N\, \omega_2\wedge
\hat\Pi\, \Big] = \Big({\,{\rm i}\,}\hbar \int_N\, \omega_1\wedge{\rm d}\omega_2
\Big) \ {\rm id}_{\mathcal H}
\end{eqnarray*}
for any pair of differential forms $\omega_1,\omega_2$. The right-hand
side of these relations is just the pairing on globally defined forms
in differential cohomology.

Now let us make this argument more precise. Using Pontrjagin duality
\begin{eqnarray*}
\check\RH{}^p(N)\times
\check\RH{}^{n-p+1}(N) \ \longrightarrow \ {\mathbb{T}}
\end{eqnarray*}
for $N$ compact and oriented, we set
\begin{equation}
\widetilde{\mathcal{G}} = \check\RH{}^p(N)\times \widehat{\check\RH{}^p(N)}
\cong \check\RH{}^p(N)\times \check\RH{}^{n-p+1}(N)
\label{AGTphasespace}\end{equation}
which is the phase space of an abelian gauge theory from \S\ref{GAGT}
As the space of classical solutions on $M=\mathbb{R}\times N$ in this
case is the tangent bundle on the Cheeger--Simons group $
\check\RH{}^p(N)$, the Hilbert space is heuristically ${\mathcal H}={\rm
  L}^2\big(\check\RH{}^p(N)\big)$. Since in this case the abelian
group $\mathcal{G}=\check\RH{}^p(N)$ is infinite-dimensional, the quantization
must be specified by a polarization. In the
hamiltonian formalism, a natural polarization is given by the
energy operator $H={\,{\rm i}\,}\frac\partial{\partial t}$; then the
complexifcation of the space of classical solutions $\mathcal{M}$ is a sum of
subspaces of
positive and negative energy solutions. In this case the quantum
(projective) Hilbert space ${\mathcal H}$ is the unique irreducible
representation of the associated Heisenberg group which is compatible
with the polarization. If $N$ is non-compact, then this discussion
needs to be modified using some (conjectural) analog of ${\rm
  L^2}$-cohomology for the Cheeger--Simons groups.

In the present case the commutator map $s:\widetilde{\mathcal{G}}\times\widetilde{\mathcal{G}}\to {{\rm U}(1)}$ can be constructed using the
Pontrjagin--Poincar\'e duality property of ordinary differential
cohomology to define the pairing
\begin{eqnarray*}
\langle-,-\rangle \,:\, \check\RH{}^p(N)\otimes \check\RH{}^{n-p+1}(N)
\ \longrightarrow \ {\mathbb T}=\mathbb{R}/\mathbb{Z} \ , \qquad \big\langle [\check A]\,,\, [\check
A'\,] \big\rangle=\int^{\check\RH}\!\!\!\!\!\int_N \, [\check A]\smile [\check
A'\,] \ .
\end{eqnarray*}
This pairing is \emph{perfect}, i.e. it induces an isomorphism
\begin{eqnarray*}
\check\RH{}^p(N)\cong{\sf Hom}_{\mathscr{A}b}\big(\check\RH{}^{n-p+1}(N)\,,\,{\mathbb T}\big)
\ ,
\end{eqnarray*}
so that every homomorphism
$\check\RH{}^p(N) \to{\mathbb T}$ is given by pairing with an element of
$\check\RH{}^{n-p+1}(N)$. Let us sketch how to
understand this isomorphism. Using the universal coefficient theorem
and Poincar\'e duality, one shows that the pairing
\begin{eqnarray*}
\RH^p(N;{\mathbb T})\otimes \RH^{n-p}(N) \ \longrightarrow \ {\mathbb T} \ , \qquad
(\alpha,\alpha'\,) \ \longmapsto \ \big\langle \alpha\smile\alpha'
\,,\, [N]\big\rangle
\end{eqnarray*}
is perfect, where $[N]$ denotes the fundamental class of the manifold
$N$. Moreover, one can define a pairing
\begin{eqnarray*}
\Omega_\mathbb{Z}^p(N)\otimes\Omega^{n-p}(N)\,\big/\, \Omega^{n-p}_\mathbb{Z}(N) \
\longrightarrow \ {\mathbb T} \ , \qquad \big(F\,,\,[A]\big) \ \longmapsto \
\int_N\, F\wedge A \quad {\rm mod} \ \mathbb{Z}
\end{eqnarray*}
which is well-defined and perfect. Then by (\ref{CSexactseqs}) there is a commutative diagram
\begin{eqnarray*}
\xymatrix{
0 \ \ar[r] & \ \RH^{p-1}(N;{\mathbb T}) \ \ar[r]\ar[d]^\approx & \ \check\RH{}^p(N) \
\ar[r]^F \ar[d] & \ \Omega_\mathbb{Z}^p(N) \ \ar[r]\ar[d]^\approx & \ 0 \\
0 \ \ar[r] & \ \widehat{\RH^{n-p+1}(N;{\mathbb T})} \ \ar[r] & \ \widehat{\check\RH{}^{n-p+1}(N)} \
\ar[r] & \ \widehat{\Omega^{n-p}(N)\,\big/\, \Omega_\mathbb{Z}^{n-p}(N)} \ \ar[r] & \ 0
}
\end{eqnarray*}
where $\widehat{G}:={\sf Hom}_{\mathscr{A}b}(G,{\mathbb T})$ and the vertical maps are
the morphisms induced by the above pairings. It then follows that the
middle arrow is an isomorphism as well.

By using this pairing we may define a non-degenerate commutator map
$s:\widetilde{\mathcal{G}}\times \widetilde{\mathcal{G}}\to {{\rm U}(1)}$ by
\begin{eqnarray*}
s\big(([\check A_1], [\check
A_1'\,]) \,,\,([\check A_2], [\check
A_2'\,]) \big) = \exp\Big( 2\pi{\,{\rm i}\,} \big(\langle [\check A_2], [\check
A_1'\,]\rangle - \langle [\check A_1], [\check
A_2'\,]\rangle \big) \Big)
\end{eqnarray*}
which defines a central extension of the group (\ref{AGTphasespace}). In this case, the map
$\varepsilon$ from (\ref{stildeeps}) is given in terms of Wu classes which are
polynomials in the Stiefel--Whitney classes of the tangent bundle of
$N$~\cite{Freed:2006yc}. After choosing a polarization, there thus
exists a unique (up to isomorphism) irreducible Stone--von~Neumann representation of
the Heisenberg group ${\tt Heis}(\widetilde{\mathcal{G}}\,)$ on which the central
elements $(0,z)$ are realised as multiplication by $z\in{{\rm U}(1)}$; we
identify this representation with the quantum Hilbert space ${\cal H}= {\rm
  L}^2\big(\check\RH{}^p(N)\big)$ of the higher abelian gauge theory.

\subsection{Quantization of Ramond--Ramond gauge theory\label{QuantRR}}

We will now consider the hamiltonian quantization of Ramond--Ramond
gauge fields in the absence of D-brane sources, i.e. as induced solely
by the closed string background.
In the free Ramond--Ramond gauge theory on $M=\mathbb{R}\times N$ we have to contend with
self-duality. In this case we set
\begin{eqnarray*}
\widetilde{\mathcal{G}}=\mathcal{G}=\check{\tt K}{}^j(N) \ ,
\end{eqnarray*}
and the commutator map $s$ is obtained by restriction from
$\check{\tt K}{}^j(N)\times \check{\tt K}{}^j(N)$ to its ``diagonal'' subgroup,
in a sense that we now explain.

By composing the cup product with the integration map on differential
K-theory, we define an intersection form
\begin{eqnarray*}
(-,-) \,:\, \check{\tt K}{}^j(N)\otimes \check{\tt K}{}^j(N) \ \xrightarrow{ \
  \smile \ } \ \check{\tt K}{}^0(N) \ \xrightarrow{ \ \int^{\check{\tt K}}\!\!\!\int_N \ }
\ \check{\tt K}{}^{-1}({\rm pt})\cong {\mathbb T} \ ,
\end{eqnarray*}
where we have used Bott periodicity and the assumption that $n=\dim(N)$ is odd.
Explicitly, for Ramond--Ramond potentials $[\check C]$ and $[\check
C'\,]$ in complementary degrees, i.e. $\deg[\check C]+\deg[\check
C'\,] =n+1$, one has
\begin{equation}
\big( [\check C]\,,\, [\check C'\,] \big):= \int^{\check{\tt K}}\!\!\!\!\!\int_N \,
[\check C]\smile [\check C'\, ] \ \in \ {\mathbb T} \ .
\label{intformdiffK}\end{equation}
By the general properties of Pontrjagin self-dual generalized
cohomology theories, this pairing is \emph{perfect}, i.e. it induces
an isomorphism
\begin{eqnarray*}
\check{\tt K}{}^j(N)\cong {\sf Hom}_{\mathscr{A}b}\big(\check{\tt K}{}^j(N)\,,\, {\mathbb T}\big)
\ .
\end{eqnarray*}
But it is not necessarily \emph{antisymmetric}, due to
graded-commutativity of the cup product, e.g. in even degree $j=0$
this pairing is symmetric. To this end we use the Adams operation
(\ref{Adamsop}) (lifting the complex conjugation map $\Psi^{-1}$ of
\S\ref{Selfduality}) to define a new pairing by
\begin{equation}
\big\langle [\check C]\,,\, [\check C'\,] \big\rangle:= \Big[\,
\int^{\check{\tt K}}\!\!\!\!\!\int_N \,
[\check C]\smile \check\Psi^{-1}[\check C'\, ] \, \Big]_{u^0} \ \in \
{\mathbb T} \ ,
\label{diffKpairing}\end{equation}
where again we regard differential forms on $N$ as elements of the
graded vector space $\Omega(N;K^\bullet)^\bullet$ with $K^\bullet=\mathbb{R}(u)$.

\begin{theorem}
The
pairing $\langle-,-\rangle:\check{\tt K}{}^j(N)\otimes \check{\tt K}{}^j(N) \to
{\mathbb T}$ is non-degenerate, and it is antisymmetric in dimensions $n\equiv1 \ {\rm mod} \ 4$.
\label{pairingthm}\end{theorem}
\begin{proof}
The operator $u^{-\ell}\,\check\Psi^{-1}$ is an involution, and hence
an isomorphism, and so since $(-,-)$ is non-degenerate, it follows
that the pairing $\langle-,-\rangle$ is also non-degenerate.
For illustration, we will prove antisymmetry for topologically trivial Ramond--Ramond
fields in Type~IIA string theory, i.e. potentials $[\check
C]=[C]\in\check{\tt K}{}^0(N)$ which can be represented
by odd degree differential forms $C\in\Omega(N;K^\bullet )^{-1}$
(modulo exact forms). Setting $n=2k+1$, the pairing is then given
modulo $\mathbb{Z}$ by
\begin{eqnarray*}
\big\langle [C]\,,\, [C'\,] \big\rangle &=& \Big[\, \int_N \,
C\wedge {\rm d} \Psi^{-1}(C'\,) \, \Big]_{u^0} \quad {\rm mod} \ \mathbb{Z}
\\[4pt] &=& \Big[\,
\int_N\,\Big(\,\sum_{j=0}^k \, u^{-j-1}\otimes C_{2j+1}\,\Big)\wedge\Big(\,
u^{k+1}\,\sum_{l=0}^k\,
(-1)^{l}\,u^{-l-1}\otimes {\rm d} C'_{2l+1}\,\Big)\,\Big]_{u^0} \nonumber\\[4pt]
&=&(-1)^{k+1}\,\sum_{j=0}^k\,(-1)^j \ \int_N \,C_{2j+1}\wedge
 {\rm d} C'_{2(k-j)-1} \nonumber\\[4pt] &=&(-1)^{k+1}\,
\sum_{j=0}^k\,(-1)^j \ \int_N \,C'_{2(k-j)-1} \wedge
 {\rm d} C_{2j+1} \nonumber\\[4pt]
&=& (-1)^{k+1}\, \Big[\, \int_N \,
C' \wedge {\rm d} \Psi^{-1}(C) \, \Big]_{u^0} \ = \ (-1)^{k+1}\,
\big\langle [C'\,]\,,\, [C] \big\rangle \ ,
\end{eqnarray*}
where $C_p,C_p' \in\Omega^p(N)$; we have used the fact that $N$ has no
boundary and that the de~Rham differential is a skew-derivation on
forms. It follows that the pairing $\langle-,-\rangle$ is
antisymmetric only when $k$ is an even integer, i.e. when
$n= \dim(N)=1+4r$ with $r\in\mathbb{N}$. In the general case, the
proof given in~\cite{Freed:2006ya} involves the definition of an
orthogonal version of differential K-theory, and its value on a point.
\end{proof}

Thm.~\ref{pairingthm} applies in particular to the case relevant
to the physical Type~II superstring theory, where $N$ is a
nine-dimensional spin manifold. Using it we can now define
the Type~IIA/IIB commutator map
\begin{eqnarray*}
s\,:\, \check{\tt K}{}^j(N)\times \check{\tt K}{}^j(N) \ \longrightarrow \ {{\rm U}(1)} \ ,
\qquad s\big( [\check C]\,,\, [\check C'\,] \big) = \exp\Big(2\pi{\,{\rm i}\,}
\big\langle [\check C]\,,\, [\check C'\,] \big\rangle \Big)
\end{eqnarray*}
in even/odd degree. It is bilinear, skew-symmetric, and
non-degenerate, but it is \emph{not} necessarily alternating. One has
$s(g,g)^2=1$ for all $g\in\mathcal{G}$, so that $s(g,g)=\exp(\pi{\,{\rm i}\,}
\varepsilon(g))$, where $\varepsilon:\mathcal{G}\to\mathbb{Z}_2$ is a group homomorphism
which defines a \emph{$\mathbb{Z}_2$-grading}. An alternating commutator map
$\widetilde{s}$ is then defined by
\begin{equation}
\widetilde{s}\big( [\check C]\,,\, [\check C'\,] \big) =
\exp\Big(2\pi{\,{\rm i}\,} \big(
\big\langle [\check C]\,,\, [\check C'\,]\big\rangle
-\mbox{$\frac12$}\, \varepsilon[\check C]\, \varepsilon[\check C'\,] \big)
\Big) \ .
\label{tildecommmap}\end{equation}
This definition does not depend on the chosen lifts. The degree
\begin{eqnarray*}
\varepsilon[\check C] = 2\, \big\langle [\check C]\,,\, [\check C] \big\rangle =
2\, \Big[\, \int^{\check{\tt K}}\!\!\!\!\!\int_N \,
[\check C]\smile \check\Psi^{-1}[\check C] \, \Big]_{u^0} \ \in \ \mathbb{Z}_2
\end{eqnarray*}
depends only on the
characteristic class of $[\check C]$,
i.e. $\varepsilon\in{\sf Hom}_{\mathscr{A}b}({\tt K}^j(N),\mathbb{Z}_2)$; for $j=0$ it can be identified with the mod~2 index of the Dirac operator on
$N$ coupled to the virtual bundle $\xi\otimes\overline{\xi}$, where
$\xi=c([\check C]) $.

Using Prop.~\ref{class2} we may now define the Heisenberg group
extension ${\tt Heis}\big(\check{\tt K}{}^j(N)\big)$ of the
differential K-theory group $\mathcal{G}=\check{\tt K}{}^j(N)$ associated to the
commutator map $s$, which is unique up to (non-canonical)
isomorphism. It is also
$\mathbb{Z}_2$-graded with degree map
$\varepsilon:{\tt Heis}\big(\check{\tt K}{}^j(N)\big) \to \mathbb{Z}_2$, with the maps
in the central extension $\mathbb{Z}_2$-graded and the ${{\rm U}(1)}$ subgroup of even
degree. The quantum Hilbert space ${\mathcal H}$ is also $\mathbb{Z}_2$-graded, and the unique $\mathbb{Z}_2$-graded irreducible
representation of ${\tt Heis}\big(\check{\tt K}{}^j(N)\big)$ (after a choice of
polarization) is compatible with the $\mathbb{Z}_2$-grading on ${\sf End}_\mathbb{C}({\mathcal H})$.

\begin{definition}
The quantum Hilbert space of the Ramond--Ramond gauge theory
${\mathcal H}_{\rm RR}$ is the unique irreducible $\mathbb{Z}_2$-graded unitary
representation of the Heisenberg group
${\tt Heis}\big(\check{\tt K}{}^j(N)\big)$ of positive energy defined by the commutator map
(\ref{tildecommmap}) which is compatible with the polarization
discussed in \S\ref{Quantgenab}, with the property that the central subgroup ${{\rm U}(1)}$ acts by
scalar multiplication, where $j=0/-1$ for the Type~IIA/IIB string theory respectively.
\label{hilRRdef}\end{definition}

The $\mathbb{Z}_2$-grading implies, in particular, that the quantum Hilbert
space ${\mathcal H}_{\rm RR}$ contains both bosonic and fermionic states. Let
\begin{eqnarray*}
{\cal O}\,: \, {\tt Heis}\big(\check{\tt K}{}^j(N)\big) \ \longrightarrow \
{\sf End}_\mathbb{C}({\mathcal H}_{\rm RR})
\end{eqnarray*}
denote the irreducible representation of Def.~\ref{hilRRdef}. Given classes
$[\check C], [\check C'\, ]\in\check{\tt K}{}^j(N)$, let
$\check{\mathcal C}=([\check C],z)$ and $\check{\mathcal C}{}'=([\check C'\,],z'\, )$ be
lifts to the Heisenberg group ${\tt Heis}\big(\check{\tt K}{}^j(N)\big)$. From
(\ref{Heisgroupcomm}), with the commutator understood as the graded
group commutator in ${\tt Heis}\big(\check{\tt K}{}^j(N)\big)$, together with
${\cal O}\big((0,z)\big)=z\, {\rm id}_{{\mathcal H}_{\rm RR}}$ for all $z\in{{\rm U}(1)}$, it follows that
the commutation relations among the corresponding unitary operators on the
(infinite-dimensional) quantum Hilbert space ${\mathcal H}_{\rm RR}$ of the
Ramond--Ramond gauge theory are given by
\begin{equation}
\big[{\cal O}(\check{\mathcal C}\, )\,,\, {\cal O}(\check{\mathcal C}\,'\,)\big] =
\widetilde{s}\big( [\check C]\,,\, [\check C'\,] \big) \
{\rm id}_{{\mathcal H}_{\rm RR}}
\label{quantumcomms}\end{equation}
in ${\sf End}_\mathbb{C}({\mathcal H}_{\rm RR})$.

\subsection{Noncommutative quantum flux sectors}

The quantum flux sectors of the free abelian gauge theory can be
described as follows. A state $\psi\in{\rm
  L}^2\big(\check\RH{}^p(N)\big)$ of definite electric flux $
E\in\RH^{n-p+1}(N;\mathbb{Z})$ is an eigenstate of translation by flat
fields, i.e.
\begin{eqnarray*}
\psi(\check A+\phi) = \exp\Big(2\pi {\,{\rm i}\,} \int^{\RH{}}\!\!\!\!\!\!\int_N
\, E\smile \phi\Big) \
\psi(\check A) \qquad \mbox{for} \quad \phi\in \RH^{p-1}(N;{\mathbb{T}}) \ .
\end{eqnarray*}
This defines a decomposition of the Hilbert space ${\mathcal H}$ into electric
flux sectors labelled by $E\in\RH^{n-p+1}(N;\mathbb{Z})$. Note that an
analogous definition using electric fields $\check
E\in\check\RH{}^{n-p+1}(N)$ and arbitrary translations
$\check\phi\in\check\RH{}^{p-1}(N)$ would lead to wavefunctionals
$\psi$ which are neither compactly supported nor decaying; in
particular, $\check E_1$ is homotopic to $\check E_2$ if and only if
$\int^{\check\RH{}}\!\!\!\int_N\, \check\phi\smile\check
E_1=\int^{\check\RH{}}\!\!\!\int_N\, \check\phi\smile\check E_2$ for
$\phi\in\RH^{p-1}(N;{\mathbb T})$, or equivalently if and only if
$\int^{\RH{}}\!\!\!\!\int_N\, \phi\smile c(\check E_1)= \int^{\RH{}}\!\!\!\!\int_N\, \phi\smile c(\check E_2)$. Using dual
flat fields, we also get a decomposition of ${\mathcal H}$ into magnetic flux sectors
labelled by $B\in\RH^{p}(N;\mathbb{Z})$. However, one cannot simultaneously
decompose ${\mathcal H}$ into both electric and magnetic flux sectors because of the
Heisenberg commutation relations
\begin{eqnarray*}
\big[\mathcal{U}_E(\eta_e)\,,\,\mathcal{U}_B(\eta_m)\big] = \exp\Big(2\pi {\,{\rm i}\,}
\int^{\RH{}}\!\!\!\!\!\!\int_N \, \eta_e\smile \beta(\eta_m)\Big)
\ {\rm id}_{\mathcal H}
\ ,
\end{eqnarray*}
where $\mathcal{U}_{E}:\RH^{p-1}(N;{\mathbb{T}})\to {\mathcal H}$ and
$\mathcal{U}_{B}:\RH^{n-p}(N;{\mathbb{T}})\to {\mathcal H}$ are quantization
maps corresponding to the electric and magnetic gradings of the Hilbert
space ${\mathcal H}$, and $\beta$ is the Bockstein homomorphism (see
(\ref{CSflatseq})). Hence non-trivial commutators are related to
torsion in the cohomology $\RH^\bullet(N;\mathbb{Z})$; this means that the
Hilbert space ${\mathcal H}$ can be simultaneously graded by electric and
magnetic fluxes only modulo torsion. See~\cite{Freed:2006ya,Freed:2006yc} for
further details.

For $p=1$ and $M=S^1$, the generalized abelian gauge theory is the
theory of a periodic scalar field $g:S^1\to S^1$; in this case the
magnetic flux is the winding number and the electric flux is the
momentum of the field $g$.

For $p=2$ and $N=L_k=S^3/\mathbb{Z}_k$ a lens space, there is only torsion in the
relevant cohomology groups $\RH^2(L_k;\mathbb{Z})=\mathbb{Z}_k$ and
$\RH^1(L_k;{\mathbb T})=\mathbb{Z}_k$. The quantum Hilbert space is the unique
finite-dimensional irreducible representation of the Heisenberg group
extension
\begin{eqnarray*}
1 \ \longrightarrow \ \mathbb{Z}_k \ \longrightarrow \ {\tt
  Heis}(\mathbb{Z}_k\times\mathbb{Z}_k) \ \longrightarrow \ \mathbb{Z}_k\times\mathbb{Z}_k \
\longrightarrow \ 0 \ ,
\end{eqnarray*}
and hence one cannot simultaneously measure
electric and magnetic flux in this case. A potential experimental test of this phenomenon is
described in~\cite{Kitaev:2007ed}: Although any embedded codimension
zero three-manifold in $\mathbb{R}^3$ has torsion-free cohomology, it might
be possible to find a configuration where the effective space is only
immersed, with a line of double points, by using Josephson junctions.

Now let us look more closely at the quantum flux sectors of the
Ramond--Ramond gauge theory. As first pointed out in~\cite{Moore2000}, the quantization of \emph{flat}
Ramond--Ramond fields is of particular interest; these fluxes are described by classes in the K-module
theory which is isomorphic to the kernel of the curvature morphism
\begin{equation}
{\tt K}^{j-1}(N;{\mathbb T})=\ker\Big(\check{\tt K}{}^j(N)\xrightarrow{ \ F \
}\Omega(N;K^\bullet)^j\Big) \ \xrightarrow{ \ \check \imath \ } \
\check{\tt K}{}^j(N) \ ,
\label{flatgroup}\end{equation}
where $\check \imath$ denotes the embedding and we assume $n=\dim(N)=4k+1$
for some $k\in\mathbb{N}$. The Chern character ${\sf ch}:{\tt K}^j(N)\to
\RH(N;K^\bullet)^j$ becomes an isomorphism after tensoring over
$\mathbb{R}$; its kernel coincides with the image of the connecting
homomorphism $\beta:{\tt K}^{j-1}(N;{\mathbb T})\to {\tt K}^j(N)$, so that ${\rm
  im}(\beta)={\sf Tor}\, {\tt K}^j(N)\subseteq{\tt K}^j(N)$ is the torsion
subgroup. We will show that the quantum commutators
(\ref{quantumcomms}) restrict non-degenerately to the flat
Ramond--Ramond fields if and only if the K-theory ${\tt K}^j(N)$ has
non-trivial torsion subgroup (and the real cohomology vanishes in the
opposite parity).
On general grounds, the non-degenerate pairing on the torsion group
arises from the fact that there exists a non-degenerate pairing
between the group of components of the flat part and the torsion
subgroup of topological K-theory. Note that this sector of the
Ramond--Ramond gauge theory is ``topological'', in the sense that the
corresponding hamiltonian vanishes and there is no time evolution. In
this case the Heisenberg group ${\tt Heis}\big({\tt K}^{j-1}(N;{\mathbb T})\big)$ is a
finite-dimensional torus extended by a finite abelian group which
plays the role of the (finite-dimensional) configuration space of
fields; by Prop.~\ref{representation} it is represented uniquely on a
$\mathbb{Z}_2$-graded finite-dimensional Hilbert space ${\mathcal H}$. These torsion
fluxes arise entirely from Dirac quantization, and the corresponding
quantum operators do not all commute in the quantization by the full
K-theory group ${\tt K}^j(N)$.

\begin{proposition}
Suppose that ${\sf Tor}\, {\tt K}^j(N)=0$. Let $\omega,\omega'\in
{\tt K}^{j-1}(N;{\mathbb T})$ be classes of flat fields with lifts
$\tilde\omega,\tilde\omega'$ to the Heisenberg group
${\tt Heis}\big({\tt K}^{j-1}(N;{\mathbb T})\big)$. Then
$$
\big[\mathcal{O}(\tilde\omega)\,,\,\mathcal{O}(\tilde\omega'\,)\big] =
{\rm id}_{{\mathcal H}_{\rm RR}} \ .
$$
\label{Ktors0thm}\end{proposition}
\begin{proof}
Since ${\sf ch}\circ c =[\, - \,]_{\rm dR}\circ F$, we have
\begin{equation*}
c\circ{\check \imath}(\omega) \ \in \ {\sf Tor}\, {\tt K}^j(N)
\end{equation*}
for $\omega\in {\tt K}^{j-1}(N;{\mathbb T})$. One also has
\begin{displaymath}
\check\imath(\omega)\smile{[\check C]}=\check \imath\big(\omega \,
\dot{\smile} \, c([\check C])\big)
\end{displaymath}
for $\omega \in {\tt K}^{j-1}(N;{\mathbb T})$ and $[\check C]\in\check{\tt K}{}^{j'}(N)$, where
\begin{equation*}
\dot{\smile}\,:\, {\tt K}^{j-1}(N;{\mathbb T})\otimes{{\tt K}}^{j'}
(N) ~ \longrightarrow~ {\tt K}^{j+j'-1}(N;{\mathbb T})
\end{equation*}
denotes the restriction of the cup product. Then
\begin{eqnarray*}
\big\langle\,  \check\imath(\omega)\,,\, \check\imath(\omega'\,) \,
\big\rangle &=& \Big[\,\int^{\check
  {\tt K}}\!\!\!\!\!\int_{N} \, \check
\imath(\omega)\smile\check\Psi^{-1}\big(\, \check\imath(\omega'\,)  \, \big)\,
\Big]_{u^0}\\[4pt]
&=&\Big[\,\int^{\check
  {\tt K}}\!\!\!\!\!\int_{N} \, \check\imath(\omega)\smile
\check\imath \big(\Psi^{-1}(\omega'\,)\big) \, \Big]_{u^0} \\[4pt]
&=&\Big[\,\int^{\check
  {\tt K}}\!\!\!\!\!\int_{N} \, \check\imath\Big(\omega\,
\dot{\smile}\, c\circ\check{\imath}\big(\Psi^{-1}(\omega'\,)\big)\Big) \,
\Big]_{u^0} \ = \ 0 \ ,
\end{eqnarray*}
where we have used the fact that the Adams operation $\check\Psi^{-1}$
commutes with the embedding $\check\imath$ and the last equality
follows from ${\sf Tor}\,{\tt K}^j(N)=0$.
\end{proof}

The converse of Prop.~\ref{Ktors0thm} gives an explicit criterion and
formula for the non-trivial quantum commutators of flat fields in the
Ramond--Ramond gauge theory; its crux is the fact that the pairing (\ref{diffKpairing})
factors to a non-degenerate pairing on the torsion part of topological K-theory.

\begin{proposition}
If ${\sf Tor}\, {\tt K}^j(N)\neq0$, then there exist classes $\omega,\omega'\in{\tt K}^{j-1}(N;{\mathbb T})$ such that
\begin{eqnarray*}
\big[{\cal O}(\tilde \omega)\,,\, {\cal O}(\tilde\omega'\,)\big] \neq
{\rm id}_{{\mathcal H}_{\rm RR}} \ .
\end{eqnarray*}
\label{torsthm}\end{proposition}
\begin{proof}
We show that the pairing $\langle-,-\rangle$ on
differential K-theory restricts non-degenerately to the subring
${\tt K}^{j-1}(N;{\mathbb T})\subset \check{\tt K}{}^j(N)$. Since ${\tt K}^{j-1}(N;{\mathbb T})\cong{\sf Hom}_{\mathscr{A}b}({\tt K}^j(N),{\mathbb T})$, there is a non-degenerate pairing
\begin{eqnarray*}
(-,-)_{{\tt K}} \,:\, {\tt K}^{j-1}(N;{\mathbb T}) \otimes {\tt K}^j(N) \ \longrightarrow \
{\mathbb T}
\end{eqnarray*}
given by a formula like that in (\ref{intformdiffK}). Combined with
the pairing
\begin{eqnarray*}
\Omega_\mathbb{Z}(N;K^\bullet)^j\otimes \big( \Omega(N;K^\bullet)^{j-1}\,
\big/ \, \Omega_\mathbb{Z}(N;K^\bullet)^{j-1}\big) \ \longrightarrow \ {\mathbb T} \
, \qquad \big(F\,,\,[C]\big) \ \longmapsto \ \Big[\, \int_N\, F\wedge
C\, \Big]_{u^0}
\end{eqnarray*}
and the two exact sequences (\ref{diffKexactseqs}) of differential
K-theory, one proves explicitly that the pairing (\ref{intformdiffK})
is a perfect pairing. Recall from \S\ref{DiffK} that
the group of flat fields (\ref{flatgroup}) sits in the long exact sequence
\begin{eqnarray*}
\cdots \ \longrightarrow \ {\tt K}^{j-1}(N) \ \xrightarrow{ \ {\sf ch} \ } \ \RH(N;K^\bullet)^{j-1} \
\longrightarrow \ {\tt K}^{j-1}(N;{\mathbb T}) \ \xrightarrow{ \ \delta \ } \
{\tt K}^j(N) \ \xrightarrow{ \ {\sf ch} \ } \ \RH(N;K^\bullet)^j \
\longrightarrow \ \cdots
\end{eqnarray*}
which induces the short exact sequence
\begin{equation}
0 \ \longrightarrow \ \RH(N;K^\bullet)^{j-1} \, \big/ \,
{\sf ch}\big({\tt K}^{j-1}(N)\big) \ \longrightarrow \ {\tt K}^{j-1}(N;{\mathbb T}) \
\xrightarrow{ \ \beta \ } \ {\sf Tor}\, {\tt K}^j(N) \ \longrightarrow 0 \ .
\label{flatshortexact}\end{equation}
There is also a short exact sequence
\begin{eqnarray*}
0~\longrightarrow~ {\sf Hom}_{\mathscr{A}b}\big(\RH(N;K^\bullet)^j\,,\,{\mathbb T}\big)
&\longrightarrow& {\sf Hom}_{\mathscr{A}b}\big({\tt K}^j(N)\,,\,{\mathbb T}\big)~
\longrightarrow \\ &\longrightarrow&  {\sf Hom}_{\mathscr{A}b}\big({\sf Tor}\,{\tt K}^j(N)\,,\,{\mathbb T}\big)~
\longrightarrow~ 0
\end{eqnarray*}
obtained by applying the exact contravariant functor
${\sf Hom}_{\mathscr{A}b}\big(-,{\mathbb T})$ to the short exact sequence induced by taking the kernel of the Chern character homomorphism
${\sf ch}:{\tt K}^j(N)\to \RH(N;K^\bullet)^j$. We then obtain a commutative diagram with exact
horizontal sequences given by
$$
{\scriptsize\xymatrix{
0~
\ar[r]&~\dfrac{\RH(N;K^\bullet)^{j-1}}{{{\sf ch}}\big({\tt K}^{j-1}(N)
  \big)}~ \ar[r]\ar[d]& ~{\tt K}^{j-1}(N;{\mathbb T})~
\ar[r]^{\beta}\ar[d]^{\approx}& ~{\sf Tor}\, {\tt K}^j(N) ~ \ar[r]\ar[d]& ~0\\
0~ \ar[r]& \ {\sf Hom}_{\mathscr{A}b}\big(\RH(N;K^\bullet)^j \,,\,{\mathbb T}\big)~ \ar[r]&
~{\sf Hom}_{\mathscr{A}b}\big({\tt K}^j(N) \,,\,{\mathbb T} \big)~
\ar[r]& ~{\sf Hom}_{\mathscr{A}b}\big({\sf Tor}\, {\tt K}^j(N) \,,\,{\mathbb T} \big)~ \ar[r]&
~0
}}
$$
where the vertical morphism on the left is given by composing wedge product,
integration, and reduction modulo $\mathbb{Z}$, and in the middle isomorphism
we have used Pontrjagin duality of the $\mathbb{R}/\mathbb{Z}$ K-theory
${\tt K}^{j-1}(N;{\mathbb T})$. By Pontrjagin duality on $K^\bullet$-valued cohomology
$\RH(N;K^\bullet)^j$ it follows that the left vertical morphism is an isomorphism,
and hence so is the right vertical morphism. Denote by
\begin{equation}
(-,-)_{{\sf Tor}} \,:\, {\sf Tor}\, {\tt K}^j(N) \otimes{\sf Tor}\, {\tt K}^j(N) \
\longrightarrow \ {\mathbb T}
\label{torsionpairing}\end{equation}
the \emph{torsion pairing} associated to these morphisms. Then the
calculation in the proof of Prop.~\ref{Ktors0thm} shows that
$$
\big\langle \, \check\imath(\omega)\,,\, \check\imath(\omega'\,)
\big\rangle=\big(\omega\,,\,c(\,\check\imath(\omega'\,)\, ) \big)_{{\tt K}}
\ ,
$$
and since ${\sf ch}\circ
c=[-]_{\rm dR}\circ F$, we have $c(\, \check i(\omega'\,))\in {\sf Tor}\, {\tt K}^j(N)$
and it follows that
$$
\big\langle \, \check\imath(\omega)\,,\, \check\imath(\omega'\,)
\big\rangle =\big(\beta(\omega)\,,\,c(\, \check\imath(\omega'\,) \,)
\big)_{{\sf Tor}} \ ,
$$
where we have used the fact that the kernel torus $\ker(\beta)$ of the Bockstein
homomorphism has trivial cup product with the torsion elements in ${\sf Tor}\,
{\tt K}^j(N)$. Since the pairing $(-,-)_{{\sf Tor}}$ is
non-degenerate, and ${\sf Tor}\, {\tt K}^j(N) \neq0$, we can always find classes
$\omega$ and $\omega'$ in ${\tt K}^{j-1}(N;{\mathbb T})$ such that $\langle \,
\check\imath(\omega), \check\imath(\omega'\,)\rangle \neq0$.
\end{proof}

An explicit formula for the torsion pairing (\ref{torsionpairing})
can be written as follows. Let $E\to N$ be a
complex vector bundle and ${\tt rank}(E)$ the trivial vector bundle over
$N$ of the same rank as $E$. Then the K-theory class
$\xi=[E]-[{\tt rank}(E)]$ is torsion, so there exits an integer $k$ and an
isomorphism on K-theory $\psi:E^{\oplus k}\to k\, [{\tt rank}(E)]$. Let
$\nabla$ be a connection on $E$, and $\nabla_0$ the trivial connection
with vanishing holonomy. Then the K-theory integral of the class $\xi$
can be expressed as
\begin{eqnarray*}
\int^{{\tt K}}\!\!\!\!\!\int_N \,
\xi=\eta(\Dirac_\nabla)-\eta(\Dirac_{\nabla_0})- \frac1k\, \int_N\,
{\sf CS}\big(\psi^*(\nabla^{\oplus k})\,,\, \nabla_0^{\oplus k}\big) \wedge
\widehat{A}(N) \quad {\rm mod} \ \mathbb{Z} \ ,
\end{eqnarray*}
where $\eta(\Dirac_\nabla)$ is the spectral asymmetry of the Dirac operator
on $N$ coupled to the bundle $E$.

The flat fluxes play a crucial role in the grading on the quantum
Hilbert space $\mathcal{H}_{\rm RR}$ of the
Ramond--Ramond gauge theory into topological
sectors~\cite{Freed:2006ya,Freed:2006yc}. As explained
by~\cite{Moore2000,Freed:2006ya,Freed:2006yc}, the subgroup of
differential K-theory comprinsing flat cocycles is the group of
unbroken gauge symmetries of the Ramond--Ramond gauge theory. The
equivalence classes comprising shifts of cycles by flat fields define
the topological classes of Ramond--Ramond fluxes. Recall that the characteristic classes
$\xi\in{\tt K}^j(N)$ label the connected components of
$\check{\tt K}{}^j(N)$. Hence there is a natural grading of the quantum Hilbert
space ${\mathcal H}_{\rm RR}$ of the Ramond--Ramond gauge theory into topological sectors by the K-theory group ${\tt K}^j(N)$ modulo
torsion; it is induced by diagonalising the translation action by the
flat Ramond--Ramond fields. The group of components of this subgroup,
which is isomorphic to the torsion part of the topological
K-theory, can shift the Hilbert space gradings. In that case, the
grading can only be defined modulo these torsion subgroups. By Prop.~\ref{torsthm}, if the topological K-theory ${\tt K}^j(N)$
of the space $N$ has non-trivial torsion subgroup, then elements of the
subgroup of flat Ramond--Ramond fields do not commute in the Heisenberg extension of the
differential K-theory group and quantize to
operators which do not all
commute among themselves; this expresses an uncertainty
principle which asserts that the K-theory class of a Ramond--Ramond
field cannot be measured. Explicit examples exhibiting this phenomenon
can be found in~\cite[Ex.~2.21]{Freed:2006ya}
and~\cite[\S5]{Freed:2006yc}. Flat Ramond--Ramond fluxes also give rise to novel effects in certain flux
compactifications of Type~IIA string
theory~\cite[\S4.5]{dBDHKMMS}. If $N$ is any smooth manifold of dimension
$4k+1$ with finite
abelian fundamental group, then the K-theory
${\tt K}^0(N)$ contains a non-trivial torsion subgroup. A simple example is the manifold
$N=L_k\times S^6$ where $L_k\cong S^3/\mathbb{Z}_k$ is a three-dimensional
lens space; then ${\sf Tor}\, {\tt K}^0(N)=\mathbb{Z}_k\oplus\mathbb{Z}_k$.

\bigskip

\section*{Acknowledgments}

\noindent
This article is based partly on a series of lectures given by the
author at the
school on ``Higher Index Theory and Differential K-Theory'' which was
held at the Mathematisches Institut of Georg-August-Universit\"at in
G\"ottingen, Germany on October 18--22, 2010; the author thanks Alexander Kahle,
Thomas Schick and Alessandro Valentino for the invitation and
hospitality during the school. Some of the details in these notes
arose in the course of discussions and correspondence with Ulrich Bunke,
Thomas Schick and Alessandro Valentino, whom we warmly thank for the
collaboration. Some parts of this paper are
also influenced by discussions and presentations at the workshop on ``Differential
Cohomology'' which was held at the Simons Center for Geometry
and Physics in Stonybrook, New York on January 10--14, 2011; the
author warmly thanks Dan Freed, Greg Moore and Dennis Sullivan for
the invitation to participate. Portions of this paper were
developed at the Erwin Schr\"odinger International Institute for Mathematical
Physics in Vienna, Austria during July 2012 under the auspices of the
programme ``K-Theory and Quantum Field Theory''; we thank
Alan Carey, Harald Grosse and Jouko Mickelsson for the invitation to
participate and present some of this material. Finally, the author would like to thank Andrey Bytsenko
for the invitation to contribute this article to the proceedings.
This work was supported in part by the
Consolidated Grant ST/J000310/1 from the UK Science and Technology
Facilities Council, and by Grant RPG-404 from the Leverhulme Trust.

\bigskip