%~Mouliné par MaN_auto v.0.25.0 2021-11-15 09:14:31
\documentclass[AHL,Unicode,longabstracts,published]{cedram}

\usepackage{amssymb}
\usepackage{mathrsfs}
\usepackage{wrapfig}
\usepackage{subfig}

\usepackage{pgf}
\usepackage{tikz}

%\usepackage{enumitem}
%\usepackage[noabbrev]{cleveref}


\newcommand{\noopsort}[1]{}
\usetikzlibrary{arrows}



%\crefname{setup}{setup}{setups}


\newcommand{\et}{^{\on{et}}}

\newcommand{\on}[1]{\operatorname{#1}}
\newcommand{\bb}[1]{{\mathbb{#1}}}
\newcommand{\cl}[1]{{\mathscr{#1}}}
\newcommand{\ca}[1]{{\mathcal{#1}}}
\newcommand{\bd}[1]{{\mathbf{#1}}}

\newcommand{\frks}{\mathfrak{s}}
\newcommand{\frkt}{\mathfrak{t}}
\newcommand{\frkm}{\mathfrak{m}}
\newcommand{\frkp}{\mathfrak{p}}


\newcommand*\lleft{\left<\!\left<}
\newcommand*\rright{\right>\!\right>}



\newcommand{\ra}{\rightarrow}
\newcommand{\hra}{\hookrightarrow}
\newcommand{\sub}{\subseteq}


\newcommand{\M}[1]{\ca{M}_{#1}}
\newcommand{\Mbar}[1]{\overline{\ca{M}}_{#1}}
\newcommand{\Mtil}[1]{\widetilde{\ca{M}}_{#1}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\graphicspath{{./figures/}}

\newcommand*{\mk}{\mkern -1mu}
\newcommand*{\Mk}{\mkern -2mu}
\newcommand*{\mK}{\mkern 1mu}
\newcommand*{\MK}{\mkern 2mu}

%\hypersetup{urlcolor=purple, linkcolor=blue, citecolor=red}


\newcommand*{\relabel}{\renewcommand{\labelenumi}{(\theenumi)}}
\newcommand*{\romanenumi}{\renewcommand*{\theenumi}{\roman{enumi}}}
\newcommand*{\Romanenumi}{\renewcommand*{\theenumi}{\Roman{enumi}}}
\newcommand*{\alphenumi}{\renewcommand*{\theenumi}{\alph{enumi}}}
\newcommand*{\Alphenumi}{\renewcommand*{\theenumi}{\Alph{enumi}}}

\newcommand*{\casenumii}{\renewcommand*{\theenumi}{Case~\arabic{enumi}}}
\newcommand*{\quatrunenumii}{\renewcommand*{\theenumi}{\ref{definition:quasisplit}.\arabic{enumi}}}

\newcommand*{\unptenumii}{\renewcommand*{\theenumi}{1.\arabic{enumi}}}
\newcommand*{\deuxptenumii}{\renewcommand*{\theenumi}{2.\arabic{enumi}}}
\newcommand*{\deuxptunenumii}{\renewcommand*{\theenumi}{2.1.\arabic{enumi}}}
\newcommand*{\dixunenumii}{\renewcommand*{\theenumi}{\ref{def:universal_blowup}.\arabic{enumi}}}

\let\oldtilde\tilde
\renewcommand*{\tilde}[1]{\mathchoice{\widetilde{#1}}{\widetilde{#1}}{\oldtilde{#1}}{\oldtilde{#1}}}
\let\oldhat\hat
\renewcommand*{\hat}[1]{\mathchoice{\widehat{#1}}{\widehat{#1}}{\oldhat{#1}}{\oldhat{#1}}}

\newcommand{\llbracket}{\mathopen{[\mkern -2.7mu[}}
\newcommand{\rrbracket}{\mathclose{]\mkern -2.7mu]}}
\let\oldexists\exists
\renewcommand*{\exists}{\mathrel{\oldexists}}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\title[A N\'eron model of the universal jacobian]{A N\'eron model of the universal jacobian}
\alttitle{Un modèle de N\'eron pour la jacobienne universelle}


\subjclass{14K30, 14H10, 14H40}

\keywords{N\'eron models, jacobians, moduli of curves}


\author[\initial{D.} \lastname{Holmes}]{\firstname{David} \lastname{Holmes}}
\address{Mathematisch Instituut,\\
Universiteit Leiden,\\
Niels Bohrweg 1, Leiden,\\
2333CA, (Netherlands)}
\email{holmesdst@math.leidenuniv.nl}



\thanks{The author was partially supported by NWO grant 613.009.103.}

\begin{abstract}
Jacobians of degenerating families of curves are well-understood over
1-dimensional bases due to work of Néron and Raynaud; the fundamental tool is the Néron model and its description via the Picard functor. Over higher-dimensional bases Néron models typically do not exist, but in this paper we construct a universal base change $\Mtil{g,\,n}\ra\Mbar{g,\,n}$ after which a Néron model $N_{g,\,n}/\Mtil{g,\,n}$ of the universal jacobian does exist. This yields a new partial compactification of the moduli space of curves, and of the universal jacobian over it. The map $\Mtil{g,\,n}\ra\Mbar{g,\,n}$ is separated and relatively representable. The Néron model $N_{g,\,n}/\Mtil{g,\,n}$ is separated and has a group law extending that on the jacobian. We show that Caporaso's balanced Picard stack acquires a torsor structure after pullback to a certain open substack of $\Mtil{g,\,n}$.
\end{abstract}

\begin{altabstract}
Les jacobiennes de dégénérescences de courbes au-dessus de bases de dimension~1 sont bien comprises grâce aux travaux de Néron et Raynaud ; l'outil fondamental est le modèle de Néron et sa description à l'aide du foncteur de Picard. En général, sur des bases de dimension supérieure les modèles de Néron n'existent pas, mais dans cet article nous construisons un changement de base $\Mtil{g,\,n}\ra\Mbar{g,\,n}$ qui est universel pour la propriété qu'un modèle de Néron $N_{g,\,n}/\Mtil{g,\,n}$ de la jacobienne universelle existe. Ceci fournit une nouvelle compactification partielle de l'espace de modules des courbes et de la jacobienne universelle qui vit dessus. Le morphisme $\Mtil{g,\,n}\ra\Mbar{g,\,n}$ est séparé et relativement représentable. Le modèle de Néron $N_{g,\,n}/\Mtil{g,\,n}$ est séparé et possède une loi de groupe qui étend celle de la jacobienne. Nous montrons que le \og~champ de Picard équilibré\fg{} de Caporaso acquiert une structure de torseur après changement de base à un certain sous-champ ouvert de $\Mtil{g,\,n}$.
\end{altabstract}



\datereceived{2019-08-15}
\daterevised{2021-03-15}
\dateaccepted{2021-07-08}

\editor{J. Ayoub}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\begin{DefTralics}
\newcommand{\ra}{\rightarrow}
\newcommand{\ca}[1]{{\mathcal{#1}}}
\newcommand{\M}[1]{\ca{M}_{#1}}
\newcommand{\Mbar}[1]{\overline{\ca{M}}_{#1}}
\newcommand{\Mtil}[1]{\widetilde{\ca{M}}_{#1}}
\end{DefTralics}

\dateposted{2021-12-03}
\begin{document}
\maketitle







\section{Introduction}

\subsection{Models of the universal jacobian}

The jacobian $\ca J_{g,\,n}$ of the universal curve over $\ca M_{g,\,n}$ is an abelian scheme, and comes with a natural extension as a semiabelian scheme $\ca J_{g,\,n}^{0}$ over $\Mbar{g,\,n}$, parametrising line bundles of degree zero on every component of every fibre. This model $\ca J_{g,\,n}^{0}$ is not proper, and sections of $\ca J_{g,\,n}$ often fail to extend to $\ca J_{g,\,n}^{0}$, causing many difficulties in defining linear series on stable curves, compactifying cycles on the moduli space, etc. This motivates the search for ``better'' models of $\ca J_{g,\,n}$ over $\Mbar{g,\,n}$, which has been very extensively studied; the literature is too large to describe in detail here, but highlights include~\cite{Caporaso2008Neron-models-an,Chiodo2015Neron-models-of,Esteves2001Compactifying-t,Kass2017The-stability-s,Melo2009Compactified-Pi}\dots



\subsection{Néron models}

Ideally, one would like a model of $\ca J_{g,\,n}$ over $\Mbar{g,\,n}$ which is proper and admits a group structure; properness guarantees that sections extend and intersection theory makes sense, and the group law gives additional structure to the resulting cycles and linear series. However, this is too much to ask for, as such models of abelian varieties generally fail to exist even over Dedekind base schemes. In the 1960s, Néron proved a beautiful theorem showing that, by replacing properness by the weaker condition that sections should extend, very nice models could be constructed of 1-dimensional families of abelian varieties. More precisely, given a Dedekind scheme $S$, a dense open $U\sub S$ and an abelian variety $A/U$, Néron showed the existence of a \emph{Néron model}; a smooth separated model $N/S$ satisfying the \emph{Néron mapping property}:
\begin{quotation}
\emph{given any smooth morphism $T \to S$ and $U$-morphism $f\colon T\times_S U \to A$, there is a unique $F\colon T \to N$ extending $f$.}
\end{quotation}

Néron models automatically inherit group laws from their generic fibres, and have been by some margin the most widely-used models of abelian schemes over Dedekind bases in geometry and number theory over the past half-century. However, Néron's work cannot in general be directly applied to the universal jacobian, since $\Mbar{g,\,n}$ is rarely of dimension~1. The definition of the Néron model makes sense over any base scheme, without restrictions on the dimension, the problem is that Néron's proof of existence fails, and indeed Néron models generally fail to exist (see~\cite{Holmes2014Neron-models-an}).


\subsection{Summary of main results}

The universal jacobian rarely admits a Néron model; in this article, we construct a ``universal'' stack over $\Mbar{g,\,n}$ over which a Néron model \emph{does} exist. Slightly more formally, we construct a regular integral stack $\Mtil{g,\,n}$ together with a separated representable map $\Mtil{g,\,n} \to \Mbar{g,\,n}$ locally of finite presentation, and with the following properties:
\begin{enumerate}
\item\label{sect1.3.list.1} $\Mtil{g,\,n} \to \Mbar{g,\,n}$ is an isomorphism over $\ca M_{g,\,n}$ (it is birational);
\item\label{sect1.3.list.2} the universal jacobian $\ca J_{g,\,n}$ admits a Néron model over $\Mtil{g,\,n}$ (the \emph{universal Néron model});
\item\label{sect1.3.list.3} If $t\colon T\to \Mbar{g,\,n}$ is any morphism such that $t^* \ca J_{g,\,n}$ admits a Néron model over $T$, then the map $t$ factors uniquely via $\Mtil{g,\,n} \to \Mbar{g,\,n}$ (a more precise statement can be found in Section~\ref{sec:NM_over_univ_aligning}).
\end{enumerate}
The map $\Mtil{g,\,n} \to \Mbar{g,\,n}$ is not proper in general; this is forced upon us by condition~\eqref{sect1.3.list.2} and the results of~\cite{Holmes2014Neron-models-an}, unless a Néron model already exists over $\Mbar{g,\,n}$. In fact it is not in general quasi-compact, essentially because component groups of Néron models of test curves in $\Mbar{g,\,n}$ can be arbitrarily large. The fibres of $\Mtil{g,\,n} \to \Mbar{g,\,n}$ are all either single points, or countably infinite disjoint unions of finite-type schemes. In~\eqref{sect1.3.list.3}, it is not in general true that the pullback of the Néron model over $\Mtil{g,\,n}$ is the Néron model over $T$. Indeed, this would be too much to ask, since e.g. $t$ might be a ramified cover of its image (in Lemma~\ref{lem:pullback_1_str} we \emph{do} prove such a property for a restricted class of morphisms $t$.)


Inside $\Mtil{g,\,n}$ there is an important quasi-compact open substack $\Mtil{g,\,n}^{\le\,1}$, which can be defined as the largest open substack over which the pullback of the universal curve is regular (more details are given in Section~\ref{sec:bounded_thickness}). In Proposition~\ref{prop:cap_pullback}, we show that Caporaso's balanced Picard stack $\ca{P}_{d,\,g}$ (described in more detail below) admits a torsor structure over the universal Néron model, after base-change to $\Mtil{g,\,n}^{\le\,1}$.

\subsection{Comparison to results of Caporaso and Chiodo}

\subsubsection{Caporaso's balanced Picard stack}
Given integers $d$, $g$ such that $\on{gcd}(d-g+1, 2g-2) = 1$, Caporaso constructs in~\cite{Caporaso2008Neron-models-an} a model $\ca{P}_{d,\,g}/\Mbar{g}$ for the degree-$d$ jacobian\footnote{The coarse moduli space of line bundles of degree $d$. } such that, for every test curve $f\colon T \ra \Mbar{g}$ transverse to the boundary of $\Mbar{g}$, there is an isomorphism of algebraic spaces from $f^*\ca{P}_{d,\,g} $ to the Néron model of $f^*\ca J_{d,\,g}$.

Note that (unless $g=2$) the condition $\on{gcd}(d-g+1, 2g-2) = 1$ excludes the case $d=0$. It is therefore nonsensical in general to ask $\ca{P}_{d,\,g}$ to have a group structure, but it does make sense to ask whether it has a torsor structure. This turns out not to be the case, as can be verified by an explicit computation in genus 3; the key point is that, given two test curves through the same point in the boundary, the special fibres of their Néron models will be isomorphic as schemes but \emph{not} as group schemes/torsors. In Proposition~\ref{prop:cap_pullback} we will show that $\ca{P}_{g,\,d}$ does acquire a canonical torsor structure after pullback to the stack $\Mtil{g,\,n}^{\le\,1}$.

\subsubsection{Chiodo's results over the stack of twisted curves}\label{sec:chiodo}
As in the present paper, Chiodo~\cite{Chiodo2015Neron-models-of} replaces $\Mbar{g}$ by a different stack living over $\Mbar{g}$, in his case the stack $\Mbar{g}^l$ of $l$-twisted curves (in the sense of Abramovich and Vistoli). We will not give the definition of the stack of $l$-twisted curves here, but recall that it comes with a non-separated non-representable forgetful map to $\Mbar{g}$, which is an isomorphism over $\M{g}$. Chiodo constructs a \emph{group} scheme $\on{Pic}^{0,l}_{g}$ over $\Mbar{g}^l$, extending the pullback of the universal jacobian. This has the property that, if $f\colon T \ra \Mbar{g}$ is a test curve transverse to the boundary, then there is a lift of $f$ to $\Mbar{g}^l$ such that the pullback of $\on{Pic}^{0,\,l}_{g}$ is the Néron model of the jacobian.

Chiodo's approach is thus similar to ours; he replaces $\Mbar{g}$ by a larger stack, and then obtains a group scheme model with a property related to Néron models. The key differences are
\begin{enumerate}
\item Chiodo's $\Mbar{g}^l \to \Mbar{g}$ is not separated or representable, whereas our $\Mtil{g,\,n} \to \Mbar{g,\,n}$ has both properties;
\item Chiodo applies the Néron mapping property along test curves, whereas we extend the mapping property to larger bases.
\end{enumerate}



\subsection{Consequences, and relation to more recent work}

\subsubsection{The double ramification cycle}
In~\cite{Holmes2017Extending-the-d}, a slight variant of the construction of $\Mtil{g,\,n}$ is used to extend the double ramification cycle to the boundary of the moduli space of curves. This slight variation comes about because the double ramification cycle is concerned with extending one particular section of the universal jacobian, whereas a Néron model must extend all sections. In a forthcoming joint work of the author with Johannes Schmitt, we will use this to compute precisely the components and multiplicities of the double ramification cycle in the meromorphic case.

\subsubsection{Enriched structures}

In~\cite{Maino1998Moduli-space-of}, Main\'o defines an \emph{enriched structure} on a stable curve $C/k$ (with irreducible components $C_1,\,\dots,\,C_r$) to be a collection of line bundles $\ca L_1,\,\dots,\,\ca L_r$ on $C$ satisfying
\begin{enumerate}
\item for each $i$,
\begin{align*}
\cl{L}_i|_{C_i} &\cong \ca{O}_{C_i}\left(-C_i \cap C_i^c\right)
\\
\intertext{$\big(\text{here }C_i^c = \cup_{j \ne i} C_i\big)$ and}
\cl{L}_i|_{C^c_i} &\cong \ca{O}_{C^c_i}\left(C_i \cap C_i^c\right).
\end{align*}
\item $\bigotimes_i \cl{L}_i \cong \ca{O}_C$.
\end{enumerate}

In~\cite{Biesel2016Fine-compactifi} we construct a moduli stack of enriched structures over $\Mbar{g,\,n}$, resolve various conjectures of Main\'o, and construct an isomorphism between the stack of enriched structures and the open substack $\Mtil{g,\,n}^{\le\,1} \hra \Mtil{g,\,n}$. Combining with Proposition~\ref{prop:cap_pullback}, it follows that Caporaso's balanced Picard stack $\ca P_{d,\,g}$ acquires a torsor structure over the stack of enriched structures.

\subsection{A detailed description of the case \texorpdfstring{$g=1$}{g=1}, \texorpdfstring{$n=2$}{n=2}}\label{intro:12}

The definition of our space $\Mtil{g,\,n}$ is via a universal property concerning Néron models, which are themselves defined by another universal property. As such, the reader may suspect our construction to be somewhat abstract and hard to work with. To provide reassurance, we give here a very detailed description of the structure and properties of our stack in the case when $g=1$, $n=2$ (the first interesting case), working over a field $k$ for simplicity.

%\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
%\definecolor{qqqqff}{rgb}{0.0,0.0,1.0}

%\begin{wrapfigure}[17]{r}{0.5\textwidth}
\begin{figure}[!htbp]
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5cm,y=0.5cm]
\clip(-8,-2) rectangle (9.89,9);
\draw (-1.2575567486914516,-0.6094175315700505)-- (3.2947599414603594,-0.5937198878109063);
\draw (-2.6082830683267932,-1.8558013606222377)-- (-0.3470934106610911,1.1644162132132425);
\draw (-0.3470934106610911,1.1644162132132425)-- (4.676152592265047,1.1801138569723866);
\draw (4.676152592265047,1.1801138569723866)-- (2.7139471223720246,-1.8966243198198738);
\draw (2.7139471223720246,-1.8966243198198738)-- (-2.6082830683267932,-1.8558013606222377);
\draw (0.0767429708358017,-1.7710431697467202)-- (2.0703437282471135,0.8033704067529263);
\draw [shift={(3.8597867559711254,5.893383742884459)}] plot[domain=2.0557173218197633:4.240773412522362,variable=\t]({1.0*3.2846227238901546*cos(\t r)+-0.0*3.2846227238901546*sin(\t r)},{0.0*3.2846227238901546*cos(\t r)+1.0*3.2846227238901546*sin(\t r)});
\draw [shift={(-1.1084407902287268,5.674656743995157)}] plot[domain=-1.3335895279112524:1.4727510495010576,variable=\t]({1.0*2.9253667060483504*cos(\t r)+-0.0*2.9253667060483504*sin(\t r)},{0.0*2.9253667060483504*cos(\t r)+1.0*2.9253667060483504*sin(\t r)});
\draw [->] (0.9538423421561176,2.799959044307189) -- (0.9822755814323633,-0.6016939718110028);
\begin{scriptsize}
\draw (4.0785137548604276,6.330837740663063) node {fibre of $C_{1,\,2}$};
\draw (4.890928322163548,1.6125839074795498) node {$\on{Spec}k\llbracket u,v\rrbracket$};
\end{scriptsize}
\end{tikzpicture}
\end{center}
\caption{Curve over $\Mbar{1,\,2}$}\label{fig:2_gon}
\end{figure}


\subsubsection{Coordinates at the non-treelike point}\label{sec:non_treelike_coordinates}
The map $\beta\colon \Mtil{g,n} \to \Mbar{g,\,n}$ is an isomorphism not only over $\ca M_{g,\,n}$, but in fact over a larger locus, that of ``treelike curves''; curves for which the dual graph is a tree with some self-loops attached. The only non treelike point in $\Mbar{1,\,2}$ is the 2-pointed 2-gon (Figure~\ref{fig:2_gon}), and $\beta$ is an isomorphism away from that point. The completed local ring at that point is isomorphic to $k\llbracket u,v\rrbracket$, and we choose coordinates $u$ and $v$ so that local equations for the singularities are given by $xy = u$ and $x'y' = v$. Equivalently, we can write equations; the universal curve over $k\llbracket u,v\rrbracket$ is given by the projectivisation of
\[
y^2 = \left((x-1)^2 - u\right)\left((x+1)^2 - v\right).
\]



\subsubsection{The locus on which the curve is regular}

The restriction of $\beta^{\le\,1}\colon \Mtil{g,n}^{\le\,1} \ra \Mbar{g,\,n}$ to $k\llbracket u,v\rrbracket$ is very easy to describe. First blow up the closed point of $S \coloneqq \on{Spec} k\llbracket u,v\rrbracket$. Then delete the two points where the strict transforms of the coordinate axes meet the exceptional curve, and denote the resulting scheme by $\tilde{S}/S$ (cf. figure~2). This $\tilde S/S$ is exactly the restriction of $\beta^{\le\,1}$ to $S$. The fibre over the closed point is isomorphic to $\bb{G}_m$.

Write $N_{1,\,2}$ for the universal Néron model over $\Mtil{1,\,2}$, and $N_{1,\,2}^{\le\,1}$ for its restriction to $\Mtil{1,\,2}^{\le\,1}$, The group scheme $N_{1,\,2}^{\le\,1}$ over $\Mtil{1,\,2}^{\le\,1}$ is also easy to describe. We will abuse notation by writing $C_{1,\,2}$ for the pullback of $C_{1,\,2}$ to $S$, and similarly for $J_{1,\,2}$. Write $U$ for the complement of the coordinate axes in $S$ (equivalently, the locus where $C_{1,\,2}$ is smooth over $S$). Over $U$ we have an Abel--Jacobi isomorphism $\alpha\colon C_{1,\,2}|_U \to J_{1,\,2}$ via one of the marked sections $\sigma \in C_{1,\,2}(S)$. Write $C_{1,\,2}^{\on{sm}} \sub C_{1,\,2}$ for the locus where $C_{1,\,2} \ra S$ is smooth (note that $C_{1,\,2}^{\on{sm}}$ is larger than $C_{1,\,2}|_U$, as it includes smooth points in fibres which are not everywhere smooth). The pullback of $C_{1,\,2}^{\on{sm}}$ to $\Mtil{1,\,2}^{\le\,1}$ is again smooth, and is in fact isomorphic to $N_{1,\,2}^{\le \,1}$. More precisely, applying the Néron mapping property to $\alpha$ yields a map $C_{1,\,2}^{\on{sm}} \to N^{\le\,1}_{1,\,2}$, which is an isomorphism. This map depends on the choice of the section $\sigma$, but the remainder of this discussion does not depend on that choice.



\definecolor{ffqqqq}{rgb}{1.0,0.0,0.0}
\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\definecolor{qqqqff}{rgb}{0.0,0.0,1.0}
%\begin{wrapfigure}[17]{r}{0.5\textwidth}
\begin{figure}[!htbp]
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5cm,y=0.5cm]
\clip(-7.219293512707992,-3.65412224507374) rectangle (12.484251285056095,7.5);
\draw (-0.5,-0.1)-- (4.052316690151814,-0.0843023562408544);
\draw (-1.850726319635342,-1.346383829052186)-- (0.41046333803036056,1.6738337447832956);
\draw (0.41046333803036056,1.6738337447832956)-- (5.433709340956501,1.6895313885424388);
\draw (5.433709340956501,1.6895313885424388)-- (3.4715038710634754,-1.3872067882498222);
\draw (3.4715038710634754,-1.3872067882498222)-- (-1.850726319635342,-1.346383829052186);
\draw (0.8342997195272535,-1.2616256381766688)-- (2.8279004769385647,1.3127879383229795);
\draw[line width = 1.3pt] (3.5250519819297237,5.12414667861977)-- (1.2059221114802503,4.200118370862558);
\draw (-1.6007263196353416,3.593616170947813)-- (0.6604633380303611,6.613833744783292);
\draw (0.6604633380303611,6.613833744783292)-- (5.683709340956501,6.629531388542435);
\draw (5.683709340956501,6.629531388542435)-- (3.7215038710634762,3.552793211750177);
\draw (3.7215038710634762,3.552793211750177)-- (-1.6007263196353416,3.593616170947813);
\draw [->] (1.91,2.95) -- (2.0,1.915);
\draw [shift={(-0.6964891103728331,2.17087973421927)}] plot[domain=0.6342953849600048:1.371519404810235,variable=\t]({1.0*3.149076961094006*cos(\t r)+-0.0*3.149076961094006*sin(\t r)},{0.0*3.149076961094006*cos(\t r)+1.0*3.149076961094006*sin(\t r)});
\draw [shift={(4.883917140396212,6.392420826521825)}] plot[domain=3.119040086939489:4.00756136045104,variable=\t]({1.0*2.4103338249347677*cos(\t r)+-0.0*2.4103338249347677*sin(\t r)},{0.0*2.4103338249347677*cos(\t r)+1.0*2.4103338249347677*sin(\t r)});
\begin{scriptsize}
\draw[color=ffqqqq] (-0.4589393493372107,2.6306291128337578) node {delete};
\draw [fill=ffqqqq] (1.5783069721991914,4.348490463805261) circle (1.5pt);
\draw [fill=ffqqqq] (2.9843583942872822,4.908714077293484) circle (1.5pt);
\draw [fill=ffqqqq] (-0.6964891103728331,2.17087973421927) circle (1.5pt);
\draw (5.7238971216853125,2.256941194255474) node {$S$};
\draw (5.995670153378611,7.216799022658148) node {$\tilde{S}$};

\draw[line width = 1.3pt] (-1,-3) -- (1,-3);
\draw (4,-3) node {= exceptional locus};
\end{scriptsize}
\end{tikzpicture}
\end{center}
\caption{$\tilde S \to S$}
\end{figure}

The above discussion gives the structure of $N^{\le \,1}_{1,\,2}$ as a scheme, but it remains to describe the group structure. The most concrete description in this setting is to check with a computer algebra package that the group structure on $J_{1,\,2}$ extends to $C_{1,\,2}^{\on{sm}} \cong N^{\le\,1}_{1,\,2}$. In general, we construct Néron models as quotients of Picard spaces (moduli spaces of line bundles), and the group structure is given by tensor product of line bundles.



A typical test curve in $S$ transversal to the boundary might be defined by the equation $u = \lambda v$ for some $\lambda \in k^\times$. Writing $f\colon T \ra \on{Spec}k\llbracket v,u\rrbracket$ for the inclusion, we see explicitly that $f$ factors via $\beta^{\le\,1}$. The pullback of $N^{\le\,1}_{1,\,2}$ to $T$ is identified with the pullback of $C_{1,\,2}^{\on{sm}}$ to $T$. We therefore get a group structure on $f^*C_{1,\,2}^{\on{sm}}$. By restriction, we also get a group structure on the restriction of $f^*C_{1,\,2}^{\on{sm}}$ to the closed point of $T$, in other words on $C_{1,\,2}^{\on{sm}}|_{u=v=0}$. Note that the latter scheme is independent of the choice of parameter $\lambda \in k^\times$. The crucial point is that the induced group structure on $C_{1,\,2}^{\on{sm}}|_{u=v=0}$ \emph{does} depend non-trivially on $\lambda$. This dependence can be made completely explicit; the scheme $C_{1,\,2}^{\on{sm}}|_{u=v=0}$ is isomorphic to two copies of $\bb{G}_m$ with a marked point $1$ on one of them, and the choice of $\lambda\in k^\times$ corresponds to the choice of an element to act as a square root of $1$ on the other copy of $\bb{G}_m$. This means that it is \emph{not} possible to put a group structure on the whole of $C_{1,\,2}^{\on{sm}}$; if we want a group structure we must pull back to $\Mtil{1,\,2}^{\le\,1}$ first.



\subsubsection{Weakly-transversal test curves}

For a moment we return to the case of general $g$ and $n$, to discuss the pullback of the universal Néron model over test curves not transversal to the boundary. We have a smooth separated group algebraic space $N_{g,\,n}$ over $\Mtil{g,\,n}$ extending $\beta^*J_{g,\,n}$, the Néron model of $\beta^*J_{g,\,n}$.

A \emph{non-degenerate test curve} is a map from a trait to $\Mbar{g,\,n}$ sending the generic point to $\ca M_{g,\,n}$. Any non-degenerate test curve $f\colon T \ra \Mbar{g,\,n}$ will factor via $\beta$, but we can see already from the 1-dimensional case that we cannot hope that $f^*N_{g\,,n}$ will be the Néron model of $f^*J_{g,\,n}$ for all such $f$. However, we have something nearly as good. We say $f$ is \emph{weakly transversal to the boundary} if the greatest common divisor of the thickness in the singularities of $f^*C_{g,\,n}$ is 1. This certainly includes the case of test curves transverse to the boundary, since these correspond to all the thicknesses being 1. We then find that for all test curves $f$ which are weakly transversal to the boundary, we have that $f^*N_{g,\,n}$ is naturally isomorphic \emph{as a group algebraic space} to the Néron model of $f^*J_{g,\,n}$. We omit the proof of this result; it is a simple generalisation of Lemma~\ref{lem:pullback_1_str}.



\subsubsection{The case \texorpdfstring{$g=1$}{g=1}, \texorpdfstring{$n=2$}{n=2} again}
We continue in the notation of Section~\ref{sec:non_treelike_coordinates}. A typical weakly-transversal test curve might be defined by the equation $u^n = \lambda v^m$ for $\lambda \in k^\times $ and $m$, $n$ coprime positive integers. These $m$ and $n$ correspond exactly to the thickness of the two singularities in the curve $f^*C_{1,\,2}$. This means that the Néron model over $T$ must have component group cyclic of order $m+n$.

This tells us that $\Mtil{g,\,n}$ cannot be quasi-compact, since $N_{g,\,n}$ is a finite-type group space over it, but it has arbitrarily large cyclic groups appearing in the component group. In fact, $\Mtil{g,\,n}$ can be described by iterating the blowup construction from Section~\ref{intro:12}, see Section~\ref{sec:example} for more details.


\subsubsection{Toric description}
In terms of toric varieties, we can see $S$ as (the completion of) the toric variety with fan $\bb Q_{\ge \,0}^2$, and $\tilde S^{\le\,1}$ as having fan being the union of the rays in $\bb Q_{\ge\,0}^2$ through $(0,1)$, $(1,1)$ and $(1,0)$. The fan of $\tilde S$ consists of all rays in $\bb Q_{\ge\,0}^2$ having rational slope, as is easily deduced from Section~\ref{sec:example}. This is (imprecisely) illustrated in Figure~\ref{fig:fans}.

\begin{figure}[!htbp]
\centering
\subfloat{
\begin{tikzpicture}
\draw (0,0) -- (2,0);
\draw (0,0) -- (0,2);
\fill[color=lightgray] (0,0) rectangle (2,2);
\end{tikzpicture} }
\hfill
\subfloat{
\begin{tikzpicture}
\draw (0,0) -- (2,0);
\draw (0,0) -- (2,2);
\draw (0,0) -- (0,2);
\end{tikzpicture} }
\hfill
\subfloat{
\begin{tikzpicture}
\draw (0,0) -- (2,0);
\draw (0,0) -- (2,0.1);
\draw (0,0) -- (2,0.2);
\draw (0,0) -- (2,0.3);
\draw (0,0) -- (2,0.4);
\draw (0,0) -- (2,0.5);
\draw (0,0) -- (2,0.6);
\draw (0,0) -- (2,0.7);
\draw (0,0) -- (2,0.8);
\draw (0,0) -- (2,0.9);
\draw (0,0) -- (2,1);
\draw (0,0) -- (2,1.1);
\draw (0,0) -- (2,1.2);
\draw (0,0) -- (2,1.3);
\draw (0,0) -- (2,1.4);
\draw (0,0) -- (2,1.5);
\draw (0,0) -- (2,1.6);
\draw (0,0) -- (2,1.7);
\draw (0,0) -- (2,1.8);
\draw (0,0) -- (2,1.9);
\draw (0,0) -- (2,2);
\draw (0,0) -- (0.1,2);
\draw (0,0) -- (0.2,2);
\draw (0,0) -- (0.3,2);
\draw (0,0) -- (0.4,2);
\draw (0,0) -- (0.5,2);
\draw (0,0) -- (0.6,2);
\draw (0,0) -- (0.7,2);
\draw (0,0) -- (0.8,2);
\draw (0,0) -- (0.9,2);
\draw (0,0) -- (1,2);
\draw (0,0) -- (1.1,2);
\draw (0,0) -- (1.2,2);
\draw (0,0) -- (1.3,2);
\draw (0,0) -- (1.4,2);
\draw (0,0) -- (1.5,2);
\draw (0,0) -- (1.6,2);
\draw (0,0) -- (1.7,2);
\draw (0,0) -- (1.8,2);
\draw (0,0) -- (1.9,2);
\draw (0,0) -- (0,2);
\end{tikzpicture} }
\caption{Fans of $S$, $\tilde S^{\le\,1}$ and $\tilde S$ respectively. }\label{fig:fans}
\end{figure}



\subsection{Outline of the construction}

In~\cite{Holmes2014Neron-models-an} we defined the condition of \emph{alignment} on a family of prestable curves, and showed that this condition was closely related to the existence of a Néron model of the jacobian --- in particular, if the family is aligned and the total space is regular, then a Néron model exists. In Section~\ref{sec:definition_of_balance} we recall the definition, actually introducing a slight variant which will be more convenient for our construction (the difference is discussed in detail in Remark~\ref{remark:reg_irreg_aligned}).

Our ultimate goal is to construct a universal stack over which a Néron model exists. Given a suitable family of prestable curves (it does not need to be the universal family), in Sections~\ref{sec:univ_aligning_for_curves} to~\ref{sec:scheme_representing_relations} we define and construct a universal stack over which the universal curve becomes aligned. This is carried out locally on the base (we spend quite some time carefully determining how ``locally'' we need to work), then glueing affine patches.



To show that the universal aligning scheme in fact admits a Néron model, we have to show that the universal aligning scheme is regular, and moreover that the universal curve over it admits a regular model which is still aligned. In Section~\ref{sec:regularity_for_correlation} we show that, if the singularities of $C/S$ are ``mild enough'', then the universal aligning scheme is indeed regular (in particular, this holds in the universal case). We also show that the construction of the universal aligning morphism can be made slightly more explicit in this situation.

In Section~\ref{sec:resolving_sings_of_pullback} we will show that, again if $C/S$ has mild singularities, it is possible to resolve the singularities of the pulled-back curve over the universal aligning scheme. In Section~\ref{sec:NM_over_univ_aligning} we will apply this to show that the universal aligning morphism is in fact a universal Néron model admitting morphism.

Section~\ref{sec:example} contains a worked example, and in Section~\ref{sec:caporaso} we relate our results to some constructions of Caporaso from~\cite{Caporaso2008Neron-models-an}.


In this paper, ``algebraic stack'' means ``algebraic stack in the sense of~\cite[\href{http://stacks.math.columbia.edu/tag/026O}{Tag 026O}]{stacks-project}''.


\subsection{Acknowledgements}
The author would like to thank Omid Amini, Owen Biesel, José Burgos Gil, Alessandro Chiodo, Bashar Dudin, Bas Edixhoven, Eduardo Esteves, Robin de Jong, Margarida Melo, Morihiko Saito, Nicolo Sibilla, Arne Smeets, Mattia Talpo, and Filippo Viviani for helpful comments and discussions. The author is also very grateful to an anonymous referee for pointing out many small errors and inconsistencies, and also to the editors of the journal Annales Henri Lebesgue for their friendly and professional work.








\section{Definition and basic properties of aligned curves}\label{sec:definition_of_balance}


In this section we briefly recall the definitions from~\cite{Holmes2014Neron-models-an}. For us ``monoid'' means ``commutative monoid with zero'''. A graph has finitely many edges and vertices, and is allowed loops, and multiple edges between vertices.



\begin{defi}
A \emph{cycle} in a graph is a path which starts and ends at the same point, and otherwise does not repeat any edge or vertex.

Let $G$ be a finite graph with edge set $E$ and vertex set $V$. To any subset $E_0 \sub E$ we associate the unique subgraph of $G$ with edges $E_0$ and with no isolated vertices --- we will often fail to distinguish between $E_0$ and the subgraph. We say $E_0$ is \emph{cycle-connected} if for every pair $e$, $e'$ of distinct edges in $E_0$ there is at least one cycle $\gamma \sub E_0$ such that $e \in\gamma$ and $e' \in \gamma$.
\end{defi}

\begin{lemm}\label{lem:partition}
The maximal cycle-connected subsets of $E$ form a partition of $E$.
\end{lemm}

We write $\on{Part}(G)$ for this partition. Before giving the proof we discuss a few examples.
\begin{enumerate}
\item\label{lemm2.2.1} If $G$ is a tree, then the elements of $\on{Part}(G)$ consist of single edges (since there are no cycles).
\item\label{lemm2.2.2} If $G$ itself is a cycle then $\on{Part}(G)$ has cardinality 1 (all the edges are in the same part).
\end{enumerate}

\begin{proof}
It suffices to show that if two subsets $\bb{E}$ and $\bb{E}'$ of $E$ are both cycle-connected and both contain an edge $e$, then the union $\bb{E} \cup \bb{E}'$ is also cycle-connected. If $a$ and $b$ are distinct edges in $\bb{E} \cup \bb{E}'$, then let $\gamma_a$ denote a cycle in $\bb{E} \cup \bb{E}'$ containing both $a$ and $e$, and let $\gamma_b$ be a cycle in $\bb{E} \cup \bb{E}'$ containing both $b$ and $e$.

We will construct a cycle in $\bb{E} \cup \bb{E}'$ containing both $a$ and $b$ by ``splicing'' $b$ into $\gamma_a$. Let $p_0$ and $p_1$ be the ends of $b$ (necessarily distinct unless $a = b= e$). Let $\gamma_0$ be the shortest sub-path of $\gamma_b$ which starts at $p_0$, does not contain $b$, and which meets $\gamma_a$ (say at a point $q_0$). We define $\gamma_1$ and $q_1$ similarly: $\gamma_1$ is the shortest sub-path of $\gamma_b$ which starts at $p_1$, does not contain $b$, and which meets $\gamma_a$, say at $q_1$. Let $\gamma'$ denote the sub-path of $\gamma_a$ which goes between $q_0$ and $q_1$ and which contains $a$. Then the union of $\gamma'$, $\gamma_0$, $\gamma_1$ and $b$ is a cycle containing $a$ and $b$.
\end{proof}

We can also describe this partition in terms of 2-vertex-connected\footnote{i.e. connected and remains connected after removing any one vertex. } subgraphs. For each loop $l$, $\{l\}\in\on{Part}(G)$. For each maximal 2-vertex-connected subgraph $H$ of the graph obtained from $G$ by deleting loops, $\on{Part}(G) \ni \on{edges}(H)$ (cf.~\cite[remark after Lemma~5.11]{Holmes2014Neron-models-an}).



\begin{defi}
Let $L$ be a monoid, $G$ a graph, and $\ell$ a function assigning to each edge of $G$ an element of $L$ (we call $(G, \ell)$ a graph labelled by $L$). We say $P\in \on{Part}(G)$ is \emph{aligned} (with respect to $\ell$) if there exist $l \in L$ and positive integers $n(e)$ for each edge $e\in P$, such that for all $e\in P$ the relation
\[
\ell(e) = l^{n(e)}
\]
holds in $L$. We say $G$ is \emph{aligned} (with respect to $\ell$) if every $P \in \on{Part}(G)$ is aligned.
\end{defi}

For example, if $G$ is a tree (or if $L$ is free on one generator) then $(G, \ell)$ is automatically aligned. On the other hand, if $L = \bb N^2$ and $G$ is a 2-gon with edges labelled by $(0,1)$ and $(1,0)$ then $(G, \ell)$ is not aligned.


Now we turn to prestable curves, by which we mean proper, flat, finitely presented curves whose geometric fibres are connected and have at worst ordinary double point singularities. These were called ``semistable curves'' in~\cite{Holmes2014Neron-models-an}. We recall from~\cite[Propositions~2.5 and~2.10]{Holmes2014Neron-models-an} a result on the local structure of such curves:

\begin{prop}\label{local_rings_on_nodal}
Let $S$ be a locally noetherian scheme, $C/S$ a prestable curve, $s$ a geometric point of $S$, and $c$ a geometric point of $C$ lying over $s$. Then there exists an element $\alpha$ in the maximal ideal of the étale local ring $ \ca{O}\et_{S,\,s}$ and an isomorphism of complete local rings
\[
\frac{ \widehat{{\ca{O}}\et_{S,\,s}}\llbracket x,y\rrbracket}{\left(xy-\alpha\right)} \ra \widehat{\ca{O}\et_{C,\,c}}.
\]
The element $\alpha$ is not in general unique, but, the ideal $\alpha \ca{O}\et_{S,\,s} \triangleleft \ca{O}\et_{S,\,s}$ is unique. We call it the \emph{singular ideal of $c$}. If $C/S$ is smooth over a schematically-dense open of $S$ then the singular ideal is never a zero-divisor.
\end{prop}


\begin{defi}\label{def:balance}
Let $S$ be a locally noetherian scheme and $C/S$ a prestable curve. Let $s \in S$ be a geometric point, and write $\Gamma$ for the dual graph\footnote{ Defined as in for example~\cite[10.3.17]{Liu2002Algebraic-geome}. } of the fibre $C_s$. Let $\on{Prin}(\ca{O}\et_{S,\,s})$ be the monoid of principal ideals of $\ca{O}\et_{S,\,s}$. We label $\Gamma$ by elements of $\on{Prin}(\ca{O}\et_{S,\,s})$ by assigning to an edge $e \in \Gamma$ the singular ideal in $\on{Prin}(\ca{O}\et_{S,\,s})$ of the singular point of $C_s$ associated to $e$. We denote this element by $\ell(e) \in \on{Prin}(\ca{O}\et_{S,\,s})$.

We say \emph{$C/S$ is aligned at $s$} if and only if this labelled graph is aligned. We say \emph{$C/S$ is aligned} if it is aligned at $s$ for every geometric point $s \in S$.
\end{defi}

For example, a generically-smooth curve over a Dedekind base is always aligned (since the monoids of principal ideals are free on one generator), and curves of compact type are always aligned since the graphs contain no cycles. More detailed examples of aligned and non-aligned curves can be found in~\cite[\S~2.3]{Holmes2014Neron-models-an}.


\begin{rema}\label{remark:reg_irreg_aligned}
In~\cite{Holmes2014Neron-models-an} we used a slightly different definition of alignment, namely we said a 2-vertex-connected graph $(H, \ell)$ was aligned if for all pairs of edges $e$, $e'$ there existed positive integers $n$, $n'$ such that $\ell(e)^{n} = \ell(e')^{n'}$. We said a graph $G$ was aligned if every 2-vertex-connected subgraph was. When we want to distinguish between these notions we will call the version from~\cite{Holmes2014Neron-models-an} ``irregularly aligned'' and the new version in this paper ``regularly aligned''.

There are two differences between these definitions. One is superficial, the use of 2-vertex-connected subgraphs instead of the partition from Lemma~\ref{lem:partition}. This makes no actual difference to the definition since the partition in Lemma~\ref{lem:partition} breaks the graph into maximal 2-vertex-connected subgraphs and loops, and the alignment condition is vacuous for loops. The other difference is more substantial, where we switch from imposing relations between labels to imposing that the labels admit a common multiplicative generator. If $C/S$ is regularly aligned then it is irregularly aligned, and if $S$ has factorial étale local rings (for example if $S$ is regular) then the converse holds. We are mainly interested in the case where $S$ is regular, so this is not of great importance. In this paper, we will construct a universal regularly-aligning morphism, and a Néron model over it. A universal irregularly-aligning morphism also exists, but the universal object is not in general regular, and so we cannot construct a Néron model over it (probably one does not exist).
\end{rema}



\begin{rema}\label{remark:fppf_descent}
The notion of alignment is fppf-local on the target, i.e. it is preserved under flat base-change and satisfies fppf descent. We sketch a proof of this fact: let $R \ra R'$ be a faithfully flat ring map, and let $r_1$, $r_2 \in R$ and $a$, $u_1$, $u_2 \in R'$ with $u_i$ units and $r_i = u_ia^{n_i}$ for some $n_i \in \bb{Z}_{>0}$. Suppose the map
\[
R \ra R\left[t, u_1^{\pm1}, u_2^{\pm 1}\right]/\left(r_1 - u_1t^{n_1}, r_2 - u_2t^{n_2}\right)
\]
becomes an isomorphism after base-change to $R'$, then by faithful flatness it was an isomorphism.
\end{rema}



\begin{defi}\label{def:aligned_over_stack}
Let $S$ be a locally noetherian algebraic stack, and $C/S$ a prestable curve. Let $S' \ra S$ be a smooth cover by a scheme. We say that $C/S$ is aligned if and only if $C\times_S S' \ra S'$ is aligned. This makes sense by Remark~\ref{remark:fppf_descent}.
\end{defi}

\begin{rema}\label{rem:Pic_reminders}
We will make frequent use of the Picard spaces of our semistable curves. Let $C/S$ be a prestable curve, then we write $\on{Pic}_{C/S}$ for the sheafified relative Picard functor of $C/S$ as in for example~\cite[Chapter~8]{Bosch1990Neron-models}; it is relatively representable by an algebraic space. We write $\on{Pic}^0_{C/S}$ for the fibrewise connected component of identity (an open subgroup space), which coincides with the subspace of line bundles having degree~0 on every component of every geometric fibre. We write $\on{Pic}^{[0]}_{C/S}$ for the open subgroup space of $\on{Pic}_{C/S}$ corresponding to line bundles which have total degree~0 on every fibre. If $C/S$ has connected geometric fibres then $\on{Pic}^0_{C/S} \hra \on{Pic}^{[0]}_{C/S}$ is an isomorphism.
\end{rema}

\section{Universal aligning morphisms}\label{sec:univ_aligning_for_curves}


\begin{defi}\label{def:univ_reg_aligning_for_curves}
Let $S$ be a locally noetherian and reduced algebraic stack, and $C/S$ a prestable curve. Let $U \hra S$ be the largest open over which $C$ is smooth.
\begin{enumerate}
\item We say $C/S$ is \emph{generically smooth} if $U$ is dense in $S$.

\item Let $f \colon T \ra S$ be a morphism of algebraic stacks. We say that $f$ is \emph{non-degenerate} if $T$ is reduced and $U \times_S T$ is dense in $T$.

\item Let $f\colon T \ra S$ be a non-degenerate morphism of locally-noetherian stacks. We say $f$ is \emph{aligning} if the prestable curve $C \times_S T \ra T$ is aligned in the sense of Definition~\ref{def:aligned_over_stack}.

\item The category of aligning morphisms is defined as the full sub-2-category of stacks over $S$ whose objects are aligning morphisms.

\item A \emph{universal aligning morphism} is a terminal object in the 2-category of aligning morphisms over $S$.
\end{enumerate}
\end{defi}

\begin{rema}
\leavevmode
\begin{enumerate}
\item From now until the end of Section~\ref{sec:scheme_representing_relations} we will be working to construct the universal aligning morphism. After that, we will show that it is actually the universal Néron model admitting morphism.
\item We will show that the universal aligning morphism is in fact a separated algebraic space locally of finite type over $S$.
\end{enumerate}
\end{rema}



\section{Quasisplit curves}
In order to construct the universal aligning morphism by descent, we will make use of the notion of a ``quasisplit'' prestable curve. This differs from (though is somewhat similar to) the notion of a split prestable curve in~\cite{Jong1996Smoothness-semi}; neither is stronger than the other.


\begin{defi}\label{definition:quasisplit}
Let $S$ be a scheme, and let $C/S$ be a prestable curve. We write $\on{Sing}(C/S)$ for the closed subscheme of $C$ where $C \ra S$ is not smooth (more precisely, it is the closed subscheme cut out by the first fitting ideal of the sheaf of relative 1-forms of $C/S$). We say $C/S$ is \emph{quasisplit} if the following two conditions hold:
\begin{enumerate}\quatrunenumii
%[label={(\ref{definition:quasisplit}.\arabic*})]
\item \label{item:source-locally-closed-imm}
the morphism $\on{Sing}(C/S) \ra S$ is an immersion Zariski-locally on the source (for example, a disjoint union of closed immersions);
\item \label{item:split_fibres}
for every field-valued fibre $C_k$ of $C/S$, every irreducible component of $C_k$ is geometrically irreducible.
\end{enumerate}
\end{defi}

\begin{rema}\label{remark:no_geom_points_for_quasisplit}
Given a quasisplit prestable curve $C/S$ and a geometric point $\bar{s}$ of $S$ with image $s \in S$, the graph $\Gamma_{\bar{s}}$ depends only on $s$ and not on $\bar{s}$. As such, it makes sense to talk about the dual graph of $C_s$ for $s \in S$ a point. Moreover, the labels on such a graph, which a-priori live in the étale local ring at $\bar{s}$, are easily seen to live in the henselisation of the Zariski local ring, by condition~\ref{item:split_fibres}. Applying condition~\ref{item:source-locally-closed-imm}, we see that the labels in fact live in the Zariski local ring at $s$. For the remainder of this paper, we will use this without further comment.
\end{rema}


\begin{lemm}\label{lem:quasisplit_after_etale_cover}
Let $S$ be a locally noetherian scheme and $C/S$ a prestable curve. Then there exists an étale cover $f\colon S' \ra S$ such that $f^*C \ra S'$ is quasisplit.
\end{lemm}


\begin{proof}
By~\cite[\href{http://stacks.math.columbia.edu/tag/04GL}{Tag 04GL}]{stacks-project} and standard reductions, we deduce the existence of an étale cover over which the non-smooth locus is a disjoint union of closed immersions. Since the smooth locus admits sections étale locally, we can arrange a section through every irreducible component of every fibre; these irreducible components are then automatically geometrically irreducible.
\end{proof}


\section{Specialisation maps between labelled graphs for quasisplit curves}\label{sec:specialisation_maps}



\begin{defi}
A morphism of graphs sends vertices to vertices, and sends edges to either edges or vertices (thinking of the latter as ``contracting an edge''), such that the obvious compatibility conditions hold.

A morphism of edge-labelled graphs
\[
\phi\colon \left(\Gamma, \ell\colon \on{edges}(\Gamma) \ra L\right) \ra \left(\Gamma', \ell'\colon \on{edges}(\Gamma') \ra L'\right)
\]
is a pair consisting of a morphism of graphs $\Gamma \ra \Gamma'$ and a morphism of monoids from $L$ to $L'$ such that the labellings on non-contracted edges match up. An isomorphism is a morphism with a two-sided inverse.
\end{defi}

Let $S$ be a locally noetherian scheme, and let $C/S$ be a quasisplit prestable curve. Let $s$, $\zeta \in S$ be two points such that $\zeta$ specialises to $s$ (i.e. $s \in \overline{\{\zeta\}}$). Write $\Gamma_s$ and $\Gamma_\zeta$ for the corresponding labelled graphs --- recall from Remark~\ref{remark:no_geom_points_for_quasisplit} that this makes sense without choosing separable closures of the residue fields, and moreover that the labels of $\Gamma_s$ and $\Gamma_\zeta$ may be taken to lie in the Zariski local rings at $s$ and $\zeta$ respectively. Write
\begin{equation}\label{eq:special}
\on{sp}\colon \ca{O}_{S,\,s} \hra \ca{O}_{S,\,\zeta}
\end{equation}
for the canonical (injective) map, which induces a map from principal ideals of $\ca{O}_{S,\,s}$ to principal ideals of $\ca{O}_{S,\,\zeta}$.

We will define a map of labelled graphs
\[
\phi\colon \Gamma_s \ra \Gamma_\zeta,
\]
writing $\phi_V$ for the map on vertices and $\phi_E$ for the map on edges (the map on monoids is that induced by~\eqref{eq:special}). First we define the map on vertices. Let $v \in V_\zeta$ be a vertex of $\Gamma_\zeta$. Then $v$ corresponds to an irreducible component $v$ of the fibre over $\zeta$. Let $\cl{V}$ denote the Zariski closure of this component in $C$. Then $\cl{V} \times_S s$ is a union of irreducible components of $C_s$, call them $v_1,\,\cdots,\,v_n$. We define $\phi_V(v_i) = v$ for $1 \le i \le n$. To obtain a well-defined map $\phi_V\colon V_s \ra V_\zeta$ we need to check that each irreducible component of $C_s$ arises in this way from exactly one vertex of $\Gamma_\zeta$. That every irreducible component of $C_s$ arises from at least one component of $C_\zeta$ follows from the flatness of $C/S$. For the uniqueness, note that if the closures of two irreducible components of $C_\zeta$ both contain some irreducible component $v$ of $C_s$ then this would contradict the smoothness of $C \to S$ at the generic point of $v$.


Next we define the map on edges. Write $Z = \overline{\{\zeta\}} \sub S$ for the closure of $\zeta$. Let $e\in E_s$ be an edge of $\Gamma_s$. Then there are exactly two possibilities\footnote{To see this, note first that a section in $C_{Z_0}(Z_0)$ as in~\ref{case1} is unique if it exists. Suppose we have $\phi_V(v_1) \neq \phi_V(v_2)$. Then $v_1$ is contained in some irreducible component $T_1$ of $C_Z$, and $v_2$ is in a component $T_2$, with $T_1 \neq T_2$. In this situation observe that $e \in T_1 \cap T_2$, and (by considering the local structure of the singularities of a quasisplit prestable curve) we find that $T_1 \cap T_2$ is locally on $Z$ a union of sections, so~\ref{case1} must hold. }:
%%Faire une liste spéciale Case 1 Case 2
\begin{enumerate}\casenumii
\item \label{case1}there exists an open neighbourhood $s \in Z^0 \sub Z$ and a unique section $\tilde{e}\colon Z^0 \ra \on{Sing}(C_{Z^0}/Z^0)$ such that $(\tilde{e})_s = e$. Then define $\phi_E(e) = (\tilde{e})_\zeta$;
\item \label{case2}\ref{case1} does not hold \emph{and} (writing $v_1$, $v_2$ for the endpoints of $e$) we have that $\phi_V(v_1) = \phi_V(v_2)$. Then map $e$ to $\phi_V(v_1)$.
\end{enumerate}
Locally around $e$, the curve $C_Z$ is the spectrum of $\ca O_{Z}[x,y]/(xy - l'(e))$ where $l'(e)\in \ca O_Z$ is a representative of $l(e)$. From this local structure we see that case 2 holds if and only if the label $l(e)$ becomes a unit at $\zeta$; in other words, if and only if $l'(e)$ is non-zero in $\ca O_Z$.


\begin{defi}\label{def:contraction_map}
We call the map $\Gamma_s \to \Gamma_\zeta$ constructed just above the \emph{specialisation map}.
\end{defi}


A more intuitive description of the specialisation morphism $\phi \colon \Gamma_s \ra \Gamma_\zeta$ on labelled graphs may be given as follows: starting with $\Gamma_s$, first replace each label by its image under $\on{sp}$. Then contract every edge whose label is a unit. This is exactly the labelled graph $\Gamma_\zeta$. Given that such a simple description is available, why did we give the long-winded definition above? Essentially this is because it is otherwise not a-priori clear that the labelled graph resulting from this simple description is (naturally) isomorphic to the labelled graph $\Gamma_\zeta$.



\section{Controlled curves}\label{sec:controlled_curves}

\begin{defi}
Let $C/S$ be a prestable curve. A point $\frks \in S$ is called a \emph{controlling point} for $C/S$ if all of the following conditions hold:
\begin{enumerate}
\item \label{defi6.1.1}$S$ is affine and noetherian, and $C/S$ is quasisplit;
\item\label{defi6.1.2} for each edge $e$ of $\Gamma_\frks$, the intersection of $\ell(e)$ with $\ca{O}_S(S)$ inside the local ring $\ca{O}_{S,\frks}$ is a principal ideal;
\item \label{defi6.1.3}for every point $s$ in $S$, there exists a point $\eta_s \in S$ such that
\begin{enumerate}
\item\label{defi6.1.3.a} both $s$ and $\frks$ are in the closure of $\eta_s$;
\item\label{defi6.1.3.b} the specialisation map $\Gamma_s \ra \Gamma_{\eta_s}$ is an isomorphism on the underlying graphs.
\end{enumerate}
\end{enumerate}
\end{defi}

The intuition behind this definition is that for every point $s \in S$, the labelled graph $\Gamma_s$ should be obtained from the labelled graph $\Gamma_\frks$ by a suitable specialisation map. However, this cannot be exactly true, as in general $\frks$ will not lie in the closure of $s$. The specialisation is then mediated by the point $\eta_s$, which we can think of as the generic point of the stratum containing $s$, where $S$ is stratified by the labels of edges.

By~\eqref{defi6.1.2}, we can think of the labels of $\Gamma_\frks$ as being principal ideals in $\ca{O}_S(S)$. We will generally reserve lowercase fraktur letters $\frks$ and $\frkt$ for controlling points.

\begin{defi}
Let $C/S$ be a prestable curve over a locally noetherian scheme. Let $\tau$ be in $\{$smooth, étale$\}$. A \emph{controlled $\tau$-cover} of $C/S$ consists of a collection $(S_i, \frks_i)_{i\,\in\,I}$ of pointed schemes and a map $\bigsqcup_{i\,\in\,I} S_i \ra S$ such that
\begin{enumerate}
\item $\bigsqcup_{i\,\in\,I} S_i \ra S$ is a cover in the $\tau$-topology;
\item for each $i$, the point $\frks_i$ is a controlling point for $C \times_S S_i$.
\end{enumerate}
\end{defi}

\begin{lemm}\label{lem:controlled_after_shrink}
Let $C/S$ be a quasisplit curve over a locally noetherian scheme, and $\frks \in S$ a point. Then there exists an open neighbourhood $V$ of $\frks$ in $S$ such that $\frks$ is a controlling point for $C_V/V$.
\end{lemm}

\begin{proof}
Shrinking $S$, we may assume that $S$ is affine and that every label on the graph $\Gamma_\frks$ is generated by an element of $\ca{O}_{S}(S)$ (i.e. these locally-principal ideals are principal). Then delete from $S$ every irreducible component that does not contain $\frks$.


Let $\Sigma$ denote the smallest collection of (reduced) closed subsets of $S$ which is closed under:
\begin{itemize}
\item pairwise intersections;
\item taking irreducible components;
\end{itemize}
and which contains the image in $S$ of $\on{Sing}(C/S)$. Note that $\Sigma$ is finite; each time we form intersections or take irreducible components we add in only finitely many new closed subsets. Since every infinite tree has an infinite branch, if $\Sigma$ were infinite then we would find an infinite strictly decreasing chain of closed subsets, contradicting the fact that $S$ is noetherian.

Now set
\[
Z \coloneqq \bigcup\left\{\sigma \in \Sigma \,\middle|\, \frks \notin \sigma\right\},
\]
the union of all elements of $\Sigma$ which don't contain $\frks$. Note this is a closed subset since $\Sigma$ is finite. Let $V$ denote the complement of $Z$ in $S$.



Now let $s \in V$ be any point. Suppose first that $\Gamma_s$ consists of a single vertex and no edges - this is equivalent to saying that $s$ is not contained in any element of $\Sigma$, or to saying that $C_s/s$ is smooth. Now the locus where $C_V/V$ is smooth is open in $V$ and is non-empty (since it contains $s$). Observe that every irreducible component of $V$ contains $\frks$ by construction. Let $\eta_s$ be the generic point of an irreducible component of $V$ containing both $s$ and $\frks$; then $C_{\eta_s}/\eta_s$ is smooth and both $\frks$ and $s$ are specialisations of $\eta_s$.

Suppose now that $C_s/s$ is not smooth. Let $\sigma \in \Sigma$ be the smallest element of $\Sigma$ which contains $s$. It is clear that $\sigma$ must be irreducible, and that $\sigma$ contains $\frks$. Let $\eta_s$ be the generic point of $\sigma$. Then both $\frks$ and $s$ are contained in the closure of $\eta_s$. It remains to see that the specialisation map
\[
\on{sp}\colon \Gamma_s \ra \Gamma_{\eta_s}
\]
is an isomorphism on the underlying graphs. This is equivalent to checking that no label of $\Gamma_s$ is mapped to a unit in $\ca{O}_{S,\,\eta_s}$. Well, any label $l$ on an edge of $\Gamma_s$ which becomes a unit at $\eta_s$ will cut out a proper closed subscheme of $\sigma$ containing $s$, but this is impossible by the definition of $\sigma$.
\end{proof}

Combining Lemmas~\ref{lem:quasisplit_after_etale_cover} and~\ref{lem:controlled_after_shrink} yields

\begin{lemm}\label{lem:controlled_cover_exists}
Let $C/S$ be a prestable curve over a locally noetherian base. Then there exists an étale controlling cover for $C/S$.
\end{lemm}



%\newcommand{\cseq}{\mathfrak{K}}

\section{Construction of universal aligning morphisms}\label{sec:scheme_representing_relations}


\subsection{The case of controlled curves}
Throughout this section we fix a prestable curve $C/S$ and a controlling point $\frks \in S$. The universal aligning morphism over $S$ will be built by glueing together (infinitely many) affine patches. These affine patches will be indexed by \emph{thickness functions}:

\begin{defi}\label{def:thickness_function}
Let $E$ denote the set of edges of the graph $\Gamma_{\frks}$. A \emph{thickness function} is a function
\[
M \colon E \ra \bb{Z}_{\ge\,0}
\]
satisfying the following condition:

\emph{Let $\Gamma_M$ be the graph obtained from $\Gamma_\frks$ by contracting every edge $e$ such that $M(e) = 0$. We then require that for each set $\bb{E} \in \on{Part}(\Gamma_M)$, we have $\gcd(M(\bb{E})) = 1$. }
\end{defi}


This definition makes sense for any graph, but we will only apply it to the graph over a controlling point. We now give three examples of controlled curves and the possible thickness functions.

\begin{exam}
Let $S = \on{Spec}\bb{C}\llbracket u,v\rrbracket$, and let $\frks$ be the closed point. Assume $\frks$ is a controlling point, and suppose the graph over $\frks$ is

\definecolor{cqcqcq}{rgb}{0.7529411764705882,0.7529411764705882,0.7529411764705882}
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5991249375662954cm,y=0.4636246466940381cm]
\clip(-9.05517135775812,-2.420524881055739) rectangle (10.974039992958119,2);
\draw [shift={(0.0,6.0)}] plot[domain=4.124386376837122:5.3003915839322575,variable=\t]({1.0*7.211102550927979*cos(\t r)+-0.0*7.211102550927979*sin(\t r)},{0.0*7.211102550927979*cos(\t r)+1.0*7.211102550927979*sin(\t r)});
\draw [shift={(0.0,-6.0)}] plot[domain=0.982793723247329:2.1587989303424644,variable=\t]({1.0*7.211102550927979*cos(\t r)+-0.0*7.211102550927979*sin(\t r)},{0.0*7.211102550927979*cos(\t r)+1.0*7.211102550927979*sin(\t r)});
\begin{scriptsize}
\draw[color=black] (0,-1.5) node {$e_2$};
\draw[color=black] (0,1.69) node {$e_1$};
\end{scriptsize}
\end{tikzpicture}
\end{center}

\noindent with $\ell(e_1) = (u)$, $\ell(e_2) = (v)$. Then thickness functions are exactly those functions which send the two edges to non-negative coprime integers, e.g.
\begin{align*}
M(e_1) &= 2,\qquad M(e_2) = 3
\\
\intertext{or}
M(e_1) &= 0,\qquad M(e_2) = 1.
\end{align*}
\end{exam}

\begin{exam}
Let $S = \on{Spec}\bb{C}\llbracket u,v,w\rrbracket$, and let $\frks$ be the closed point. Assume $\frks$ is a controlling point, and suppose the graph over $\frks$ is

\definecolor{uuuuuu}{rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666}
\begin{center}
\begin{tikzpicture}
[line cap=round,line join=round,>=triangle 45,x=0.5cm,y=0.5cm]
\clip(-9.05517135775812,-5.6) rectangle (10.974039992958119,4);
\draw [shift={(-4.0,-4.0)}] plot[domain=0.0:1.0471975511965976,variable=\t]({1.0*8.0*cos(\t r)+-0.0*8.0*sin(\t r)},{0.0*8.0*cos(\t r)+1.0*8.0*sin(\t r)});
\draw [shift={(4.0,-4.0)}] plot[domain=2.0943951023931953:3.141592653589793,variable=\t]({1.0*8.000000000000002*cos(\t r)+-0.0*8.000000000000002*sin(\t r)},{0.0*8.000000000000002*cos(\t r)+1.0*8.000000000000002*sin(\t r)});
\draw [shift={(0,2.92820323027551)}] plot[domain=4.1887902047863905:5.235987755982988,variable=\t]({1.0*8.000000000000002*cos(\t r)+-0.0*8.000000000000002*sin(\t r)},{0.0*8.000000000000002*cos(\t r)+1.0*8.000000000000002*sin(\t r)});
\begin{scriptsize}
\draw[color=black] (3.220796889455059,0.502745483489056) node {$e_2$};
\draw[color=black] (-3,0.502745483489056) node {$e_1$};
\draw[color=black] (0.29632799953723776,-4.564066895554612) node {$e_3$};
\end{scriptsize}
\end{tikzpicture}
\end{center}

\noindent with $\ell(e_1) = (u)$, $\ell(e_2) = (v)$ and $\ell(e_3) = (w)$. Then again the thickness functions are exactly those functions which send the three edges to non-negative integers with no common factor, e.g.

\begin{align*}
M(e_1) &= 2,\qquad M(e_2) = 3, \qquad M(e_3) = 5
\\
\intertext{or}
M(e_1) &= 0,\qquad M(e_2) = 2, \qquad M(e_3) = 3
\\
\intertext{or}
M(e_1) &= 0,\qquad M(e_2) = 0, \qquad M(e_3) = 1.
\end{align*}
\end{exam}


\begin{exam}
Let $S = \on{Spec}\bb{C}\llbracket u,v,w\rrbracket$, and let $\frks$ be the closed point. Assume $\frks$ is a controlling point, and suppose the graph over $\frks$ is

\definecolor{cqcqcq}{rgb}{0.7529411764705882,0.7529411764705882,0.7529411764705882}
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=0.5991249375662954cm,y=0.4636246466940381cm]
\clip(-9.05517135775812,-2.420524881055739) rectangle (10.974039992958119,2);
\draw [shift={(0.0,6.0)}] plot[domain=4.124386376837122:5.3003915839322575,variable=\t]({1.0*7.211102550927979*cos(\t r)+-0.0*7.211102550927979*sin(\t r)},{0.0*7.211102550927979*cos(\t r)+1.0*7.211102550927979*sin(\t r)});
\draw [shift={(0.0,-6.0)}] plot[domain=0.982793723247329:2.1587989303424644,variable=\t]({1.0*7.211102550927979*cos(\t r)+-0.0*7.211102550927979*sin(\t r)},{0.0*7.211102550927979*cos(\t r)+1.0*7.211102550927979*sin(\t r)});
\draw (-4.0,0.0)-- (4.0,0.0);
\begin{scriptsize}
\draw[color=black] (0,-1.5) node {$e_3$};
\draw[color=black] (0,1.69) node {$e_1$};
\draw[color=black] (0,-0.3) node {$e_2$};
\end{scriptsize}
\end{tikzpicture}
\end{center}

\noindent with $\ell(e_1) = (u)$, $\ell(e_2) = (v)$ and $\ell(e_3) = (w)$. Then every function $M$ which sends the three edges to \emph{positive} integers with no common factor is a thickness function, but if $M$ sends one of the $e_i$ to $0$ then the other two $e_j$ become loops in the graph $\Gamma_M$ obtained by contracting $e_i$, and so must be sent to $0$ or $1$. Thickness functions are exactly those sending the $e_i$ to positive coprime integers, and those sending $(e_1, e_2, e_3)$ to some permutation of $(0,1,1)$, $(0,0,1)$ or $(0,0,0)$.
\end{exam}

Now that we have thickness functions to index the affine patches of our universal aligning morphism, we will start to explicitly construct the affine patches themselves. We first set up some notation which we will use repeatedly for the remainder of this paper.

\begin{enonce}{Setup}\label{def:standard-notation}
\leavevmode
\begin{enumerate}
\item $C/S$ is a prestable curve with controlling point $\frks$;
\item We write $R = \ca{O}_S(S)$;
\item $U\hra S$ is the largest open in $S$ over which $C$ is smooth, and we assume $U$ is dense in $S$;
\item $M$ is a thickness function, and $\Gamma_M$ is the graph obtained from $\Gamma_\frks$ by contracting every edge $e$ such that $M(e) = 0$;
\end{enumerate}
\end{enonce}

The next definition is crucial, as it gives us the building blocks for the affine patches of our universal aligning morphism.

\begin{defi}\label{def:rings_of_relations}
Notation as in Setup~\ref{def:standard-notation}, and let $\bb{E} \in \on{Part}(\Gamma_M)$. Write $M(e) = m_e$, and write $\ell(e) \in R$ for some generator of the label of an edge $e$. Let $n_\star\colon \bb{E} \ra \bb{Z}$ be a function such that $\sum_{e\,\in\,\bb{E}} n_em_e = 1$ --- this is possible by the coprimality condition. Define
\[
R'_\bb{E} = \frac{R\left[a, u_e^{\pm1}:e \in \bb{E}\right]}{\left(\ell(e) - a^{m_e}u_e : e \in \bb{E}, \:\: 1-\prod_{e\,\in\,\bb{E}} u_e^{n_e}\right)}.
\]
This depends on the $n_e$ (so the notation is not good). However, this dependence will turn out not to matter (see Proposition~\ref{prop:universal_M_aligning}). To simplify the notation, we will assume that a choice of $n_e$ has been made once-and-for-all for every collection of $m_e$.
\end{defi}

\begin{rema}
For example, suppose we are in the setup of Section~\ref{intro:12}, so $S = \on{Spec}R$ with $R = k\llbracket u,v\rrbracket$. The graph over the origin is a 2-gon, so the partition is $\{\{e_1, e_2\}\}$. Suppose we take the thickness function taking the value 1 on both edges. Then we can take $n_1 = 1$ and $n_2 = 0$, and the ring $R'_\bb E$ is given by
\[
R_\bb E' = \frac{R\left[a, u_1^{\pm 1}, u_2^{\pm 1}\right]}{\left(u - au_1, v - au_2, 1 - u_1\right)} \cong \frac{R\left[a, u_2^{\pm 1}\right]}{\left(u-a, v-au_2\right)} \cong \frac{R\left[u_2^{\pm 1}\right]}{\left(v - uu_2\right)}
\]
which is just an affine patch of the blowup of $R$ at the origin, with a point deleted.
\end{rema}

\begin{lemm}\label{lem:R_E_toric}
Let $\bb A^\bb E = \on{Spec} \bb Z[x_e: e \in \bb E]$. There is a natural map from $S$ to $\bb A^\bb E$, corresponding to the ring homomorphism sending $x_e$ to $\ell(e)$. Then $R_\bb E'$ is the coordinate ring of the pullback to $S$ of the toric variety over $\bb A^\bb E$ whose fan is the ray in $\bb Q_{\ge 0}^\bb E$ through the point $(m_e : e \in \bb E)$.
\end{lemm}


\begin{proof}
This is almost obvious from the definition, the only point where we must take care is that toric varieties (in the sense of~\cite{Fulton1993Introduction-to}) are by definition normal, so a-priori the toric variety associated to the ray spanned by the $m_e$ is the normalisation of the spectrum of
\[
\frac{\bb Z\left[x_e : e \in E\right]\left[a, u_e^{\pm1}:e \in \bb{E}\right]}{\left(x_e - a^{m_e}u_e : e \in \bb{E}, \:\: 1-\prod_{e\,\in\,\bb{E}} u_e^{n_e}\right)}.
\]
But the coprimality of the $m_e$ guarantees that this ring is in fact already normal.
\end{proof}

This toric interpretation will be very useful in Section~\ref{sec:toric_smoothness} when we come to show that these patches are non-singular.

\begin{lemm}\label{lem:useful_hom}
We have an $R$-algebra map
\begin{align*}
=\phi\colon R'_\bb{E} & \ra \ca{O}_{U}(U)\\
a & \mapsto \prod_{e\,\in\,\bb{E}} \ell(e)^{n_e}\\
u_e & \mapsto \ell(e)\phi(a)^{-m_e}.
\end{align*}
\end{lemm}

We call the element $a \in R'_\bb{E}$ the \emph{aligning element} of $R_\bb{E}'$.
\begin{proof}
Note that $\ca O_U(U)$ is a localisation of $R$ and that each $\ell(e)$ is a unit in $U$. To check that the map is well-defined we need to show that it sends $1-\prod_{e\,\in\,\bb{E}} u_e^{n_e}$ and each of the $\ell(e) - a^{m_e}u_e$ to zero. The latter is easy, the former requires a small calculation:
\begin{align*}
\phi\left(1-\prod_{e\,\in\,\bb{E}} u_e^{n_e} \right) & = 1 - \prod_{e\,\in\,\bb E} \left(\ell(e)^{n_e}\phi(a)^{-m_en_e}\right)\\
& = 1 - \left(\prod_{e\,\in\,\bb E} \ell(e)^{n_e}\right) \phi(a)^{\sum_{e\,\in\,\bb E} -m_e n_e}\\
& = 1 - \phi(a)\phi(a)^{-1} = 0.\qedhere
\end{align*}
\end{proof}


\begin{defi}\label{def:R_M}
Notation as in Setup~\ref{def:standard-notation}. Define
\[
R'_M = \bigotimes_{\bb{E}\,\in\,\on{Part}(\Gamma_M)} R'_{\bb{E}}.
\]
By Lemma~\ref{lem:useful_hom} and the universal property of the tensor product we get a natural map
\[
R'_M \ra \ca{O}_{U}(U),
\]
and we define $R_M$ to be the image of $R'_M$ under the above map. Set $S_M = \on{Spec}R_M$ (in other words, $S_M$ is the closure of the image of $U$ in $\on{Spec}R_M'$ under the given map). Write $a_\bb{E}$ for the image in $R_M$ of the aligning element in $R_{\bb{E}}'$, then define a sequence $a := (a_\bb{E})_{\bb{E}\,\in\,\on{Part}(\Gamma_M)}$ --- this will be used in Lemmas~\ref{lemma:NCD_preverved} and~\ref{toric_smooth_NCD}.
\end{defi}

\begin{rema}
In the above definition, the procedure of ``take the product, then take the image of the result in $\ca{O}_{U}(U)$' is essentially a way to ``splice together'' all the rings of relations $R'_{\bb{E}}$ without worrying about how the relations they capture are connected to each other. In general this image $R_M$ is not very explicit (for example, it is not immediately apparent how to write down generators and relations for it, given the same for the $R_{\bb{E}}$). On the other hand, if the singularities of $C/S$ are ``mild enough'' (for example, in the universal case) then we find that $R_M = R_M'$, see Remark~\ref{rem:why_connected_lemmas} and Lemma~\ref{lemma:NCD_preverved}.
\end{rema}


\begin{defi}
Notation as in Setup~\ref{def:standard-notation}. Let $f\colon T \ra S$ be a non-degenerate morphism. We say $f$ is \emph{$M$-aligning} if for all $\bb{E} \in \on{Part}(\Gamma_M)$ there exists $a_\bb{E} \in \ca{O}_T(T)$ such that for all $e \in \bb{E}$ we have $f^*\ell(e) = (a_\bb{E})^{M(e)}$ as ideals in $\ca O_T(T)$. We define the universal $M$-aligning morphism to $S$ to be a terminal object in the category of $M$-aligning morphisms to $S$.
\end{defi}



\begin{lemm}\label{lem:loc_M_ali}
Notation as in Setup~\ref{def:standard-notation}. Let $f\colon T \ra S$ be an aligning morphism. Then there exists an étale cover $\bigsqcup_{i\,\in\,I} T_i \ra T$, and for each $i$ a thickness function $M_i$, such that each $T_i \ra S$ is $M_i$-aligning.
\end{lemm}


\begin{proof}
By Lemma~\ref{lem:quasisplit_after_etale_cover} we may assume $T$ is quasisplit. Let $\frkt \in T$ be any point. Shrinking $T$, we may assume by Lemma~\ref{lem:controlled_after_shrink} that $\frkt$ is a controlling point for $f^*C/T$. We are done if we can find a thickness function $M$ such that, after possibly shrinking $T$ further, we have that $C_T/T$ is $M$-aligning.


Let $L_{\on{units}}$ denote the set of labels of edges of $\Gamma_\frks$ which are units at $f(\frkt) \in S$ --- this is exactly the same as the set of labels of edges of $\Gamma_\frks$ which are contracted by the natural map to $\Gamma_{f(\frkt)}$ (cf. Definition~\ref{def:contraction_map}). Because $\frkt$ is controlling for $f^*C/T$, we see that $L_{\on{units}}$ is also exactly the set of labels of edges of $\Gamma_\frks$ which pull back to units on $T$ (recalling that we can think of the labels of $\Gamma_\frks$ as principal ideals in $R$). The thickness function $M$ we will construct will take the value $0$ exactly on edges in~$L_{\on{units}}$.

Because $f$ is aligning, we know that for each set $\bb{E} \in \on{Part}(\Gamma_\frkt)$ there exists a principal ideal $a_\bb{E} \triangleleft \ca{O}_{T,\,\frkt}$ such that every edge in $\bb{E}$ is labelled by some power of $a_\bb{E}$ - write $\ell(e) = a_\bb{E}^{m_e}$. Moreover, replacing $a_\bb{E}$ by some positive power, we may assume for each $\bb{E}$ that
\[
\gcd\left\{m_e:e\in\bb{E}\right\} = 1.
\]
Define $M(e) = m_e$ if $\ell(e) \notin L_{\on{units}}$, and $M(e) = 0$ otherwise.

Now shrinking $T$ we may assume that each $a_\bb{E}$ stays a principal ideal in $\ca{O}_T(T)$, and moreover that for every $\bb{E}$ and every $e \in \bb{E}$, the relation $\ell(e) = a_\bb{E}^{M(e)}$ holds globally on $T$.
\end{proof}



\begin{prop}\label{prop:universal_M_aligning}
Notation as in Setup~\ref{def:standard-notation}. The natural map $S_M \ra S$ is a universal $M$-aligning morphism.
\end{prop}


\begin{proof}
First we need to check that $f_S\colon S_M \ra S$ is $M$-aligning. Fix $\bb E \in \on{Part}(\Gamma_M)$, and let $a_{\bb E}$ be as in Definition~\ref{def:R_M}. Then it is easy to see from the construction in Definition~\ref{def:rings_of_relations} that for every $e \in \bb E$ we have $f_S^*\ell(e) = (a_{\bb E})^{M(e)}$, so the definition of $M$-alignment is satisfied.

Now we need to show that any other $M$-aligning morphism $f\colon T \ra S$ factors uniquely via $S_M \ra S$. The uniqueness of a factorisation of $f$ via $S_M$ is clear as $f$ is non-degenerate and $S_M \ra S$ is affine and hence separated. For the existence, it suffices to construct a factorisation $\phi\colon T \to \on{Spec} R_M'$; indeed, then $\phi(f^{-1}U) \sub S_M$, and $f^{-1}U$ is by assumption dense in $T$ (which is reduced), hence $\phi$ factors via $S_M$.

Fix $\bb{E} \in \on{Part}(\Gamma_{M})$; by the universal property of the fibre product it is enough to construct a factorisation of $f$ via $\on{Spec}R'_\bb{E}$.


Write $R[1/\ell]$ for the ring obtained from $R$ by inverting the labels of all edges of $\Gamma_\frks$. Then the canonical map $\ca O_T(T) \to \ca O_T(T) \otimes_R R[1/\ell]$ is injective since $T$ is non-degenerate. Hence we can talk about whether various products of labels with integer exponents lie in $\ca O_T(T)$, even though $\ca O_T(T)$ may not be a domain.

By definition of $f$ being $M$-aligning, there is an element $t \in \ca{O}_{T}(T)$ such that for all $e \in \bb{E}$, we have $f^*\ell(e) = (t)^{M(e)}$ as ideals in $\ca O_T(T)$. Choose integers $n_e$ for $e\in \bb{E}$ such that $\sum_{e \,\in\,\bb{E}} M(e) n_e = 1$. Choose also for each $e$ a generator $\ell(e)\in R$ of the label of $e$. Note that $\prod_{e\,\in\,\bb{E}} f^*\ell(e)^{n_e} \in \ca O_T(T)$, indeed it differs from $t$ by multiplication by some unit. Similarly, $f^*\ell(e)/t^{M(e)}$ is a unit in $\ca O_T(T)$ for each $e$. We define an $R$-algebra map
\begin{align*}
R'_\bb{E} & \ra \ca{O}_{T}(T)\\
a &\mapsto t\\
u_e & \mapsto f^*\ell(e)/t^{M(e)}
\end{align*}
which is well-defined by a verification similar to that in the proof of Lemma~\ref{lem:useful_hom}. This yields a map $T \ra \on{Spec} R'_\bb{E}$ as required.
\end{proof}

For a given thickness function $M$ we have now constructed a universal $M$-aligning morphism $S_M \to S$. Our goal in the remainder of this section will be to glue together these $S_M$ as $M$ runs over different thickness functions, to construct a universal aligning morphism to $S$. The next definition and lemma will show how to glue.


\begin{defi}\label{def:SMN}
Notation as in Setup~\ref{def:standard-notation}. Let $M$, $N$ be two thickness functions. Define
\begin{align*}
\delta_M =& \bigcup \big\{\bb{E} \in \on{Part}(\Gamma_M)\,:\, \exists e \in \bb{E} \text{ with }M(e) \neq N(e)\big\}
\\
\intertext{and}
\delta_N =& \bigcup \big\{\bb{E} \in \on{Part}(\Gamma_N)\,:\, \exists e \in \bb{E} \text{ with }M(e) \neq N(e)\big\}.
\end{align*}
The set of edges of $\Gamma_M$ is naturally a subset of the edges of $\Gamma$, and similarly for $\Gamma_N$. We then set $\delta_{M,\,N} = \delta_M \cup \delta_N$, with the union taken inside the set of edges of $\Gamma$. Then define
\[
S_{M,N} = \on{Spec} \left(R_M\left[\ell(e)^{-1}:e\in \delta_{M,\,N}\right]\right).
\]
Here we are writing $R_M[\ell(e)^{-1}:e\in \delta_{M,\,N}]$ for the localisation of $R_M$ at the principal ideals $\ell(e)$ as $e$ runs over the edges in $\delta_{M,\,N}$. Formally these labels are principal ideals rather than elements of $R$, but we can effectively ``invert'' such a principal ideal by choosing a generator and inverting that. We see that $S_{M,\,N}$ is an open subscheme of~$S_M$.
\end{defi}

It is clear that $S_{M,\,N} \ra S$ is $M$-aligning, since it factors via $S_M \ra S$. Part of the point of the definition is that we also have:
\begin{lemm}
In the above notation:
\begin{enumerate}
\item The morphism $S_{M,\,N} \ra S$ is $N$-aligning;
\item The induced map $S_{M,\,N} \ra S_N$ factors via $S_{N,\,M} \ra S_N$.
\end{enumerate}
\end{lemm}


\begin{proof}
\begin{enumerate}
\item Let $\bb{E} \in \on{Part}(\Gamma_N)$. We want to show that there exists an element $a \in R$ such that for all $e \in \bb{E}$, we have $\ell(e) = (a)^{N(e)}$. Well, if $M|_\bb{E} \neq N|_\bb{E}$ then $\bb{E}\subseteq \delta_{M,\,N}$ so we may take $a=1$. On the other hand, if $M|_\bb{E} = N|_\bb{E}$ then there exists $\bb{E}_M \in \on{Part}(\Gamma_M)$ such that $\bb{E} \subseteq \bb{E}_M$, and we may take the same aligning element $a$ as works for $\bb{E}_M$.
\item The map $S_{N,\,M} \to S_N$ is a localisation; more precisely, we invert exactly those $\ell(e)$ for which $e \in \delta_{N,\,M}$. For a morphism from a scheme $T$ to $S_N$ to factor via the open immersion $S_{N,\,M} \to S_N$ is exactly equivalent to checking that each of these $\ell(e)$ maps to a unit in $\ca O_T(T)$ (this is the universal property of localisation). We apply this principle to the morphism $S_{M,\,N} \to S_N$; we need to check that each $\ell(e)$ for $e \in \delta_{N,\,M}$ maps to a unit in $S_{M,\,N}$, but this is immediate since $\delta_{M,\,N} = \delta_{N,\,M}$, and since these labels all come by pullback from $S$.
\end{enumerate}
\end{proof}

From this lemma and symmetry we obtain a canonical isomorphism $S_{M,\,N} \stackrel{\sim}{\ra} S_{N,\,M}$ for all pairs of thickness functions $M$, $N$. We can now define the universal aligning morphism (in Lemma~\ref{lem:uam_controlled} we will verify that it actually satisfies the universal property).

\begin{defi}\label{def:Stilde_controlled}
Notation as in Setup~\ref{def:standard-notation}. Define $\beta\colon \tilde{S} \ra S$ to be the result of glueing together all the $S_N$ as $N$ runs over all thickness functions, along the open subschemes $S_{N,\,N'}$.
\end{defi}

For this glueing to make sense we must check a cocycle condition, see~\cite[\href{https://stacks.math.columbia.edu/tag/01JC}{Tag 01JC}]{stacks-project}; the first part is immediate from the definition of the $\delta_{M,\,N}$, and the second follows from the fact that these patches are all reduced and map birationally to $S$.

Before verifying that $\tilde{S} \to S$ has the universal property of the universal aligning morphism, we verify that it is separated.

\begin{prop}\label{prop:universal_aligning_separated}
The map $\beta\colon \tilde{S} \ra S$ is separated.
\end{prop}


\begin{proof}
The map $\beta\colon \tilde{S} \ra S$ is quasi-separated because $\tilde{S}$ is locally noetherian, so it is enough to check the valuative criterion for separatedness. Let $V$ denote the spectrum of a valuation ring, with generic point $\eta$ and closed point $v$. Let $f, g \colon V \ra \tilde{S}$ be morphisms which agree on $\eta$ and such that the composites with the canonical map $\tilde{S} \ra S$ agree --- in particular, $f^*\ell(e) = g^*\ell(e)$ for every edge $e$ of $\Gamma_\frks$. We will show that $f = g$, verifying the valuative criterion.

First, the $S_N$ form an open cover of $S$ as $N$ runs over thickness functions, so there exist thickness functions $M$ and $N$ such that $f$ factors via $S_M \ra S$ and $g$ factors via $S_N \ra S$. If $M=N$ then the result is clear since $S_M \ra S$ is affine and hence separated. Thus we may as well assume that $M \neq N$.

We will show that both $f$ and $g$ factor via $S_{M,\,N}$, which is affine over $S$ and so $f=g$. To do this, we need to show that for every edge $e \in \delta_{M,\,N}$ we have that $f^*\ell(e)$ is a unit on $V$. Well, fix some $e_0 \in \delta_{M,\,N}$. Then (perhaps switching $M$ and $N$) we may assume that there exists $\bb{E} \in \on{Part}(\Gamma_M)$ such that $e \in \bb{E}$ and such that $N|_\bb{E} \neq M|_\bb{E}$ (and note that $M$ does not vanish on any edge in $\bb{E}$). Since $f$ is $M$-aligning (it factors via $S_M$), we know there exists $a \in \ca{O}_V(V)$ such that for all $e\in\bb{E}$, we have $f^*\ell(e) = (a)^{M(e)}$.

Observe that $f^*\ell(e_0) \neq 0$, otherwise we cannot have $f(\eta) \in S_{M,\,N}$, which contradicts the fact that $f$ and $g$ agree on $\eta$. Since $M(e_0) \neq 0$, this tells us that $a \neq 0$.

We now divide into two cases:
\begin{enumerate}\casenumii
%%Faire une liste spéciale 
\item There exists $e' \in \bb{E}$ such that $N(e') = 0$. Then $g^*\ell(e')$ is a unit, so $a^{M(e')}$ is a unit, so $a$ is a unit, so all the $f^*\ell(e)$ for $e \in \bb{E}$ are units as required.
\item $N$ does not vanish on any $e \in \bb{E}$. Then there exists $\bb{E}_N \in \on{Part}(\Gamma_N)$ such that $\bb{E} \subseteq \bb{E}_N$, so there exists $b \in \ca{O}_V(V)$ such that for all $e \in \bb{E}_N$ we have $g^*\ell(e) = (b)^{N(e)}$, so certainly the same holds for $\bb{E}$. Now since $M|_\bb{E} \neq N|_\bb{E}$ and $M$ does not vanish on $\bb{E}$, there exist integers $c_e$ for $e \in \bb{E}$ such that
\[
d := \sum_{e\,\in\,\bb{E}} c_e M(e) \neq 0 \text{ and } \sum_{e\,\in\,\bb{E}} c_e N(e) = 0.
\]
Moreover, a similar argument to that above tells us that $b \neq 0$. It is enough to show that $a$ is a unit on $V$.

Pick a generator $\ell(e)$ of the principal ideal $\ell(e)$ for each $e \in \bb{E}$. Then we find that, up to multiplication by units on $V$, we have
\begin{align*}
\prod_{e\,\in\,\bb{E}}f^*\ell(e)^{c_e} &= \prod_{e\,\in \,\bb{E}} a^{c_eM(e)} = a^d
\\
\intertext{and}
\prod_{e\,\in\,\bb{E}}g^*\ell(e)^{c_e} &= \prod_{e\,\in \,\bb{E}} b^{c_eN(e)} = 1.
\end{align*}
The left hand sides are equal, so $a^d$ is a unit on $V$, so $a$ is a unit on $V$ and we are done.\qedhere
\end{enumerate}
\end{proof}

\begin{lemm}\label{lem:uam_controlled}
Notation as in Setup~\ref{def:standard-notation}. Then $\beta\colon\tilde{S} \ra S$ is a universal aligning morphism for $C/S$. The map $\beta$ is locally of finite presentation.
\end{lemm}


\begin{proof}
Let $f\colon T \ra S$ be aligning. The uniqueness of a factorisation of $f$ via $\beta$ holds because $f$ is non-degenerate and $\beta$ is separated by Proposition~\ref{prop:universal_aligning_separated}. For existence, by Lemma~\ref{lem:loc_M_ali} we can choose an étale cover $T' \coloneqq \bigsqcup_i T_i \to Y$ and for each $i$ a thickness function $M_i$ such that $T_i \to S$ is $M_i$-aligning. By Lemma~\ref{prop:universal_M_aligning} each $T_i \to S$ factors via $S_{M_i} \to S$; in particular, the disjoint union $T'' \to T$ factors (uniquely) via the $\tilde S \to S$. We need to descend this to a morphism $T \to \tilde S$, which comes down to verifying that two morphisms $T' \times_T T' \to \tilde S$ coincide. But this is immediate from the uniqueness observed above.

Local finite presentation holds because the $S_M$ are clearly of finite presentation.
\end{proof}


\subsection{Universal aligning morphisms: the general case}

\begin{theo}\label{thm:existence_of_iniversal_aligning_for_curve_over_scheme}
Let $C/S$ be a generically smooth prestable curve over a reduced locally noetherian algebraic stack. Then a universal aligning morphism for $C/S$ exists, and is a separated algebraic space locally of finite presentation over $S$.
\end{theo}


\begin{proof}
The stack $S$ admits a smooth cover by a scheme (which is necessarily reduced and locally noetherian). A universal aligning morphism will descend along a smooth cover (as will the property of being an algebraic space) since it is defined by a universal property, and descent for algebraic spaces is effective. As such, it is enough to consider the case where $S$ is a scheme. Similarly, by Lemma~\ref{lem:controlled_cover_exists} we can assume that $C/S$ has a controlling point $\frks$. The existence then follows from Lemma~\ref{lem:uam_controlled}. Separatedness and local finite presentation follow by étale descent of those properties, and the same lemma.
\end{proof}



\section{Regularity and normal crossings}\label{sec:regularity_for_correlation}

In the previous section we built a universal aligning morphism for a generically smooth prestable curve. Next we will show that the universal aligning morphism is in fact the universal Néron model admitting morphism. While this will be formalised later, we present here the basic outline of the argument. Let $T \to S$ be a non-degenerate morphism and $C/S$ a prestable curve. We know from~\cite{Holmes2014Neron-models-an} that if the jacobian of $C_T/T$ admits a Néron model then $C_T/T$ is aligned, so $T \to S$ will factor uniquely via the universal aligning morphism $\tilde S \to S$.

This is \emph{not} enough, as we still need to show the existence of a Néron model over $\tilde S$. To apply the results of~\cite{Holmes2014Neron-models-an} to guarantee the existence of a Néron model for the jacobian of $C_{\tilde S}/\tilde S$, we need that $C_{\tilde S}/\tilde S$ is aligned \emph{and} that $C_{\tilde S}$ is regular. The alignment is immediate from the defining property of $\tilde S$, but regularity generally fails. We have two main tasks:
\begin{enumerate}
\item Show that $\tilde S$ is regular (otherwise we have little hope of making $C_{\tilde S}$ regular);
\item Show that we can resolve the singularities of $C_{\tilde S}$ in such a way that $C_{\tilde S}$ remains aligned.
\end{enumerate}
For both of these steps we will need to impose some more constraints on the singularities of $C/S$. Here we will consider two variants; one a ``toric'' version where we assume $S$ comes with the structure of a smooth toric variety, and one an ``absolute'' version where we assume only that the non-smooth locus of $C$ lies over a normal crossings divisor in $S$ (these will be described more precisely in their respective sections). The absolute cases subsumes the toric one, so logically we are free to only treat the former. On the other hand, the proofs are very much simpler in the toric case, and this case is also sufficient to treat our application to the moduli space of curves. We treat also the absolute version since it seems interesting for example to apply these results to integral models of elliptic fibrations coming from K3 surfaces; but we recommend the reader to stick to the proof in the toric case, at least the first time around.


\subsection{The toric case}\label{sec:toric_smoothness}

In this section we work over a fixed regular base scheme $\Lambda$; for example, $\Lambda = \on{Spec}\bb C$ or $ \on{Spec} \bb Z$. Notation as in Setup~\ref{def:standard-notation}. Recalling that $E$ is the set of edges of the graph $\Gamma$, we set $\bb A^E = \Lambda[x_e : e \in E]$. There is then a natural map $\phi\colon S \to \bb A^E$ corresponding to mapping $x_e$ to $\ell(e)$ (cf. Lemma~\ref{lem:R_E_toric}). We say $C/S$ is \emph{toric} if the map $\phi$ is smooth.

\begin{lemm}\label{lem:toric_R_M_regular}
Fix $\bb{E} \in \on{Part}(\Gamma_M)$. Then the scheme $\on{Spec} R_\bb E'$ from Definition~\ref{def:rings_of_relations} is smooth over $\Lambda$.
\end{lemm}


\begin{proof}
From~\cite[\S~2.1]{Fulton1993Introduction-to} one deduces that an affine toric variety coming from a cone $\sigma$ is smooth over $\Lambda$ if and only if $\sigma$ can be generated by a subset of some lattice basis. In this case our cone is a ray (Lemma~\ref{lem:R_E_toric}), so this is automatic. Then $R_\bb E'$ is smooth over $\Lambda$, since the induced map to the affine toric variety associated to the ray is also smooth.
\end{proof}

Showing $S_M$ to be regular needs slightly more work, as we take a fibred product and then a Zariski closure. However, the fibred product is not hard to handle, and we will see that the resulting scheme is smooth, so taking the closure is not necessary in this case.

For each $\bb E \in \on{Part}(\Gamma_M)$ we have a vector $m_\bb E \coloneqq (m_e:e \in \bb E) \in \bb Z_{\ge\,0}^\bb E$, whose span is the cone of the toric variety associated to $R_\bb E'$. Write $\bd m_\bb E$ for the unique vector in $\bb Z_{\ge\,0}^E$ which projects to $m_\bb E \in \bb Z_{\ge\,0}^\bb E$, and to the zero vector in every other coordinate direction. Then the span $\sigma_M'$ of the vectors $\bd m_\bb E : \bb E \in \on{Part}(\Gamma_M)$ is the cone associated to the ring $R_M'$. As in Lemma~\ref{lem:R_E_toric}, this is almost obvious from the construction, but we should verify that the resulting monoid is saturated; this is so because its projection to each of the $\bb Z_{\ge\,0}^\bb E$ is saturated. We see thus that $ \on{Spec} R_M'$ comes with a smooth map to a normal toric variety. In particular, the open orbit is dense, and so we see $R_M = R_M'$.

\begin{lemm}\label{toric_smooth_NCD}
The scheme $S_M$ is smooth over $\Lambda$, and the sequence $(a_\bb E)_{\bb E\,\in\,\on{Part}(\Gamma_M)}$ from Definition~\ref{def:R_M} is a relative normal crossings divisor.
\end{lemm}
\begin{proof}
In Lemma~\ref{lem:toric_R_M_regular} we verified that each $m_\bb E$ can be extended to a lattice basis for $\bb Z_{\ge \,0}^\bb E$, write $B_\bb E$ for such a basis. Lifting each element of $B_\bb E$ to $\bb Z_{\ge\,0}^E$ by filling in the other coordinates with zeros, and repeating for each element of the partition $\on{Part}(\Gamma_M)$ yields a lattice basis for $\bb Z_{\ge\,0}^E$ containing all the $\bd a_\bb E$. This verifies that $S_M$ is smooth over $\Lambda$. The elements of the sequence $a_\bb E$ correspond to the vectors $\bd a_\bb E$; together these form a subset of a lattice basis and span the cone of $S_M$, hence they correspond to a relative normal crossings divisor.
\end{proof}



\subsection{The absolute case}

\begin{defi}[Normal crossings singularities]
Notation as in Setup~\ref{def:standard-notation}. We say $C/S$ has \emph{normal crossings singularities} if the sequence $(\ell(e):e \in \Gamma_\frks)$ has normal crossings --- in other words, if for every set $J \subseteq \on{edges}(\Gamma_\frks)$, we have that the closed subscheme
\[
V\left(\ell(e):e \in J\right)\subseteq S
\]
is regular and has codimension $\#J$ in $S$ at every point in that subscheme.
\end{defi}


\begin{defi}[étale normal crossings singularities]
Let $C/S$ be a prestable curve over a locally noetherian scheme. We say $C/S$ has \emph{étale normal crossings singularities} if for every geometric point $\bar{s}$ of $S$, and for every subset $J \sub \on{edges}(\Gamma_{\bar{s}})$, the closed subscheme
\[
V(\ell(e):e \in J) \sub \on{Spec}\ca{O}_{S,\,\bar{s}}^{et}
\]
is regular and has codimension $\#J$.
\end{defi}

Note that having étale normal crossings singularities is smooth-local on the target, and so makes sense when $S$ is an algebraic stack. The Deligne--Mumford--Knudsen moduli stack of stable curves (over a regular base) is an example of a family of curves with étale normal crossings singularities.

\begin{lemm}\label{lem:controled_etale_cover_NCS}
Let $C/S$ be a prestable curve over an excellent scheme with étale normal crossings singularities. Then there exists an étale controlled cover $\bigsqcup_{i\,\in\,I} S_i \ra S$ (with controlling points $\frks_i \in S_i$) such that the pullback of $C$ to each $S_i$ has normal crossings singularities.
\end{lemm}

\begin{proof}
This is clear by Lemma~\ref{lem:controlled_after_shrink}, the finiteness of the sets of edges, and the openness of the regular locus in an excellent scheme.
\end{proof}

Suppose $C/S$ has étale normal crossings singularities. In particular, by taking the indexing set $J$ to be empty, we deduce that $S$ must be regular. It is then easy to check that $C$ is also regular, by looking at the local equations at the non-smooth points. On the other hand, $C$ can be regular without having étale normal crossings singularities\linebreak--- for example if $S$ is a trait and $C$ has multiple non-smooth points. Finally, note that the universal stable curve $\Mbar{g,\,n+1} \ra \Mbar{g,\,n}$ has étale normal crossings singularities.

In the next lemma we will show some regularity properties for rings of the form we considered in Definition~\ref{def:rings_of_relations} while constructing the universal aligning morphism.

\begin{lemm}\label{lemma:basic_regularity}
Let $R$ be a ring, and $x_1,\,\cdots,\,x_d \in R$ a collection of elements such that for all $J \sub \{1,\,\cdots,\,d\}$, the quotient
\[
R/\left(x_j:j \in J\right)
\]
is regular. Let $m_1,\,\cdots,\,m_d$ be non-negative integers with $\gcd(m_1,\,\cdots,\,m_d) = 1$, and let $n_1,\,\cdots,\, n_d$ be integers such that $\sum_{i=1}^dm_in_i = 1$. Define
\[
R' = \frac{R\left[a, u_1^{\pm1},\,\cdots,\,u_d^{\pm1}\right]}{\left(x_i - a^{m_i}u_i\,:\,\left(1 \le i \le d\right), 1-\prod_i u_i^{n_i}\right)}.
\]
Then $R'$ and $R'/a$ are regular.
\end{lemm}


\begin{proof}
It is easy to check that $R'/a$ is regular; it is even smooth over $R/(x_i : m_i >0)$, which is regular by assumption. We need to show $R'$ itself is regular; this will take more care, since it is not in general smooth over its image --- it resembles an affine patch of a blowup.

Let $p \in \on{Spec}R'$ be any point, and write $q$ for the image of $p$ in $\on{Spec}R$. Localising $R$ at $q$, we may assume that $R$ is local, with closed point $q$. Re-ordering the $x_i$, we may assume that $x_1,\,\cdots,\,x_e \in q$ and $x_{e+1},\,\cdots,\,x_d\notin q$ for some $0 \le e \le d$. Writing $D = \on{dim} R$, our normal crossings assumptions imply that there exist $g_1,\,\cdots,\,g_{D-e} \in R$ such that
\[
q = \left(x_1,\,\cdots,\,x_e, g_1,\,\cdots,\,g_{D-e}\right).
\]
Now if $e = 0$ then we will now show that $R \to R'$ is an isomorphism, so the result is clear. Indeed, an inverse to the structure map $R \to R'$ is given by a map $f\colon R' \to R$ sending $a \mapsto \prod_i x_i^{n_i}$ and $u_i \mapsto x_i f(a)^{-m_i}$ (these make sense because $e=0$ implies that the $x_i$ are units). Checking that this is well-defined works just as in the proof of Lemma~\ref{lem:useful_hom}, and it is clear that the composite $R \to R' \to R$ is the identity. We need to check that $R' \to R \to R'$ is also the identity. It clearly sends $u_i$ to $u_i$, and sends $a$ to $\prod_i x_i^{n_i}$, so we need to check that $a = \prod_i x_i^{n_i}$ in $R$. Well,
\[
\prod_i x_i^{n_i} = \prod_i \left(a^{m_i}u_i\right)^{n_i} = a^{\sum_i m_i n_i} \prod_i u_i ^{n_i} = a^1\cdot 1 = a.
\]

It remains to treat the case $e \ge 1$. It then follows that $m_i = 0$ for every $e < i \le d$, otherwise $R'/qR'$ is empty, contradicting the existence of $p$. Again reordering, we may assume that $1\le m_1 \le m_2 \le \cdots \le m_e$. We find that
\begin{align*}
R' /qR' = \frac{R/q\left[a, u_1^{\pm1},\,\cdots,\,u_d^{\pm1}\right]}{\left(a^{m_1}, x_{e+1}-u_{e+1},\,\cdots,\,x_d - u_d, 1-\prod_{1\,\le\,i\,\le\,d} u_i^{n_i}\right)}.
\\
\intertext{We then see that}
\frac{R'}{((a) + q)R'} = \frac{R/q\left[a, u_1^{\pm1}, \,\cdots,\,u_d^{\pm1}\right]}{\left(a, x_{e+1}-u_{e+1},\,\cdots,\,x_d - u_d, 1-\prod_{1\,\le\,i\,\le\,d} u_i^{n_i}\right)}
\end{align*}
is regular and of dimension $e-1$. From this we deduce that there exist elements $f_1,\,\cdots,\,f_{e-1} \in R'$ such that
\begin{align*}
p & = \left(a, f_1,\,\cdots,\,f_{e-1}, x_1,\,\cdots,\,x_e, g_1,\,\cdots,\,g_{D-e}\right)\\
& = \left(a, f_1,\,\cdots,\,f_{e-1}, g_1,\,\cdots,\,g_{D-e}\right),
\end{align*}
so $p$ can be generated by $D$ elements. Now it is clear that every irreducible component of $R'$ has dimension at least $D$ (count generators and relations), and hence it follows that $R'$ is regular at $p$ and has pure dimension~$D$.
\end{proof}


\begin{rema}\label{rem:why_connected_lemmas}
The reader should probably skip the next two Lemmas (\ref{lem:connected_fibre} and~\ref{lem:dense_image}) together with part~\eqref{lemm8.10.2} of Lemma~\ref{lemma:NCD_preverved}, at least at a first reading. Part~\eqref{lemm8.10.1} of Lemma~\ref{lemma:NCD_preverved} is all that is needed for the main results of the article, and the proof is quite a bit easier.

The point of Lemmas~\ref{lem:connected_fibre} and~\ref{lem:dense_image} is to allow us to prove part~\eqref{lemm8.10.2} of Lemma~\ref{lemma:NCD_preverved}, which is used to make the construction of the universal Néron model admitting morphism more explicit. In Definition~\ref{def:R_M} there is an annoying step where we have to take the closure of the image of $U$ to build the ring $R_M$ from the ring $R'_M$ (the latter being given by a nice presentation). What we get from part~\eqref{lemm8.10.2} of Lemma~\ref{lemma:NCD_preverved} is exactly that we can \emph{skip} this step --- the image of $U$ is already dense in $\on{Spec}R'_M$, so taking the closure does nothing (at least in the case of normal-crossings singularities).
\end{rema}


\begin{lemm}\label{lem:connected_fibre}
In the notation of Lemma~\ref{lemma:basic_regularity}, assume also that $R$ is local, with maximal ideal $\frkm$. Assume that at least one of the $x_i$ lies in $\frkm$. The following are equivalent:
\begin{enumerate}
\item $R'/\frkm$ is connected;
\item $R'/\frkm$ is non-zero;
\item for all $1 \le i \le d$, we have that $\left(x_i \in R^\times \implies m_i = 0\right)$.
\end{enumerate}
\end{lemm}

\begin{proof}
The implication $1 \implies 2$ is from the definition of a connected ring. Suppose 3 fails, so (say) $x_1 \in R^\times$ and $m_1 \neq 0$, so $a$ becomes a unit in $R'/\frkm$. We also know some $x_i \notin R^\times$, say $x_d \notin R^\times$. Then in $R'/\frkm$ we find that $0 = x_d = a^{m_d}u_d$ is a unit, so $R'/\frkm = 0$. This shows $2 \implies 3$.

For $3 \implies 1$ we must work a little harder. A little more notation: let $k = R/\frkm$, and assume that $x_1, \,\cdots,\,x_e \notin R^\times$ and that $x_{e+1},\,\cdots,\,x_d \in R^\times$ for some $e > 0$. Then
\begin{align*}
R'/\frkm &= \frac{k\left[a, u_1^{\pm 1},\,\cdots,\,u_d^{\pm 1}\right]}{\left(u_1a^{m_1},\,\cdots,\,u_ea^{m_e}, x_{e+1} - u_{e+1},\,\cdots,\,x_d - u_d, 1-\prod\limits_{i=1}^du_i^{n_i}\right)}\\
& = \frac{k\left[a, u_1^{\pm 1},\,\cdots,\,u_e^{\pm 1}\right]}{\left(a^{m_1},\,\cdots,\,a^{m_e}, 1-\prod\limits_{i=1}^eu_i^{n_i}\prod\limits_{i=e+1}^dx_i^{n_i}\right)}. \\
\end{align*}
Quotienting by $(a)$ will not affect whether this ring is connected, so it is enough to show that
\[
\frac{k[u_1^{\pm 1},\,\cdots,\,u_e^{\pm 1}]}{\left(1-\prod\limits_{i=1}^eu_i^{n_i}\prod\limits_{i=e+1}^dx_i^{n_i}\right)}
\]
is connected. We will in fact show that this ring is a domain. Perhaps extending the field $k$, we can absorb the $x_i$. Moreover since $\sum_{i=1}^dm_in_i = \sum_{i=1}^em_in_i = 1$ we know that $n_i$ have no common factor. Perhaps swapping $u_i$ and $u_i^{-1}$ for some $i$, we may assume all $n_i \ge 0$. Moreover, the localisation of a domain is a domain. So it is enough to show the ring
\[
\frac{k\left[u_1,\,\cdots,\,u_e\right]}{\left(1 - \prod\limits_{i=1}^e u_i^{n_i} \right)}
\]
is a domain, i.e. we must show $P := 1 - \prod_{i=1}^e u_i^{n_i} $ is irreducible.

Without loss of generality assume $n_1 \neq 0$. Think of $P$ as a polynomial in $x_1$, and for any $i \neq 1$ write $\on{NP}_{x_i}(P)$ for the Newton polygon of $P$ with respect to the valuation coming from $x_i$. The single edge of the Newton polygon $\on{NP}_{x_i}(P)$ has slope $n_i/n_1$, so we see that if $h$ is a factor of $P$ then $\on{deg}_{x_1}(h)\frac{n_i}{n_1} \in \bb{Z}$, i.e.
\[
\frac{n_1}{\gcd(n_1, n_i)} \Big| \on{deg}_{x_1}(h).
\]
Since the $n_i$ have no common factor, this implies that $\on{deg}_{x_1}(P) = n_1 \mid \on{deg}_{x_1}(h)$, and we are done.
\end{proof}

\begin{lemm}\label{lem:dense_image}
In the notation of Lemma~\ref{lemma:basic_regularity}. Let $U \sub \on{Spec}R$ be dense open such that every $x_i$ is a unit on $U$. Define $\phi\colon U \ra \on{Spec}R'$ by
\begin{align*}
R' & \ra \ca{O}_{U}(U)\\
a & \mapsto \prod_{i} x_i^{n_i}\\
u_i & \mapsto x_i\phi(a)^{-m_i}
\end{align*}
(cf. Lemma~\ref{lem:useful_hom}). Then the image of $\phi$ is dense in $\on{Spec}R'$.
\end{lemm}


\begin{proof}
Without loss of generality, we may assume $U$ is given by $U = \on{Spec}R_0$ where $R_0 = R[1/x_i:1 \le i \le d]$. Set $S = \on{Spec}R$, and $S' = \on{Spec}R'$. First, we want to show that the natural map $U \ra S' \times_S U$ is an isomorphism, in other words that $R' \otimes_R R_0 \ra R_0$ is an isomorphism. Since not all $m_i =0 $ we find that $a$ becomes a unit in $R' \otimes_R R_0$, and the result then follows by elementary manipulations.

Now let $p \in S' \setminus U$ be a point, with image $q\in S$. So $q \notin U$, so some $x_i$ is contained in $q$. Localising $R$ at $q$, the hypotheses are preserved, but now we also have that $R$ is local and $R'/q$ is non-zero (since $p$ exists). By Lemma~\ref{lem:connected_fibre} this implies that the closed fibre $S'_q$ is connected. Write $\overline{\phi(U)}$ for the closure of the image of $U$ in $S'$.\linebreak I claim that the fibre $\overline{\phi(U)}_q$ is non-empty. Suppose for now that the claim is true. Then $p$ lies in the same connected component of $S'$ as $\phi(U)$. But $S'$ is regular by Lemma~\ref{lemma:basic_regularity}, so every connected component of $S'$ is irreducible, so $p \in \overline{\phi(U)}$ and the lemma is proven.

It remains to verify the claim that $\overline{\phi(U)}_q\neq \emptyset$. For this, let $f\colon T \ra S$ be a map from the spectrum of a discrete valuation ring to $S$ sending the closed point to $q$ and such that for all $1 \le i \le d$ we have
\[
\on{ord}_Tf^*x_i = m_i.
\]
This is possible because the non-unit $x_i$ form a regular sequence in $R$, and because
\[
x_i \in R^\times \implies m_i = 0,
\]
otherwise the point $p$ could not exist (by Lemma~\ref{lem:connected_fibre}).

We then find that $\prod_{i=1}^d (f^*x_i)^{n_i}$ is a uniformiser on $T$, and that for all $i$ the element $f^*x_i/a^{m_i}$ is a unit on $T$. We can therefore lift the map $f$ to a map $f'\colon T \ra S'$ by
\begin{equation}
\begin{split}
R' & \ra \ca{O}_{T}(T)\\
a & \mapsto \prod_{i} \left(f^*x_i\right)^{n_i}\\
u_i & \mapsto f^*x_ia^{-m_i}.
\end{split}
\end{equation}
The image of the closed point of $T$ under $f'$ lies over $q$. The image of $T$ under $f'$ is integral, and the image of the generic point lies over $U$, so the closure of $\phi(U)$ has non-empty fibre over $q$ as required.
\end{proof}


\begin{lemm}\label{lemma:NCD_preverved}
Notation as in Setup~\ref{def:standard-notation}, and assume $C/S$ has normal crossings singularities. For each $\bb{E} \in \on{Part}(\Gamma_M)$, let $a_\bb{E}$ denote the image of the aligning element of $R'_\bb{E}$ in $R'_M$. Then
\begin{enumerate}
\item \label{lemm8.10.1} The sequence $(a_\bb{E} : \bb{E} \in \on{Part}(\Gamma_M))$ form a normal-crossings divisor in $R'_M$ (in particular they are distinct);
\item \label{lemm8.10.2}We have $R_M = R'_M$.
\end{enumerate}
\end{lemm}

\begin{proof}
If $\on{Part}(\Gamma_M)$ has only one element then~\eqref{lemm8.10.1} follows immediately from Lemma~\ref{lemma:basic_regularity}, and~\eqref{lemm8.10.2} from Lemma~\ref{lem:dense_image}. Fortunately the general case can be treated with similar ease, only the notation is worse. Choose an ordering on $\on{Part}(\Gamma_M)$, say $\on{Part}(\Gamma_M) = \{\bb{E}_1,\,\cdots,\,\bb{E}_r\}$. Set $R_0 = R$, and $R_i = \bigotimes_{j=1}^iR'_{\bb{E}_j}$. We will prove the claim by induction on $i$. The case $i=0$ is exactly the assumption that $C/S$ has normal crossings singularities (in particular $U$ is dense in $R$). Suppose we know the result for some $R_i$, then claim~1 (respectively claim~2) for $R_{i+1}$ is exactly what we get by applying Lemma~\ref{lemma:basic_regularity} (respectively Lemma~\ref{lem:dense_image}) to the ring $R_i$ and the sequence $a_{\bb{E}_1},\,\cdots,\,a_{\bb{E}_i}$, with suitably chosen $m_\star$ and $n_\star$.
\end{proof}

\begin{theo}\label{thm:Stilde_regular}
Notation as in Setup~\ref{def:standard-notation}, and assume $C/S$ has normal crossings singularities. Let $\beta\colon \tilde{S} \ra S$ be the universal aligning morphism. Then $\tilde{S}$ is regular. Moreover, the set $\{\beta^*\ell(e):e \in \on{edges}(\Gamma_\frks)\}$ has normal crossings in $\tilde{S}$, i.e. for every $J \sub \on{edges}(\Gamma_\frks)$, the underlying reduced subscheme of
\[
V\left(\beta^*\ell(e):e \in J\right) \sub \tilde{S}
\]
is regular.
\end{theo}

\begin{proof}
The claim is local on $\tilde{S}$, so we can fix a thickness function $M$ and check the claim on $S_M$. The result is then immediate from Lemma~\ref{lemma:NCD_preverved} (or Lemma~\ref{toric_smooth_NCD} for the toric case, in which case ``regular'' can be replaced by ``smooth over $\bb Z$'').
\end{proof}



\section{Resolving singularities over the universal aligning scheme}\label{sec:resolving_sings_of_pullback}
For the motivation behind the results in this section we refer to the discussion at the start of Section~\ref{sec:regularity_for_correlation}. In brief, in order to apply the results of~\cite{Holmes2014Neron-models-an} to prove the existence of a Néron model for the jacobian of the universal curve over the universal aligning scheme, we need the curve to have a \emph{regular} aligned model. Alignment is already built in; in this section we prove that we can resolve the singularities to give a regular model, without disturbing the alignment.



\begin{defi}
Let $S$ be a scheme, $U \sub S$ a dense open, and $C/U$ a smooth proper curve. A \emph{model} for $C/U$ is a proper flat morphism $\bar{C} \ra S$ together with an isomorphism $\bar{C} \times_S U \stackrel{\sim}{\longrightarrow} C$. This isomorphism will often be suppressed in the notation.
\end{defi}


\begin{lemm}\label{lemma:resolving_singularities}
Notation as in Setup~\ref{def:standard-notation}, and assume $C/S$ has normal crossings singularities. Then the pull-back of $C_U$ to $S_M = \on{Spec}R_M$ has a prestable \emph{regular} aligned model.
\end{lemm}

Note that $C$ is regular since $C/S$ has normal crossings singularities.
\begin{proof}
Let $f\colon S_M \ra S$ be the structure map. Note that $S_M$ is regular by Theorem~\ref{thm:Stilde_regular}. Write $C_0 = C \times_S S_M$, this is an aligned prestable curve. We will resolve the singularities of $C_0$ by blowing up, taking care to preserve alignment as we do so.

For $i = 0, 1,\,\cdots$, we define $Z_i \sub C_i$ to be the reduced closed subscheme where $C_i$ is not regular, and then define $C_{i+1}$ to be the blowup of $C_i$ at $Z_i$.

It is enough to show:
\begin{enumerate}\unptenumii
%[label={1.\arabic*}]
\item\label{1.1} each $C_i$ is a prestable curve over $S_M$;
\item\label{1.2} some $C_N$ is regular;
\item\label{1.3} each $C_i$ is aligned over $S_M$.
\end{enumerate}

Let $x \in \ca O_S(S)$ be a label of an edge in $\Gamma_\frks$. From part~\eqref{lemm8.10.1} of Lemma~\ref{lemma:NCD_preverved} we see that $x$ is a power of a (unique) irreducible element $x'$, and that $V(x')$ is a regular subscheme of $S_M$. The curve $C_0$ is the regular at the corresponding point if and only if $x = x'$, and a local calculation shows that the blowup is again a prestable curve, whose singularities have the same simple structure. Hence each $C_i$ is a prestable curve. This establishes~\eqref{1.1}.

Write $P$ for the (finite) set of generic points of the union of the closed subschemes $V(f^*x)$ as $x$ runs over labels of $\Gamma_\frks$. Note that each $\frkp \in P$ is a codimension~1 point on the regular scheme $S_M$, and moreover (again by Theorem~\ref{thm:Stilde_regular}) that the quotient $R/\frkp$ is also regular. Write $\on{ord}_\frkp$ for the corresponding ($\bb{Z}\cup \{\infty\}$)-valued discrete valuation on the local ring at $\frkp$. Given $i \ge 0$, define a non-negative integer
\[
\delta_i = \sum_{\frkp\,\in\,P} \sum_{\stackrel{q\,\in\,C_i}{\text{ singular}}}\left(\on{ord}_\frkp \ell(q) - 1\right);
\]
here the second sum runs over non-smooth points $q$ in the fibre over $\frkp$. Such a point corresponds to an edge of the graph $\Gamma_\frkp$, and $\ell(q)$ denotes the label of the edge of the dual graph; $\ell(q)$ lives in the étale local ring at $\frkp$. It is enough to show:
\begin{enumerate}\deuxptenumii
%[label={2.\arabic*}]
\item if $\delta_i>0$ then $\delta_{i}>\delta_{i+1}$; \label{d_drops}
\item if $\delta_i = 0$ then $C_i$ is regular; \label{regular_if_d_zero}
\item each $C_i$ is aligned (this holds for $C_0$ by assumption). \label{item:preserves_alignment}
\end{enumerate}

We first show item~\eqref{d_drops}. Let $i$ be such that $\delta_i > 0$. Let $\frkp \in P$, and let $q \in C_i$ be a non-smooth point lying over $\frkp$, with $\on{ord}_\frkp\ell(q) = t$. Let $p$ be a generator for $\frkp$. The completed local ring on $C_i$ at $q$ is given by
\[
\widehat{\ca{O}}_{C_i,\,q}\cong \frac{\widehat{\ca{O}}_{S_M,\,\frkp}\llbracket u,v\rrbracket}{\left(uv-p^t\right)}.
\]
Assume $t \ge 2$ (this holds for some $\frkp$ and $q$, otherwise $\delta_i = 0$). The blowup of $\widehat{\ca{O}}_{C_i,\,q}$ at $q = (u,v, p)$ has three affine patches:
\begin{enumerate}\deuxptunenumii
%[label={2.1.\arabic*}]
\item ``$u_i = 1$', given by:
\[
\frac{\widehat{\ca{O}}_{S_M,\,\frkp}\llbracket u,v\rrbracket[v_1, p_1]}{\left(v_1-u^{t-2}p_1^t, v-uv_1, p-up_1\right)}
\]
which is regular (a calculation, or cf.~\cite[\S~3.4]{Jong1996Smoothness-semi});
\item ``$v_1 = 1$'', which is also regular by symmetry;
\item ``$p_1=1$'', given by
\[
\frac{\widehat{\ca{O}}_{S_M,\,\frkp}\llbracket u,v\rrbracket[u_1, v_1]}{\left(u_1v_1-p^{t-2}, u-pu_1, v-pv_1\right)}.
\]
This patch is regular if $t=2$. If $t>2$ then the patch is regular except at $q' := (u_1, v_1, p)$. In the latter case we see that $\on{ord}_\frkp q' = t-2$; it has dropped by 2.
\end{enumerate}
As such, we see that at most one non-regular point $q'$ of $C_{i+1}$ maps to $q$, and if $q'$ exists we have $\on{ord}_\frkp q' = \on{ord}_\frkp q - 2$. This shows that $\delta_{i+1} < \delta_i$.

Next we show item~\eqref{regular_if_d_zero}. Let $i$ be such that $\delta_i = 0$. Let $c \in C_i$ lie over $s \in S_M$. We will show $C_i$ is regular at $c$. If $C_i \ra S_M$ is smooth at $c$ we are done, so assume this is not the case. Then the completed local ring of $C_i$ at $c$ is given by
\[
\frac{\widehat{\ca{O}}_{S_M,\,s}\llbracket u,v\rrbracket}{\left(uv-\ell_c\right)}
\]
where $\ell_c \in \ca{O}_{S,\,s}$ is an element which (by definition) generates the label of the graph $\Gamma_s$ at the edge $e_c$ corresponding to the point $c$.

Let $\frkp \in P$ be such that $\ell_c \in \frkp$ (such $\frkp$ exists by construction). The specialisation map
\[
\Gamma_s \ra \Gamma_\frkp
\]
does not contract $e_c$; rather it sends it to an edge labelled by the ideal generated by $\on{sp}(\ell_c)$, where
\[
\on{sp}\colon \ca{O}_{S_M,\,s} \ra \ca{O}_{S_M,\,\frkp}
\]
is the specialisation map. By our assumption that $\delta_i = 0$, it follows that $(\on{sp}\ell_c) = \frkp$, so the closed subscheme $V(\ell_c) \sub \on{Spec}\ca{O}_{S_M,\,s}$ is regular.

Write $\on{dim} \ca{O}_{S_M,\,s} = d$. By the above regularity statement, we can find elements $g_1,\,\cdots,\,g_{d-1}$ such that
\[
\frkm_s = \left(\ell_c, g_1,\,\cdots,\,g_{d-1}\right).
\]
Hence the ideal corresponding to $c$ can be generated by
\[
\left(u,v,\ell_c, g_1,\,\cdots,\,g_{d-1}\right) = \left(u,v, g_1,\,\cdots,\,g_{d-1}\right),
\]
in other words it can be generated by $d+1$ elements. Since $\on{dim}_c C_M = d+1$, this proves that $C_M$ is regular at $c$.

Finally, we show item~\eqref{item:preserves_alignment}. We proceed by induction on $i$. For $i=0$ the result is one of our starting assumptions. Let $i \ge 1$, and assume the result for $i-1$. Let $s \in S_M$ be any point, and for each $j$ let $\Gamma^j_s$ be the graph of $C_{j}$ over $s$. Then the labelled graph $\Gamma^i_s$ can be constructed from the labelled graph $\Gamma_s^{i-1}$ by the following recipe:
\begin{enumerate}
\item for each edge $e$ such that $\ell(e) = a^2$ for some irreducible element $a \in \ca{O}_{S_M,\,s}^{\on{et}}$, replace $e$ by two edges both with label $a$;
\item for each edge $e$ such that $\ell(e) = a^n$ for some irreducible element $a \in \ca{O}_{S_M,\,s}^{\on{et}}$ and integer $n >2$, replace $e$ by three edges with labels $a$, $a^{n-2}$ and $a$ in that order.
\end{enumerate}

\pagebreak
\noindent In pictures:
%\definecolor{qqqqff}{rgb}{0.3333333333333333,0.3333333333333333,0.3333333333333333}
%\centering
\begin{center}
\begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]
\clip(-6,-0.5) rectangle (6.,2);
\draw (-4.0,0.0)-- (-2.0,0.0);
\draw (-4.0,1.5)-- (-3.0,1.5);
\draw (-3.0,1.5)-- (-2.0,1.5);
\draw (0.0,-0.0)-- (3.0,-0.0);
\draw (0.0,1.5)-- (1.0,1.5);
\draw (1.0,1.5)-- (2.0,1.5);
\draw (2.0,1.5)-- (3.0,1.5);
\draw [<-] (-3.0,1.0) -- (-3.0,0.5);
\draw [<-] (1.5,1.0) -- (1.5,0.5);
\begin{scriptsize}
\draw [fill=qqqqff] (-4.0,0.0) circle (1.5pt);
\draw[color=qqqqff] (-3.8606621971293755,0.2982758459192761) node {};
\draw [fill=qqqqff] (-2.0,0.0) circle (1.5pt);
\draw[color=qqqqff] (-1.8561816847495791,0.2982758459192761) node {};
\draw[color=black] (-2.9419419622886354,-0.1610842715010952) node {$a^2$};
\draw [fill=qqqqff] (-4.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (-3.8606621971293755,1.8016362302041273) node {};
\draw [fill=qqqqff] (-3.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (-2.8584219409394773,1.8016362302041273) node {};
\draw [fill=qqqqff] (-2.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (-1.8561816847495791,1.8016362302041273) node {};
\draw [fill=qqqqff] (0.0,-0.0) circle (1.5pt);
\draw[color=qqqqff] (0.14829882763021732,0.2982758459192761) node {};
\draw [fill=qqqqff] (3.0,-0.0) circle (1.5pt);
\draw[color=qqqqff] (3.1550195961999123,0.2982758459192761) node {};
\draw [fill=qqqqff] (0.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (0.14829882763021732,1.8016362302041273) node {};
\draw [fill=qqqqff] (1.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (1.1505390838201155,1.8016362302041273) node {};
\draw [fill=qqqqff] (2.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (2.152779340010014,1.8016362302041273) node {};
\draw [fill=qqqqff] (3.0,1.5) circle (1.5pt);
\draw[color=qqqqff] (3.1550195961999123,1.8016362302041273) node {};
\draw[color=black] (-3.4430620903835845,1.3422761127837561) node {$a$};
\draw[color=black] (-2.4408218341936863,1.3422761127837561) node {$a$};
\draw[color=black] (1.5472591852286168,-0.1610842715010952) node {$a^{n}$};
\draw[color=black] (0.5450189290387187,1.3422761127837561) node {$a$};
\draw[color=black] (1.5472591852286168,1.3422761127837561) node {$a^{n-2}$};
\draw[color=black] (2.5494994414185155,1.3422761127837561) node {$a$};
\draw[color=black] (-2.879301946276767,0.9246760060379642) node {};
\draw[color=black] (1.6307792065777753,0.9246760060379642) node {};
\end{scriptsize}
\end{tikzpicture}
\end{center}

Our induction hypothesis is that the graph $\Gamma_{i-1}$ is aligned; equivalently, for every part $P \in \on{Part}(\Gamma_{i-1})$ there exists $\ell(P) \in \ca O_{S_M,\,s}$ and positive integers $n(e)$ for $e \in P$, such that for all $e \in P$ we have $\ell(e) = \ell(P)^{n(e)}$. By the same argument as in the proof of item~\eqref{1.1} we may and do assume that $\ell(P)$ is irreducible.

We need to show that $\Gamma_i$ is aligned, so let $P' \in \on{Part}(\Gamma_i)$. Then either $P'$ consists of a single edge (in which case there is nothing to check), or $P'$ is obtained by subdivision from some part $P\in \on{Part}(\Gamma_{i-1})$. In that case, the element $\ell(P)$ will satisfy the conditions of alignment for $P'$. Hence $\Gamma_i$ is aligned as required.
\end{proof}

\begin{rema}\label{rem:existence_of_universal_regular_curve}
The author is grateful to Giulio Orecchia for pointing out that the above construction of a regular model is an entirely canonical procedure, and commutes with smooth base-change. Indeed, the non-regular locus is stable under smooth base change, and the blowups are stable under flat base change. Combining this observation with étale descent, we obtain a canonical desingularisation $\tilde C_{g,\,n}$ of the universal stable curve over the universal Néron-model-admitting-morphism $\Mtil{g,\,n}$ (see Corollary~\ref{thm:main}).
\end{rema}

\section{Existence of Néron models over universal aligning schemes}\label{sec:NM_over_univ_aligning}


\begin{defi}\label{def:universal_blowup}
Let $C/S$ be a generically smooth prestable curve over a regular algebraic stack, and write $U \sub S$ for the largest open substack over which $C$ is smooth. Write $J$ for the jacobian of $C_U/U$; this is an abelian scheme over $U$. A \emph{Néron-model-admitting morphism for $C/S$} is a morphism $f\colon T \ra S$ of algebraic stacks such that:
\begin{enumerate}\dixunenumii
%[label={(\ref{def:universal_blowup}.\arabic*})]
\item $T$ is regular;
\item $U \times_S T$ is dense in $T$;
\item $f^*J$ admits a Néron model over $T$.
\end{enumerate}
We define the category of Néron-model-admitting morphisms as the full sub-2-category of the 2-category of stacks over $S$ whose objects are Néron-model-admitting morphisms.

A \emph{universal Néron-model-admitting morphism for $C/S$} is a terminal object in the 2-category\footnote{Since this is a 2-category, care must be taken with terminal objects. However, since our categories are fibred in groupoids there is no ambiguity in the definition of terminal object. All our proofs will be by descent from the case of schemes, so this issue will also not arise in the proofs. } of Néron-model-admitting morphisms; it is unique up to isomorphism unique up to unique 2-isomorphism if it exists. We write $\beta\colon \tilde{S} \ra S$ for a universal Néron-model-admitting morphism, and $\tilde{N}/\tilde{S}$ for the Néron model of $J$.
\end{defi}

\begin{rema}
Note that $\tilde{N}$ is a smooth, separated group algebraic space over $\tilde S$ (if the latter exists).
\end{rema}

\begin{theo}\label{thm:NM_over_univ_aligning_over_scheme}
Let $S$ be an algebraic stack locally of finite type over an excellent scheme. Let $C/S$ be a prestable curve such that $C/S$ has étale normal crossings singularities (in particular, $C$ is generically smooth; write $U \hra S$ for the largest open over which $C$ is smooth). Let $\beta\colon \tilde{S} \ra S$ denote the universal aligning morphism (note $\beta$ is an isomorphism over $U$). Then $\tilde{S}$ is a universal Néron-model-admitting morphism for $C/S$, and moreover the Néron model $\tilde{N}$ is of finite type over $\tilde{S}$, and its fibrewise-connected-component-of-identity is semi-abelian.
\end{theo}

Note that the universal aligning morphism exists as an algebraic space over $S$ by Theorem~\ref{thm:existence_of_iniversal_aligning_for_curve_over_scheme}. Before giving the proof we briefly recall the key theorem of~\cite{Holmes2014Neron-models-an} on which we depend:

\begin{theo}\label{thm:from_crelle}
Let $S$ be a regular algebraic scheme, and $U \hra S$ a dense open subscheme. Let $C/S$ be a prestable curve, smooth over $U$. We have:
\begin{enumerate}
\item\label{theo10.4.1} if the jacobian $J/U$ admits a Néron model over $S$ then $C/S$ is aligned;
\item\label{theo10.4.2} if $C$ is regular and $C/S$ is aligned then the jacobian $J/U$ admits a Néron model over $S$.
\end{enumerate}
Moreover, this Néron model is of finite type over $S$, and its fibrewise-identity-component is a semi-abelian scheme.
\end{theo}

\begin{proof}
This is essentially~\cite[Theorem~1.2]{Holmes2014Neron-models-an}, but with some small modifications and additions:
\begin{enumerate}
\item Our notion of alignment is slightly different from that in~\cite{Holmes2014Neron-models-an}, but when the base is regular these notions coincide; see Remark~\ref{remark:reg_irreg_aligned};
\item That the fibrewise-identity-component is a semi-abelian scheme follows from the third point in~\cite[Remark~6.3]{Holmes2014Neron-models-an};
\item That the Néron model is of finite type is the main result of~\cite{Holmes2016Quasi-compactne}.\qedhere
\end{enumerate}
\end{proof}\let\qed\relax
\vspace{6pt}

\begin{proof}[Proof of Theorem~\ref{thm:NM_over_univ_aligning_over_scheme}]
Let $f\colon S' \ra S$ be a smooth cover by a scheme, then $f^*C/S'$ has étale normal crossings singularities, and $S'$ is excellent because it is locally of finite type over an excellent scheme. So by Lemma~\ref{lem:controled_etale_cover_NCS} we find that $S$ has a smooth cover by schemes $S_i$ for $i$ in some indexing set $I$, such that each $C_{S_i} \ra S_i$ has a controlling point $\frks_i$ and normal crossings singularities. Formation of the universal aligning morphism $\tilde{S} \ra S$ commutes with smooth base-change\footnote{Even fppf base-change, since alignment is fppf local (see Remark~\ref{remark:fppf_descent}).}, so by Theorem~\ref{thm:Stilde_regular} we find that $\tilde{S}$ is regular, and by Lemma~\ref{lemma:resolving_singularities} we find that $\tilde{S}$ has a smooth cover by schemes $S_{i,\,M}$ such that on each $S_{i,\,M}$ the curve $C_{S_{i,\,M}}$ has a prestable regular aligned model.

By item~\eqref{theo10.4.2} of Theorem~\ref{thm:from_crelle} we then know that the jacobian of $C_U/U$ has a Néron model over each $S_{i,\,M}$ (changing the model of the curve does not change the jacobian over $U$, so the existence of a regular aligned model implies that the jacobian admits a Néron model). By the same result we know that this Néron model is of finite type and has semi-abelian fibrewise-connected-component-of-identity. Néron models descend along smooth covers by~\cite[Lemma~6.1]{Holmes2014Neron-models-an}, so a Néron model exists over $\tilde{S}$ (and the properties mentioned also descend). This shows that $\beta\colon \tilde{S} \ra S$ is a Néron model admitting morphism.


Finally, we need to show that any other Néron-model-admitting morphism factors via $\tilde{S}$. Let $f\colon T \ra S$ be a Néron-model-admitting morphism. Since $T$ is reduced and $\beta$ is separated, a factorisation of $f$ via $\beta$ will descend along a smooth cover of $T$; as such, (and using that a scheme smooth over a regular base is regular) we may assume $T$ is a scheme. Then by item~\eqref{theo10.4.1} of Theorem~\ref{thm:from_crelle} and the fact that $f^*C_U$ has a Néron model over $T$, we know that $f^*C/T$ is aligned, and hence $f$ factors uniquely via the universal aligning morphism as required.
\end{proof}


From now on, we work relative to a fixed base scheme $\Lambda$ which we assume to be regular and excellent --- the basic examples to keep in mind are $\on{Spec} \bb{Z}$ and the spectrum of a field. Let $g$, $n$ be non-negative integers such that $2g - 2 + n >0$. We write $\M{g,\,n}$ for the moduli stack of smooth proper connected $n$-pointed curves of genus $g$ over $\Lambda$, and $\Mbar{g,n}$ for its Deligne--Mumford--Knudsen compactification. By~\cite[Theorem~2.7]{Knudsen1983The-projectivitii} we know that $\Mbar{g,\,n}$ is a smooth proper Deligne--Mumford stack over $\Lambda$, and the boundary $\Mbar{g,\,n} \setminus \M{g,\,n}$ is a divisor with normal crossings relative to $\Lambda$ in the sense of~\cite[Definition~1.8]{Deligne1969The-irreducibil}. We write $J_{g,\,n}$ for the jacobian of the universal curve $\Mbar{g,\,n+1}\times_{\Mbar{g,n}} \M{g,\,n}$ over $\M{g,\,n}$; this is an abelian scheme over~$\M{g,\,n}$.

A straightforward application of the previous theorem (together with Lemma~\ref{toric_smooth_NCD} for the smoothness) now yields our main result about the Néron model of the universal jacobian.

\begin{coro}\label{thm:main}
\label{theorem:intro_main}
A universal Néron-model-admitting morphism for $\Mbar{g,\,n}$ exists and is an algebraic space locally of finite type over $\Mbar{g,\,n}$, and is smooth over~$\Lambda$. The Néron model over it is of finite type, and its fibrewise-connected-component-of-identity is semi-abelian.
\end{coro}

\begin{prop}\label{prop:properties_of_universal_aligning}
These objects also satisfy the following properties:
\begin{enumerate}
\item \label{item:properties}
the morphism $\beta\colon \Mtil{g,\,n} \ra \Mbar{g,\,n}$ is separated and locally of finite presentation;
\item \label{item:VCP_DVR}
the morphism $\beta\colon \Mtil{g,\,n} \ra \Mbar{g,\,n}$ satisfies the valuative criterion for properness for morphisms from traits to $\Mbar{g,\,n}$ which map the generic point of the trait to $\M{g,\,n}$.
\end{enumerate}
\end{prop}

\begin{proof}
%\ \\*[-1.4em]
\leavevmode
\begin{enumerate}
\item Follows from the same properties for the universal aligning scheme (Theorem~\ref{thm:existence_of_iniversal_aligning_for_curve_over_scheme}) and the fact that these properties descend along fppf morphisms.
\item Immediate from the definition of the universal Néron-model-admitting scheme because Néron models always exist over traits (alternatively, because generically smooth prestable curves over traits are always aligned).
\end{enumerate}
\end{proof}
\vspace{20pt}


\section{A worked example}\label{sec:example}
We return to the example of a non-aligned prestable curve considered in Section~\ref{intro:12}. We compute its universal aligning scheme, and describe the Néron model of its jacobian over the universal aligning scheme.

Construct a stable~2-pointed curve over $\bb{C}$ by glueing two copies of $\bb{P}^1_\bb{C}$ at $(0:1)$ and $(1:0)$, and marking the point $(1:1)$ on each copy. Then define $C/S$ to be the universal deformation as a 2-pointed stable curve. Choose coordinates such that $S = \on{Spec}\bb{C}\llbracket x,y\rrbracket$, and $C$ is smooth over the open subset $U = D(xy)$. Call the sections $p$ and $q$.

Now the graph over the closed point of $S$ is a 2-gon, with one edge labelled by $(x)$ and the other by $(y)$. The graph over the generic point of $(x=0)$ is a 1-gon with edge labelled by $(y)$, and similarly the graph over the generic point of $(y=0)$ is a 1-gon with edge labelled by $(x)$. All other fibres are smooth. In particular, $C/S$ is aligned except at the closed point, which is a controlling point.


\subsection{The universal aligning morphism}

We now describe the universal aligning morphism. We will not follow through the construction given in Definition~\ref{def:Stilde_controlled}, but will instead give a more geometric picture via a sequence of blowups of $S$.

Set $S_0 = S$, and let $D_0$ and $E_0$ be the divisors given by $x=0$ and $y=0$ respectively. Let $Z_0$ denote the locus where $D_0 \cup E_0$ is singular (i.e. the closed point of $S$). Let $U_0 = S_0 \setminus Z_0$.

Now set $S_1$ to be the blowup of $S_0$ at $Z_0$, and let $D_1$ and $E_1$ be the pullbacks of $D_0$ and $E_0$ to $S_1$. Let $Z_1$ be the locus where $D_1
\cup E_1$ is singular, and let $U_1 = S_1 \setminus Z_1$. Let $\phi_1\colon U_0 \ra U_1$ be the unique $S$-morphism (an open immersion). We proceed like this, inductively defining an infinite chain of blowups $S_{i+1} \ra S_i$ and open immersions $\phi_i\colon U_i \ra U_{i+1}$. Then the universal aligning morphism $\tilde{S} \ra S$ is the colimit of the open immersions $\phi_i$. The morphism $\tilde{S} \ra S$ is separated, locally of finite type, is an isomorphism outside the closed point of $S$, but is not quasi-compact. More precisely, the closed fibre is an infinite union of copies of $\bb{G}_m$, which can be indexed by pairs of positive coprime integers. We assign $D_0$ the label $(0,1)$ and $E_0$ the label $(1,0)$, and then the exceptional curve of the blowup of components labelled $(a,b)$ and $(c, d)$ is given label $(a+c, b+d)$. So the exceptional curve of the first blowup is labelled $(1,1)$, and two exceptional of the second blowup are labelled $(1,2)$ and $(2,1)$, etc (cf. the Farey sequence). Note that $\tilde{S}$ is integral and is smooth over $\bb{C}$.

\subsection{The Néron model}
We now describe the Néron model of the jacobian of $C_U/U$ over the universal aligning scheme $\tilde{S}$. Marking the section $p$, we find that $C_U/U$ is an elliptic curve, so is canonically isomorphic to its jacobian. Over $S$, the fibrewise-connected component of $p$ in $C^{\on{sm}}$ is isomorphic to $\on{Pic}^0_{C/S}$, and its pullback to $\tilde{S}$ is the ``identity component'' of the Néron model. Let $E$ be one of the copies of $\bb G_m$ lying over the origin in $S$, indexed by the pair $(a,b)$ of coprime positive integers. Then the component group is constant over $E$, and is a cyclic group of order $a + b$.



\section{Bounded-thickness substacks of \texorpdfstring{$\Mtil{g,\,n}$}{Mtilg,n}}\label{sec:bounded_thickness}
In some applications it can be useful to consider only a part of the stack $\Mtil{g,\,n}$ --- in particular, in applications where quasi-compactness is important. In this section we define certain open substacks of $\Mtil{g,\,n}$ with good universal properties.

We write $\Gamma'$ for the graph obtained from $\Gamma$ by deleting all loops.

\begin{defi}
Let $S$ be a scheme, $C/S$ a prestable curve, and ${s}\in S$ a geometric point. Write $G_1,\,\cdots,\,G_n$ for the elements of the partition $\on{Part}(\Gamma'_s)$ of the graph $\Gamma'_s$. Let $e \ge 0$ be an integer. We say $C/S$ is \emph{$e$-strongly aligned} at $s$ if there exists a sequence $a_1,\,\cdots,\,a_n$ of non-zero elements of $\ca{O}^{et}_{S,\,s}$ such that
\begin{enumerate}
\item for every subset $J \sub \{1,\,\cdots,\,n\}$, the subscheme
\[
V\left(a_j : j \in J\right) \sub \on{Spec}\ca{O}^{et}_{S,\,s}
\]
is regular (this is a weak version of having normal-crossings singularities);
\item for each $i$ and each edge $c$ of $G_i$, there exists $0 \le r \le e$ such that
\[
\ell(c) = (a_i)^r.
\]
\end{enumerate}
We say $C/S$ is \emph{$e$-strongly aligned} if it is $e$-strongly aligned at $s$ for all geometric points $s$ of $S$.
\end{defi}

\begin{rema}\label{rem:1-st-ali-regular}
If $C/S$ is 1-strongly aligned then $C$ is regular; if $c$ is a non-smooth point lying over $s$ then $\ell(c) = (a_i)$ for some $i$, and $a_i$ must be contained in the maximal ideal of $\ca O_{S,\,s}^{et}$ but not in its square. Then $C/S$ is isomorphic étale-locally at the non-smooth point $c$ to
\[
\frac{\ca O_{S,\,s}^{et}[x,y]}{\left(xy-a_i\right)}.
\]
Writing $\frkm$ for the maximal ideal at the origin of $\ca O_{S,\,s}^{et}[x,y]$ we see that $xy-a_i \in \frkm$ and that $xy-a_i \notin \frkm^2$, so $C$ is regular at $c$ by~\cite[Corollary~4.2.12]{Liu2002Algebraic-geome}.
\end{rema}

\begin{defi}\label{def:Mle}
Let $g$, $n$ be non-negative integers such that $2g - 2 + n >0$. Let $e \ge 0$ be an integer. Choose an étale cover $\bigsqcup_{i\,\in\,I}S_i \ra \Mbar{g,\,n}$ by a scheme such that on each $S_i$ the curve has a controlling point $\frks_i$. For each $i \in I$, write $\bb{M}^{\le\,e}_i$ for the set of thickness functions on $C_{\frks_i}$ which take values in $\{0,\,\cdots,\,e-1, e\} \sub \bb{Z}_{\ge\,0}$. Now define $\tilde{S_i}^{\le\,e}$ to be the open subscheme of $\tilde{S_i}$ covered by the $S_M$ as $M$ runs over $\bb{M}_i^{\le\,e}$. Define $\Mtil{g,\,n}^{\le\,e}$ to be the image of $\bigsqcup_{i\,\in\,I}\tilde{S}_i^{\le\,e}$ under the natural étale map $\bigsqcup_{i\,\in\,I}\tilde{S}_i \ra \Mtil{g,\,n}$.
\end{defi}

\begin{rema}
\leavevmode
\begin{enumerate}
\item A-priori the definition of $\Mtil{g,n}^{\le\,e}$ depends on the choice of cover $\bigsqcup_{i\,\in\,I}\tilde{S}_i \ra \Mbar{g,\,n}$, but we will see in Lemma~\ref{lem:lee} that this is not the case;
\item Note that each $\tilde{S}_i^{\le\,e} \ra S_i$ is quasi-compact, since $\bb{M}_i^{\le\,e}$ is finite. By étale descent of quasi-compactness, the same holds for $\Mtil{g,\,n}^{\le\,e} \ra \Mbar{g,\,n}$.
\end{enumerate}
\end{rema}



\begin{lemm}\label{lem:lee}
Fix integers $g$, $n$, $e$ as above. Then the category of $e$-strongly aligned stable $n$-pointed curves of genus $g$ has a terminal object. This terminal object has a natural map to $\Mtil{g,\,n}$ (since $e$-strongly aligned implies aligned), and this map is an open immersion, whose image is exactly $\Mtil{g,\,n}^{\le\,e}$.
\end{lemm}

\begin{proof}
In this proof we retain the notation from Definition~\ref{def:Mle} (in particular the cover $\bigsqcup_{i\,\in\,I}\tilde{S}_i \ra \Mbar{g,\,n}$).

The property of being $e$-strongly aligned is local in the étale topology, since the definition concerns only the étale local rings of $S$. Observe that the pullback of the canonical stable curve over $S_i$ to $\tilde{S}_i^{\le\,e}$ is $e$-strongly aligned, by definition of $\tilde{S}_i^{\le \,e}$ and the fact that the universal curve over $\Mbar{g,\,n}$ (and hence over $S_i$) has étale normal-crossings singularities. Combining these observations, we see that the pullback of the universal stable curve over $\Mbar{g,\,n}$ to $\Mtil{g,\,n}^{\le\,e}$ is itself $e$-strongly aligned.

Let $f\colon T \ra \Mbar{g,\,n}$ be a non-degenerate morphism, with resulting stable curve $C/T$. Suppose that $C$ is $e$-strongly aligned. In particular, $C/T$ is aligned, and so $f$ factors (uniquely) via $\Mtil{g,\,n}$. If we can show that $f$ in fact factors via $\Mtil{g,\,n}^{\le\,e}$, then we are done.

Since being $e$-strongly-aligned is étale local, we may assume that $f$ factors via the étale cover $\bigsqcup_{i\,\in\,I}\tilde{S}_i \ra \Mbar{g,\,n}$. Then it is clear from the construction of the $S_i^{\le\,e}$ that $f$ factors via $\bigsqcup_{i\,\in\,I}\tilde{S}_i^{\le\,e}$ and hence via $\Mtil{g,\,n}^{\le\,e}$, as required.
\end{proof}

Finally, we observe that the universal Néron model has a particularly nice universal property for 1-strongly-aligned curves:

\begin{lemm}\label{lem:pullback_1_str}
Let $C/S$ be stable, 1-strongly aligned and smooth over a dense open. Let $f\colon S \ra \Mtil{g,\,n}$ be the tautological map. Write $N_{g,\,n}$ for the Néron model over $\Mtil{g,\,n}$. Then $f^*N_{g,\,n}$ is the Néron model of the jacobian of $C$.
\end{lemm}


\begin{proof}
A stable curve which is 1-strongly-aligned is necessarily regular by Remark~\ref{rem:1-st-ali-regular}, hence the pullback of the universal stable curve $C_{g,\,n}$ to $\Mtil{g,\,n}$ is itself regular, so coincides with its desingularisation $\tilde{C}_{g,\,n}$ (see Remark~\ref{rem:existence_of_universal_regular_curve}).

As usual we write $\on{Pic}^{[0]}_{C/S}$ for the total-degree-zero part of the relative Picard space of $C/S$ (cf. Remark~\ref{rem:Pic_reminders}), and we find
\[
f^*\on{Pic}^{[0]}_{\tilde{C}_{g,n}/\Mtil{g,n}} = \on{Pic}^{[0]}_{C/S}.
\]
If we write $E_{C/S}$ for the closure of the unit section in $\on{Pic}^{[0]}_{C/S}$ and $\tilde{E}$ for the closure of the unit section in $\on{Pic}^{[0]}_{C_{g,n}/\Mtil{g,n}}$ we find that $f^*\tilde E = E_{C/S}$ since $\tilde E$ is flat over $\Mtil{g,\,n}$. Hence by~\cite[Theorem~6.2]{Holmes2014Neron-models-an} we find
\begin{equation*}
f^*N_{g,\,n} = f^*\left(\frac{\on{Pic}^{[0]}_{\tilde{C}_{g,n}/\Mtil{g,n}}}{\tilde E}\right) = \frac{\on{Pic}^{[0]}_{C/S}}{E_{C/S}},
\end{equation*}
the latter being the Néron model of the jacobian of $C/S$, again using that $C$ is regular since it is 1-strongly-aligned.
\end{proof}


\section{Relation to the stack \texorpdfstring{$\ca{P}_{d,g}$}{caPd,g} of Caporaso}\label{sec:caporaso}
Let $g \ge 3$, and let $d$ be an integer such that $\on{gcd}(d-g+1,2g-2)=1$. Caporaso~\cite{Caporaso2008Neron-models-an} constructs a smooth morphism of stacks $p\colon \ca{P}_{d,\,g} \ra \Mbar{g}$ and an isomorphism from $\ca{P}_{d,\,g} \times_{\Mbar{g}} \M{g}$ to the degree-$d$ Picard scheme of the universal curve over $\Mbar{g}$. This morphism $p$ is relatively representable by schemes, and satisfies the following property:
\begin{quotation}
\emph{given a trait $B$ with generic point $\eta$ and a regular stable curve $X \ra B$, write $f\colon B \ra \Mbar{g}$ for the moduli map. Then $f^*\ca{P}_{d,\,g}$ is the Néron model of $\on{Pic}^d_{X_\eta/\eta}$. }
\end{quotation}
More concisely, we might say that $\ca{P}_{d,\,g}$ gives a partial compactification of the degree-$d$ universal jacobian $J_{g}$ which has a good universal property for test curves $B$ in $\Mbar{g}$ which meet the boundary with ``low multiplicity'' (this is equivalent to the given stable curve $X/B$ being regular). In contrast, in this paper we construct a partial compactification $N_{g}$ of the universal jacobian $J_{g}$, with a natural group structure, and which has a good universal property for \emph{all} test curves to (even aligned morphisms to) $\Mbar{g}$, but at the price of ``blowing up the boundary'' of $\Mbar{g}$. In the remainder of this section, we will make the comparison more precise.

Note that the condition $\on{gcd}(d-g+1,2g-2)=1$ precludes the possibility that $d=0$ (unless $g=2$), and so to compare Caporaso's construction to $\Mtil{g}$ we must consider Néron models of degree-$d$ parts of the jacobian for $d \neq 0$. These are not group schemes, but the Néron mapping property still makes sense, so we define a Néron model to be a smooth separated model satisfying the Néron mapping property. This presents no new difficulties:

\begin{theo}\label{thm:degree_d_NM}
Let $S$ be a regular separated stack, and $C/S$ an aligned prestable curve, smooth over a dense open $U \hra S$. Assume that $C$ is regular. Fix $d \in \bb{Z}$, and let $J_d/U$ denote the degree-$d$ jacobian of $C$ over $U$. Then $J_d$ admits a Néron model over $S$.
\end{theo}


\begin{proof}
The closure of the unit section in $\on{Pic}_{C/S}$ coincides with the closure of the unit section in $\on{Pic}^{[0]}_{C/S}$, since the latter is open and closed in $\on{Pic}_{C/S}$. In particular, the closure of the unit section in $\on{Pic}_{C/S}$ is flat over $S$, and so the quotient $N$ of $\on{Pic}_{C/S}$ by the closure of the unit section exists as an algebraic space over $S$. It is easily verified that $N$ is the Néron model of $\on{Pic}_{C_U/U}$ --- the proof of the main theorem of~\cite{Holmes2014Neron-models-an} carries over almost verbatim. Then the closure of $J_d$ inside $N$ is exactly the Néron model of $J_d$ that we seek.
\end{proof}



The next proposition shows that the restriction of the Néron model of the universal jacobian to the open substack $\Mtil{g}^{\le\,1}$ is given by the pullback of Caporaso's construction.



\begin{prop}\label{prop:cap_pullback}
Let $g \ge 3$ and $d$ be integers such that $\on{gcd}(d-g+1,2g\linebreak-2)=1$. Write $\tilde{\ca{P}}$ for the pullback of $\ca{P}_{d,\,g}$ to $\Mtil{g}^{\le\,1}$, and write ${N}_{g}$ for the Néron model of $J_{g}$ over $\Mtil{g}^{\le\,1}$. Then the canonical map $h\colon \tilde{\ca{P}} \ra {N}_{g}$ given by the Néron mapping property is an isomorphism.
\end{prop}


\begin{proof}
It is enough to check the map $h$ is an isomorphism on every geometric fibre over $\Mtil{g}^{\le\,1}$. Let $p$ be a geometric point of $\Mtil{g}^{\le\,1}$. Then there exists a trait $T$ with geometric closed point $t$, and a morphism $g\colon T \ra \Mbar{g}$ such that
\begin{enumerate}
\item the given stable curve $X \ra T$ is regular;
\item the map $g$ factors via a map $\tilde{g} \colon T \ra \Mtil{g}^{\le\,1}$;
\item this factorisation $\tilde{g}$ maps $t$ to $p$.
\end{enumerate}
Such a $T$ can be constructed by choosing a trait in $\Mtil{g}^{\le\,1}$ through $p$ which is transversal to the boundary divisor of the universal curve over $\Mtil{g}^{\le \,1}$. This is certainly possible as the boundary has normal crossings, and one then takes $g$ to be the composite of the inclusion of this trait with the structure map $\Mtil{g} \to \Mbar{g}$ We need to verify that it satisfies these three conditions:
\begin{enumerate}
\item Write $C_{g,\,n}$ for the pullback of the universal stable curve over $\Mtil{g}^{\le\,1}$. Then $C_{g,\,n}$ is regular by Remark~\ref{rem:1-st-ali-regular}, and since $T$ meets the boundary transversally we see that the pullback over $T$ is also regular.
\item[(2 $\&$ 3)] These are clear by construction and the valuative criterion for separatedness applied to $\Mtil{g}^{\le\,1} \to \Mbar{g}$.
\end{enumerate}



Now since $X$ is regular, we find (as in the proof of Theorem~\ref{thm:degree_d_NM}) that $\tilde{g}^*{N}_{g}$ is the Néron model of the jacobian of the generic fibre of $X \ra T$, and the same holds for $\tilde{g}^*\tilde{\ca{P}} = g^*\ca{P}$. In particular, this shows that the fibres of ${N}_{g}$ and of $\tilde{\ca{P}}$ over $p$ are isomorphic. Moreover, the given map between them is an isomorphism; this is true because it is so over the generic point of $T$ (apply the uniqueness part of the Néron mapping property).
\end{proof}

In particular, this shows that, after pullback along the morphism $\Mtil{g}^{\le\,1} \ra \Mbar{g}$, the stack $\ca{P}_{d,\,g}$ admits a natural torsor structure extending that over $\M{g}$.

\vspace*{20pt}


\bibliography{holmes}
\end{document}
