In algebraic geometry, given a smooth projective curve X over a finite field F q {\displaystyle \mathbf {F} _{q}} and a smooth affine group scheme G over it, the moduli stack of principal bundles over X, denoted by Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} , is an algebraic stack given by: for any F q {\displaystyle \mathbf {F} _{q}} -algebra R,
In particular, the category of F q {\displaystyle \mathbf {F} _{q}} -points of Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} , that is, Bun G ( X ) ( F q ) {\displaystyle \operatorname {Bun} _{G}(X)(\mathbf {F} _{q})} , is the category of G-bundles over X.
Similarly, Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} can also be defined when the curve X is over the field of complex numbers. Roughly, in the complex case, one can define Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} as the quotient stack of the space of holomorphic connections on X by the gauge group. Replacing the quotient stack (which is not a topological space) by a homotopy quotient (which is a topological space) gives the homotopy type of Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} .
In the finite field case, it is not common to define the homotopy type of Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} . But one can still define a (smooth) cohomology and homology of Bun G ( X ) {\displaystyle \operatorname {Bun} _{G}(X)} .