In algebraic geometry, a moduli space of curves is a space whose points correspond to isomorphism classes of algebraic curves. The term "modulus" was introduced for this purpose by Bernhard Riemann, and means "parameter"; thus a "moduli space" means a space giving parameters that specify all of the curves of a given kind. With a moduli space, instead of studying one curve at a time, one studies all curves of a given kind as members of a single geometric family. The moduli space of curves (of a given kind) is a special case of the more general notion moduli space, which gives a parameter space for other kinds of objects (curves, surfaces, etc). Different choices of conditions lead to different moduli spaces. For example, one may fix the genus, allow only smooth or also certain singular curves, or include marked points. Depending on the problem, the moduli object may be constructed as a scheme, an algebraic space, or more naturally as an algebraic stack. In many cases there is both a coarse moduli space, which records isomorphism classes of curves, and a finer stack that also keeps track of their automorphisms. A well-studied example is the moduli of smooth projective curves of genus g. Over the field of complex numbers, these correspond to compact Riemann surfaces. Classically, the (coarse) moduli space of genus g=1 curves having a marked point (elliptic curve groups) is the (classical) modular curve. For g>1, the moduli stack of smooth curves is denoted ℳg, and its compactification by stable nodal curves is denoted ℳ‾g. These spaces and stacks play a central role in algebraic geometry, Teichmüller theory, and the theory of modular forms.
Moduli stacks of stable curves The moduli stack ℳg classifies families of smooth projective curves, together with their isomorphisms. When g>1, this stack may be compactified by adding new "boundary" points which correspond to stable nodal curves (together with their isomorphisms). A curve is stable if it is complete, connected, has no singularities other than double points, and has only a finite group of automorphisms. The resulting stack is denoted ℳ‾g. Both moduli stacks carry universal families of curves. Both stacks above have dimension 3g−3; hence a stable nodal curve can be completely specified by choosing the values of 3g−3 parameters, when g>1. In lower genus, one must account for the presence of smooth families of automorphisms, by subtracting their number. There is exactly one equivalence class of complex curves of genus zero, namely the Riemann sphere, and its group of automorphisms is PGL(2). Hence the dimension of ℳ0 is equal to
dim(space of genus 0 curves)−dim(group of automorphisms)=0−dim(PGL(2))=−3. Likewise, in genus 1, there is a one-dimensional space of curves, but every such curve has a one-dimensional group of automorphisms. Hence, the stack ℳ1 has dimension 0.
Construction and irreducibility It is a non-trivial theorem, proved by Pierre Deligne and David Mumford, that the moduli stack ℳg is irreducible, meaning it cannot be expressed as the union of two proper substacks. They prove this by analyzing the locus Hg of stable curves in the Hilbert scheme Hilbℙ5g−5−1Pg(n) of tri-canonically embedded curves (from the embedding of the very ample ωC⊗3 for every curve) which have Hilbert polynomial Pg(n)=(6n−1)(g−1). Then, the stack [Hg/PGL(5g−6)] is a construction of the moduli space ℳg. Using deformation theory, Deligne and Mumford show this stack is smooth and use the stack of isomorphisms between stable curves IsomS(C,C′), to show that ℳg has finite stabilizers, hence it is a Deligne–Mumford stack. Moreover, they find a stratification of Hg as
Hgo∐Hg,1∐⋯∐Hg,n, where Hgo is the subscheme of smooth stable curves and Hg,i is an irreducible component of S∗=Hg∖Hgo. They analyze the components of ℳg0=Hg0/PGL(5g−6) (as a GIT quotient). If there existed multiple components of Hgo, none of them would be complete. Also, any component of Hg must contain non-singular curves. Consequently, the singular locus S∗ is connected, hence it is contained in a single component of Hg. Furthermore, because every component intersects S∗, all components must be contained in a single component, hence the coarse space Hg is irreducible. From the general theory of algebraic stacks, this implies the stack quotient ℳg is irreducible.
Properness Properness, or compactness for orbifolds, follows from a theorem on stable reduction on curves. This can be found using a theorem of Grothendieck regarding the stable reduction of Abelian varieties, and showing its equivalence to the stable reduction of curves.section 5.2
Coarse moduli spaces One can also consider the coarse moduli spaces representing isomorphism classes of smooth or stable curves. These coarse moduli spaces were actually studied before the notion of moduli stack was introduced. In fact, the idea of a moduli stack was introduced by Deligne and Mumford in an attempt to prove the projectivity of the coarse moduli spaces. In recent years, it has become apparent that the stack of curves is actually the more fundamental object. The coarse moduli spaces have the same dimension as the stacks when g>1; however, in genus zero the coarse moduli space has dimension zero, and in genus one, it has dimension one.
Examples of low genus moduli spaces
Genus 0 Determining the geometry of the moduli space of genus 0 curves can be established by using deformation theory. The number of moduli for a genus 0 curve, e.g. ℙ1, is given by the cohomology groupH1(C,TC)With Serre duality this cohomology group is isomorphic toH1(C,TC)≅H0(C,ωC⊗TC∨)≅H0(C,ωC⊗2)for the dualizing sheaf ωC. But, using Riemann–Roch shows the degree of the canonical bundle is −2, so the degree of ωC⊗2 is −4, hence there are no global sections, meaningH0(C,ωC⊗2)=0showing there are no deformations of genus 0 curves. This proves ℳ0 is just a single point, and the only genus 0 curves are given by ℙ1. The only technical difficulty is the automorphism group of ℙ1 is the algebraic group PGL(2,ℂ), which rigidifies once three points on ℙ1 are fixed, so most authors take ℳ0 to mean ℳ0,3.
Genus 1
… excerpt ends here. Continue reading the full article.

